Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9927

Missing module dependency in camel-irc on EAP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.3
    • fuse-7.2
    • Fuse EAP
    • None
    • % %
    • Hide

      download attached reproducer
      mvn wildfly:deploy

      Show
      download attached reproducer mvn wildfly:deploy
    • Fuse 7.3 Sprint 40 - Dev #1

      [From[timer:x]] -> [SetBody[constant{Hi Camels... because of Failed to create Producer for endpoint: ircs://camel-prod@chat.freenode.net:6697?nickname=camel-producer&channel=camel-test. Reason: java.lang.NoClassDefFoundError: javax/net/SocketFactory
          Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[timer:x]] -> [SetBody[constant{Hi Camels... because of Failed to create Producer for endpoint: ircs://camel-prod@chat.freenode.net:6697?nickname=camel-producer&channel=camel-test. Reason: java.lang.NoClassDefFoundError: javax/net/SocketFactory
          Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: ircs://camel-prod@chat.freenode.net:6697?nickname=camel-producer&channel=camel-test. Reason: java.lang.NoClassDefFoundError: javax/net/SocketFactory
      

      Suggested fix:
      add module dependency to camel-irc

      <?xml version="1.0" encoding="UTF-8"?>^M
      <module name="org.apache.camel.component.irc" xmlns="urn:jboss:module:1.1">
        <resources>
          <resource-root path="camel-irc-2.21.0.fuse-720040-redhat-00001.jar"/>
          <resource-root path="irclib-1.10.jar"/>
        </resources>
        <dependencies>
      +    <module name="javax.api"/>
          <module name="org.slf4j"/>
          <module name="javax.xml.bind.api"/>
          <module name="org.apache.camel.core"/>
        </dependencies>
        <exports>
          <exclude path="org/schwering"/>
          <exclude path="org/schwering/irc"/>
        </exports>
      </module>
      

            tdiesler@redhat.com Thomas Diesler
            jbouska@redhat.com Jan Bouska
            Jan Bouska Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: