0 Replies Latest reply: Oct 27, 2010 8:15 AM by 806867 RSS

    Tomcat and Axis2

    806867
      Hello,

      I am trying to deploy a webservice on tomcat that implements some axis wsdl2java work. However when I try to launch the code it gives the following error in the line when I create an instance of auto-generated ServiceStub.:

      org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender
      +     at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:694)+
      +     at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:121)+
      +     at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:703)+
      +     at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)+
      +     at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)+
      +     at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:206)+
      +     at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)+
      +     at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)+
      +     at com.mywebpack.rest.gencode.MywebappServiceStub.<init>(MywebappServiceStub.java:211)+
      +     at com.mywebpack.rest.gencode.MywebappServiceStub.<init>(MywebappServiceStub.java:197)+
      +     at com.mywebpack.rest.resources.MywebappImpl.<init>(MywebappImpl.java:86)+
      +     at com.mywebpack.rest.resources.SearchResource.receiveWavestream(SearchResource.java:163)+
      +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
      +     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)+
      +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)+
      +     at java.lang.reflect.Method.invoke(Unknown Source)+
      +     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:165)+
      +     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)+
      +     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:276)+
      +     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)+
      +     at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)+
      +     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)+
      +     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)+
      +     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1171)+
      +     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1103)+
      +     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053)+
      +     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043)+
      +     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)+
      +     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)+
      +     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)+
      +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)+
      +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)+
      +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)+
      +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)+
      +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)+
      +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)+
      +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)+
      +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)+
      +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)+
      +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)+
      +     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)+
      +     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)+
      +     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)+
      +     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)+
      +     at java.lang.Thread.run(Unknown Source)+
      Caused by: java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender
      +     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)+
      +     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)+
      +     at java.lang.Class.forName0(Native Method)+
      +     at java.lang.Class.forName(Unknown Source)+
      +     at org.apache.axis2.util.Loader.loadClass(Loader.java:261)+
      +     at org.apache.axis2.deployment.AxisConfigBuilder.processTransportSenders(AxisConfigBuilder.java:669)+

      The funny thing is that I am using Maven for building the project. And when maven compiles it it runs a TEST and everything is doing fine there - no errors. Tried to look for the solution on google but ended with no results. Can any one help?