5 Replies Latest reply on Sep 26, 2011 12:33 PM by ranthy reddy

    How do I call an EJB 2.x (weblogic) from SMX4

    Johan Newbie



      How do I expose an EJB 2 (weblogic) in SMX4. I have tried jsr181 and cxfse:endpoint and the same problem occur. Everything works at it should until a try to start my osgi bundle, then a receive a number of class not found or xxxImpl not found.


      First I get an class not found error because the SMX can't find the class the Weblogic my EJB should return.

      I then add my jar to the SMX as this:

      osgi/install -s wrap:file:////C:/tmp/esbbundels/FordonClient.jar

      osgi/install -s wrap:file:////C:/tmp/esbbundels/bilprovningencommon.jar

      osgi/install -s wrap:file:////C:/tmp/esbbundels/weblogic.jar


      Then I get an org.w3c.dom.ls class not found and a have to add for example

      osgi/install -s mvn:xerces/xercesImpl/2.4.0


      Then I get this error:

      ERROR: Unable to update the bundle. (javax.xml.parsers.FactoryConfigurationError

      Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found)

      avax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.Doc

      mentBuilderFactoryImpl not found

             at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderF



      Is there any other solution to call an EJB 2.x or could someone tell me how to solve the runtime problem.



         beans.xlm -





      pom.xml -

      Dependeny in my pom

              <!-- weblogic.jar -->


                <!--  my clientjar FordonClient.jar -->


                <!-- my clientjar dependency bilprovningencommon.jar -->



      Edited by: jokit on Sep 30, 2009 11:44 AM