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

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

    Hi,

    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
    java.lang.ExceptionInInitializerError
    at com.corridor.services.user.UserManagementWS.setCur rentUser(UserManagementWS.java:21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(RPCUtil.java:194)
    at org.apache.axis2.rpc.receivers.RPCInOnlyMessageRec eiver.invokeBusinessLogic(RPCInOnlyMessageReceiver .java:63)
    at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:114)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:173)
    at org.apache.axis2.transport.http.HTTPTransportUtils .processHTTPPostRequest(HTTPTransportUtils.java:16 7)
    at org.apache.axis2.transport.http.AxisServlet.doPost (AxisServlet.java:142)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
    at org.apache.catalina.core.ApplicationFilterChain.se rvletService(ApplicationFilterChain.java:431)
    at org.apache.catalina.core.StandardWrapperValve.preI nvoke(StandardWrapperValve.java:462)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:139)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:186)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:657)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipel ine.java:96)
    at com.sun.enterprise.web.PESessionLockingStandardPip eline.invoke(PESessionLockingStandardPipeline.java :98)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1030)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:142)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:1030)
    at org.apache.catalina.connector.CoyoteAdapter.doServ ice(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:242)
    at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:180)
    at com.sun.grizzly.http.DefaultProcessorTask.invokeAd apter(DefaultProcessorTask.java:633)
    at com.sun.grizzly.http.DefaultProcessorTask.doProces s(DefaultProcessorTask.java:570)
    at com.sun.grizzly.http.DefaultProcessorTask.process( DefaultProcessorTask.java:827)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:152)
    at com.sun.enterprise.v3.services.impl.GlassfishProto colChain.executeProtocolFilter(GlassfishProtocolCh ain.java:71)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:103)
    at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:89)
    at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:67)
    at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:56)
    at com.sun.grizzly.util.WorkerThreadImpl.processTask( WorkerThreadImpl.java:325)
    at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerTh readImpl.java:184)
    Caused by: org.osoa.sca.ServiceRuntimeException: java.lang.NullPointerException
    at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(N odeImpl.java:204)
    at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.c reateSCANodeFromClassLoader(NodeFactoryImpl.java:3 7)
    at org.apache.tuscany.sca.host.embedded.impl.DefaultS CADomain.init(DefaultSCADomain.java:178)
    at org.apache.tuscany.sca.host.embedded.impl.DefaultS CADomain.<init>(DefaultSCADomain.java:100)
    at org.apache.tuscany.sca.host.embedded.SCADomain.cre ateNewInstance(SCADomain.java:182)
    at org.apache.tuscany.sca.host.embedded.SCADomain.new Instance(SCADomain.java:63)
    at com.corridor.app.ServiceLocator.<init>(ServiceLoca tor.java:40)
    at com.corridor.app.ServiceLocator.<clinit>(ServiceLo cator.java:27)
    ... 46 more
    Caused by: java.lang.NullPointerException
    at org.apache.tuscany.sca.node.impl.RuntimeBootStrapp er.start(RuntimeBootStrapper.java:116)
    at org.apache.tuscany.sca.node.impl.NodeImpl.initRunt ime(NodeImpl.java:473)
    at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(N odeImpl.java:197)
    ... 53 more
    INFO: [ERROR] org.apache.axis2.AxisFault


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

    Thanks
    Zoran
    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, 12:18 PM
  2. Sending files though bluetooth (URL included) ???
    By agusCba in forum Sun Java Wireless Toolkit
    Replies: 2
    Last Post: 04-04-2010, 12:53 AM
  3. Tomcat 5.5, Axis 1.2
    By ushan.unltd.online in forum New To Java
    Replies: 2
    Last Post: 03-17-2009, 07:07 AM
  4. Replies: 3
    Last Post: 10-12-2008, 03: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
  •