I configured Camel binding for switchyard service for ftps, exception below is thrown, class javax.net.ssl.SSLException is not on the classpath. The root cause of the problem is probably different, but it's not shown. Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException at org.apache.camel.component.file.remote.FtpsEndpoint.createRemoteFileOperations(FtpsEndpoint.java:188) at org.apache.camel.component.file.remote.FtpEndpoint.buildConsumer(FtpEndpoint.java:60) at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:87) at org.apache.camel.component.file.remote.RemoteFileEndpoint.createConsumer(RemoteFileEndpoint.java:34) at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65) at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80) at org.apache.camel.impl.RouteService.warmUp(RouteService.java:133) at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2000) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1928) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1950) at org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:1827) at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:733) at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1803) at org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:675) at org.apache.camel.impl.DefaultCamelContext.addRouteDefinition(DefaultCamelContext.java:680) at org.switchyard.component.camel.common.handler.InboundHandler.<init>(InboundHandler.java:67) at org.switchyard.component.camel.common.deploy.BaseBindingActivator.createInboundHandler(BaseBindingActivator.java:51) at org.switchyard.component.camel.common.deploy.BaseBindingActivator.activateBinding(BaseBindingActivator.java:43) at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:607) at org.switchyard.deploy.internal.Deployment.start(Deployment.java:143) at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:101) at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1] ... 3 more Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLException from [Module "org.apache.camel.ftp:main" from local module loader @20e8ac93 (finder: local module finder @b99f7c6 (roots: /home/jsedlace/soa6/servers/ER1/jboss-eap-6.1/modules,/home/jsedlace/soa6/servers/ER1/jboss-eap-6.1/modules/system/layers/soa,/home/jsedlace/soa6/servers/ER1/jboss-eap-6.1/modules/system/layers/base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1] ... 27 more
Can you please attach your test case? Thank you!
Created attachment 804975 [details] ftps switchyard.xml David, sorry for the big delay, I lost the message in thousands of others from bugzilla :( I've attached switchyard.xml from quickstart camel-ftp-binding, just modified for ftps, same exception as I wrote earlier should be thrown.
I have solved this issue by adding <module name="javax.api"/> under <dependencies> in JBOSS_HOME/modules/system/layers/soa/org/apache/camel/ftp/main/module.xml.
David Ward <dward> made a comment on jira SWITCHYARD-1819 https://github.com/jboss-switchyard/release/pull/313 Recreated, fixed, tested successfully.
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1819 pushed
cannot be verified now because of bug #1044500
BZ 1044500 should be fixed in ER8 as I'm pretty sure it's an issue with drools/jbpm modularization. See my comment in that BZ for details. I would retest this issue with ER8 as well.
verified in ER8
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1819 to Closed