Run webservice jax-ws client in a web application under tomcat

All service classes in my case extend javax.xml.ws.Service.

But real challenges, as I see it, work through 3 party libraries under the hood. In my case, tomcat uses Axis2.

First I have to ask, which Tomcat banks use to run the web service?

Secondly, is there a way to change them?

Third, what does this exception mean? Does he need another jar file in the Tomcat / lib directory?

Got this stack trace when trying to call the created web service client:

17:23:21 05/12/2010 caused by: java.lang.NoClassDefFoundError: org / apache / axiom / om / OMNode
17:23:21 05/12/2010 at org.apache.axis2.deployment.DescriptionBuilder.buildOM (DescriptionBuilder.java:96)
17:23:21 05/12/2010 at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig (AxisConfigBuilder.java:79)
17:23:21 05/12/2010 at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration (DeploymentEngine.java:615)
17:23:21 05/12/2010 at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration (FileSystemConfigurator.java:115)
17:23:21 05/12/2010 at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext (ConfigurationContextFactory.java:64)
17:23:21 05/12/2010 at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem (ConfigurationContextFactory.java:180)
17:23:21 05/12/2010 at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext (ClientConfigurationFactory.java:51)
17:23:21 05/12/2010 at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription (DescriptionFactoryImpl.java:74)
17:23:21 05/12/2010 at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription (DescriptionFactory.java:67)
17:23:21 05/12/2010 at org.apache.axis2.jaxws.spi.ServiceDelegate. (ServiceDelegate.java:84)
17:23:21 05/12/2010 at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate (Provider.java:45)
17:23:21 05/12/2010 at javax.xml.ws.Service. (Service.java:56)
+3
source share
1 answer

1/Tomcat - . Axis2 webapp, Tomcat, Tomcat lib. .

, webapp1, Axis2 1.4 webapp2, Axis2 1.5. 1.4 1.5 , Tomcat Tomcat .

. Tomcat .

2/, Axis2 webapp, Tomcat. Apache CXF Sun JAX-WS RI Axis2.

Sun JAX-WS RI, , -. Tomcat webapp. tomcat/lib Axis2, (. 1/).

3/Axis2 1.5 . , axiom-api-1.2.8.jar .

+4

Source: https://habr.com/ru/post/1745112/


All Articles