camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: MINA TLS: Silent Error when trying to load a MINA route with TLS
Date Sun, 19 Jul 2015 07:15:24 GMT
Hi

Ah well spotted. I think you should log this problem at the Apache
Mina project so they can fix it.
I would really assume they would like for mina to work with SSL in an
OSGi environment too.

They could set some of these imports to optional.



On Sun, Jul 19, 2015 at 7:27 AM, peter.berkman
<peter.berkman@cornergrove.com> wrote:
> I was finally able to get the exception logged by doing a bundle:install
> rather than installing the whole feature -- somethings definitely wrong with
> this too, but at least I'm getting further.
>
> well, it seems that mina-core 2.0.9 causes this (exception at end).
>
> in mina-core 2.0.7, it imports javax.net.ssl:
> Import-Package: javax.crypto,javax.crypto.spec,javax.net.ssl,javax.secur
>  ity.sasl,org.ietf.jgss,org.slf4j;version="[1.6,2)"
>
> in mina-core 2.09, it only imports:
> Import-Package: org.slf4j;version="1.7.7"
>
> Is no one else having this problem?
>
>
> Exception:
> org.osgi.framework.BundleException: Activator start error in bundle
> com.nextgate.ms.components.adapters.ngms-listener-hl7v2-mllp [348].
>         at
> org.apache.felix.framework.Felix.activateBundle(Felix.java:2196)[org.apache.felix.framework-4.2.1.jar:]
>         at
> org.apache.felix.framework.Felix.startBundle(Felix.java:2064)[org.apache.felix.framework-4.2.1.jar:]
>         at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)[org.apache.felix.framework-4.2.1.jar:]
>         at
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)[org.apache.felix.framework-4.2.1.jar:]
>         at java.lang.Thread.run(Unknown Source)[:1.8.0_45]
> Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/SSLException
>         at
> org.apache.camel.component.mina2.Mina2Consumer.setupSocketProtocol(Mina2Consumer.java:194)
>         at
> org.apache.camel.component.mina2.Mina2Consumer.<init>(Mina2Consumer.java:87)
>         at
> org.apache.camel.component.mina2.Mina2Endpoint.createConsumer(Mina2Endpoint.java:59)
>         at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
>         at
> org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:85)
>         at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
>         at
> org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3090)
>         at
> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3020)
>         at
> org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:2797)
>         at
> org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2653)
>         at
> org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)
>         at
> org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2467)
>         at
> org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2463)
>         at
> org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2486)
>         at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2463)
>         at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2432)
>         at
> com.nextgate.ms.bundlelib.interfaces.NGMSBundleActivator.startup(NGMSBundleActivator.java:81)
>         at
> com.nextgate.ms.component.adapter.listener.hl7mllp.routes.Activator.start(Activator.java:58)
>         at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
>         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2146)
>         ... 4 more
> Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLException not
> found by org.apache.mina.core [75]
>         at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)[org.apache.felix.framework-4.2.1.jar:]
>         at
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)[org.apache.felix.framework-4.2.1.jar:]
>         at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)[org.apache.felix.framework-4.2.1.jar:]
>         at java.lang.ClassLoader.loadClass(Unknown Source)[:1.8.0_45]
>         ... 25 more
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/MINA-TLS-Silent-Error-when-trying-to-load-a-MINA-route-with-TLS-tp5769456p5769513.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Mime
View raw message