You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2013/01/21 15:06:19 UTC

[jira] [Updated] (CAMEL-5968) ClassNotFoundException: weblogic.jndi.WLInitialContextFactory when starting the route via Karaf start-route(camel:route-start) command.

     [ https://issues.apache.org/jira/browse/CAMEL-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider updated CAMEL-5968:
---------------------------------------

    Attachment: CAMEL-5968-1.patch

Add a thread context classloader with the bundle classloader in the start command.

The patch is a little larger as I needed to change other methods in CamelController to retrieve the BundleContext.

I also changed the pom to enable deployment with camel 2.9.2 and karaf 2.2.6. These changes would not go into trunk.
                
> ClassNotFoundException: weblogic.jndi.WLInitialContextFactory when starting the route via Karaf start-route(camel:route-start) command.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5968
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5968
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-jms, karaf
>    Affects Versions: 2.9.2
>         Environment: Camel-core(2.9.2) in Karaf(2.2.6)
>            Reporter: Krishnan
>         Attachments: CAMEL-5968-1.patch
>
>
> We have a simple camel route definied in Java DSL:
> from("wmq:queue:ESB_TEST_IN").routeId("IN").
> autoStartup(true).
> log("${body}");
> This route receives JMS messages from a WebLogicJMS queue with name ESB_TEST_IN and logs the body to the log file.
> The route works fine when autoStartup is set to true. But when autoStartup is set to false then the creation of the WebLogic InitialContext failed because of an ClassNotFoundException regarding weblogic.jndi.WLInitialContextFactory and the following message is written to the karaf log file:
> 2012-12-07 12:03:21,502 WARN : DefaultJmsMessageListenerContainer | Setup of JMS message listener invoker failed for destination 'ESB_TEST_IN' - trying to recover. Cause: Destination [ESB_TEST_IN] not found in JNDI; nested exception is javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory] [org.springframework.jms.listener.DefaultMessageListenerContainer | mer[ESB_TEST_IN] | org.springframework.jms.3.0.7.RELEASE(id=135)]
> This issue's related to https://jira.talendforge.org/browse/TESB-7884

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira