3 Replies Latest reply: Feb 18, 2013 9:42 AM by user12050615 RSS

    The Apache axis2 jar files are not taking at run time

    987127
      While running the application I was getting the following errors. The error is getting at run time only. It has compiled successfully.

      It ran under eclipse without any issues. But with Apache axis we are getting following error trace while uploading to server. The Apache axis2 jar files are not taking at run time.But compiling successfully.

      The application is running under Oracle R12 server.I didn't find any option to set class path for run time in R12 server.

      Using Java version is 1.6 and Apache axis2.1.6.2

      Error trace:
      Exception :java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService
      Error : java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService
      com.rightnow.ws.wsdl.RightNowSyncServiceStub.populateAxisService(RightNowSyncServiceStub.java:41)
      com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:636)
      com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:625)
      com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:673)
      com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:665)
      com.rightnow.ws.util.ContactUtils.initializeService(ContactUtils.java:57)
      somejsp.jspService(_somejsp.java:189)
      com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
      oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
      oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
      oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
      oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
      com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
      oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
      com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
      com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
      com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
      com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
      com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
      com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
      oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
      com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
      java.lang.Thread.run(Thread.java:619)
        • 1. Re: The Apache axis2 jar files are not taking at run time
          PhHein
          The jar files are not on the server's classpath.

          EDIT: Oh, sorry, I didn't read carefully.

          Edited by: PhHein on 25.01.2013 12:24
          • 2. Re: The Apache axis2 jar files are not taking at run time
            r035198x
            In orion? There should be an orion-application.xml under application-deployments/oacore where you can specify the < library path="..."/ > element.
            You might have to change the template file as well so that your changes are not lost if autoconfig is run. Search the server manuals to find out the exact details if these details are not accurate.
            • 3. Re: The Apache axis2 jar files are not taking at run time
              user12050615
              Hello,

              I too am trying to use Axis2 application in R12. But getting the following error:

              java.lang.classCastException: com.sun.xml.messaging.saaj.soap.ver1_1.SoapMessageFactory1_1Impl cannot be cast to oracle.webservices.soap.VersionedMessageFactory

              If I run the application standalone from java command line it works fine. I think the error could be because of some oracle app jars getting picked up inatead of my application jars. How to make sure that my application jars get picked up instead of oracle jars

              I tried loading my jar file and then setting it as contextClassLoader using "Thread.currentThread().setContextClassLoader", but this did not help.

              Can you please let me know what can be tried to fix this

              Thanks
              Srikanth