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

[Fuse_on_EAP] Camel FTPS throws java.lang.NoClassDefFoundError: javax/net/ssl/SSLException

XMLWordPrintable

    • % %
    • Workaround Exists
    • Hide

      Add <module name="javax.api"/> under <dependencies> in JBOSS_HOME/modules/system/layers/fuse/org/apache/camel/component/ftp/main/module.xml

      Show
      Add <module name="javax.api"/> under <dependencies> in JBOSS_HOME/modules/system/layers/fuse/org/apache/camel/component/ftp/main/module.xml
    • Hide

      Create a camel context under camel subsystem in standalone mode :

         <camelContext id="system-context-1">
                  <![CDATA[
                  <route>
                    <from uri="file:FILEPATH/inbox1"/>
                    <transform>
                    <simple>Hello #{body} how are you?</simple>
                    </transform>
                      <to uri="ftps://localhost:990/?isImplicit=true&amp;username=admin&amp;password=admin" />
                  </route>
                  ]]>
                </camelContext>
      
      
      Show
      Create a camel context under camel subsystem in standalone mode : <camelContext id= "system-context-1" > <![CDATA[ <route> <from uri= "file:FILEPATH/inbox1" /> <transform> <simple>Hello #{body} how are you?</simple> </transform> <to uri= "ftps: //localhost:990/?isImplicit= true &amp;username=admin&amp;password=admin" /> </route> ]]> </camelContext>
    • Fuse 7.3 Sprint 40 - Dev #1

      Configuring Camel binding for ftps for fuse on eap, an exception is thrown, class javax.net.ssl.SSLException is not on the classpath.

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[file:/home/chardahe/Pictures/Training/Ca... because of Failed to create Producer for endpoint: ftps://localhost:990/?isImplicit=true&password=xxxxxx&username=admin. Reason: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147)
      	at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3947)
      	at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3854)
      	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3640)
      	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3492)
      	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3251)
      	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3247)
      	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3270)
      	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3247)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3163)
      	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
      	... 7 more
      Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: ftps://localhost:990/?isImplicit=true&password=xxxxxx&username=admin. Reason: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:584)
      	at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:168)
      	at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:248)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1472)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:44)
      	at org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:31)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:160)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:62)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:1186)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:104)
      	at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:90)
      	at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:80)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75)
      	at org.apache.camel.impl.RouteService.startChildService(RouteService.java:370)
      	at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:196)
      	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
      	... 19 more
      Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
      	at org.apache.camel.component.file.remote.FtpsEndpoint.createRemoteFileOperations(FtpsEndpoint.java:206)
      	at org.apache.camel.component.file.remote.FtpEndpoint.buildProducer(FtpEndpoint.java:105)
      	at org.apache.camel.component.file.remote.RemoteFileEndpoint.createProducer(RemoteFileEndpoint.java:98)
      	at org.apache.camel.component.file.remote.RemoteFileEndpoint.createProducer(RemoteFileEndpoint.java:37)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:573)
      	... 53 more
      Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLException from [Module "org.apache.camel.component.ftp" from local module loader @3aa9e816 (finder: local module finder @17d99928 (roots: /home/chardahe/Documents/Eap/jboss-eap-7.1/modules,/home/chardahe/Documents/Eap/jboss-eap-7.1/modules/system/layers/fuse,/home/chardahe/Documents/Eap/jboss-eap-7.1/modules/system/layers/base))]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	... 58 more
      
      

            tcunning@redhat.com Thomas Cunningham
            chardahe@redhat.com Chandrakant Hardahe (Inactive)
            Jan Bouska Jan Bouska
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: