Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5968

ClassNotFoundException: weblogic.jndi.WLInitialContextFactory when starting the route via Karaf start-route(camel:route-start) command.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.2
    • 2.9.6, 2.10.5, 2.11.0
    • camel-core, camel-jms, karaf
    • None
    • Camel-core(2.9.2) in Karaf(2.2.6)

    • Unknown

    Description

      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

      Attachments

        1. CAMEL-5968-1.patch
          25 kB
          Christian Schneider
        2. CAMEL-5968-2.patch
          6 kB
          Christian Schneider

        Activity

          People

            cschneider Christian Schneider
            kckcs Krishnan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: