Results 1 to 1 of 1
  1. #1
    jeremycod is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Classes from included jar libraries are not available in Axis 2


    I need some help on developing Web service application. I'm using axis 2 to develop Web service. I have axis.war on glassfish 3 server. I have created a web server application in Netbeans and I have deployed it on server using axis plugin. My application is dependent on some jar libraries. I added it to the compile libraries list in NetBeansTenb, but they are not available to the web service. I checked, and all jars are there. AAR file is in /WEB-INF/services, and jar files are inside of the AAR in lib directory.

    When I'm using SoapUI NetBeans plugin to test it, I got errors indicating that class from library is not available.
    This is the error I got when I'm trying to access web service through the browser window:

    INFO: [ERROR] The endpoint reference (EPR) for the Operation not found is /axis2/services/UserManagementWS?wsdl/setCurrentUser?username=ddd and the WSA Action = null

    and this is error I got when I try to test service using soapUI plugin for NetBeans:

    INFO: [ERROR] Exception occurred while trying to invoke service method setCurrentUser
    at rentUser(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
    at java.lang.reflect.Method.invoke(
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(
    at org.apache.axis2.rpc.receivers.RPCInOnlyMessageRec eiver.invokeBusinessLogic(RPCInOnlyMessageReceiver .java:63)
    at org.apache.axis2.receivers.AbstractMessageReceiver .receive(
    at org.apache.axis2.engine.AxisEngine.receive(AxisEng
    at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest( 7)
    at org.apache.axis2.transport.http.AxisServlet.doPost (
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
    at rvletService(
    at org.apache.catalina.core.StandardWrapperValve.preI nvoke(
    at org.apache.catalina.core.StandardWrapperValve.invo ke(
    at org.apache.catalina.core.StandardContextValve.invo ke(
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipel
    at com.sun.enterprise.web.PESessionLockingStandardPip eline.invoke( :98)
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at org.apache.catalina.core.StandardPipeline.invoke(S
    at org.apache.catalina.core.ContainerBase.invoke(Cont
    at org.apache.catalina.core.StandardEngineValve.invok e(
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at org.apache.catalina.core.StandardPipeline.doInvoke (
    at org.apache.catalina.core.StandardPipeline.invoke(S
    at org.apache.catalina.core.ContainerBase.invoke(Cont
    at org.apache.catalina.connector.CoyoteAdapter.doServ ice(
    at org.apache.catalina.connector.CoyoteAdapter.servic e(
    at r.service(
    at com.sun.grizzly.http.DefaultProcessorTask.invokeAd apter(
    at com.sun.grizzly.http.DefaultProcessorTask.doProces s(
    at com.sun.grizzly.http.DefaultProcessorTask.process(
    at com.sun.grizzly.http.DefaultProtocolFilter.execute (
    at colChain.executeProtocolFilter(GlassfishProtocolCh
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau
    at com.sun.grizzly.http.HttpProtocolChain.execute(Htt
    at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr
    at com.sun.grizzly.util.WorkerThreadImpl.processTask(
    Caused by: java.lang.NullPointerException
    at reateSCANodeFromClassLoader( 7)
    at CADomain.init(
    at CADomain.<init>(
    at ateNewInstance(
    at Instance(
    ... 46 more
    Caused by: java.lang.NullPointerException
    at er.start(
    at ime(
    ... 53 more
    INFO: [ERROR] org.apache.axis2.AxisFault

    How can I make these jars visible for my web service?

    Last edited by jeremycod; 10-31-2010 at 09:53 AM. Reason: duplicated

Similar Threads

  1. Included file throws error.
    By killerf2006 in forum New To Java
    Replies: 3
    Last Post: 08-20-2010, 11:18 AM
  2. Sending files though bluetooth (URL included) ???
    By agusCba in forum Sun Java Wireless Toolkit
    Replies: 2
    Last Post: 04-03-2010, 11:53 PM
  3. Tomcat 5.5, Axis 1.2
    By in forum New To Java
    Replies: 2
    Last Post: 03-17-2009, 07:07 AM
  4. Replies: 3
    Last Post: 10-12-2008, 02:49 PM
  5. webservices axis..
    By kalpana in forum Advanced Java
    Replies: 0
    Last Post: 01-30-2008, 07:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts