You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Stadelmann Josef <jo...@axa-winterthur.ch> on 2012/03/29 12:23:33 UTC

[axis2-1.6.1] jaxws-samples NOT ALL samples ARE DEPLOYING

Hi samples developers of axis2-1.6.1

maybe sombody of you has an idea what goes wrong with the
axis2-1.6.1/samples/jaxws-samples project

1.	I had to add two dependecies on this projects POM.XML file - to
deliver transport senders local and http - two artifacts are missed to
deliver into the resulting target war file 
		        <dependency>
		            <groupId>org.apache.axis2</groupId>
	
<artifactId>axis2-transport-http</artifactId>
		            <version>1.6.1</version>
		        </dependency>
		        <dependency>
		            <groupId>org.apache.axis2</groupId>
	
<artifactId>axis2-transport-local</artifactId>
		            <version>1.6.1</version>
		        </dependency>
2.	After that the Deployment of the resulting WAR file works much
better but results still in the stack dump shown below / (for me too
much, too bad for a "working" example)
3.	My question is: is there an annotation missing i.e. partName for
the method sendImage of the MtomSample.java
		 
		package org.apache.axis2.jaxws.samples.mtom;

		import javax.jws.WebMethod;
		import javax.jws.WebParam;
		import javax.jws.WebResult;
		import javax.jws.WebService;
		import javax.xml.ws.RequestWrapper;
		import javax.xml.ws.ResponseWrapper;


		@WebService(name = "MtomSampleService",
		        targetNamespace =
"http://org/apache/axis2/jaxws/samples/mtom/",
		        wsdlLocation = "WEB-INF/wsdl/ImageDepot.wsdl")
		public interface MtomSample {


		    /**
		     * @param input
		     * @return returns
org.apache.axis2.jaxws.samples.mtom.ImageDepot
		     */
		    @WebMethod(action = "sendImage")
		    @WebResult(name = "output", targetNamespace =
"http://org/apache/axis2/jaxws/samples/mtom/")
		    @RequestWrapper(localName = "sendImage",
targetNamespace = "http://org/apache/axis2/jaxws/samples/mtom/",
className = "org.apache.axis2.jaxws.samples.mtom.SendImage")
		    @ResponseWrapper(localName = "sendImageResponse",
targetNamespace = "http://org/apache/axis2/jaxws/samples/mtom/",
className = "org.apache.axis2.jaxws.samples.mtom.SendImageResponse")
		    public ImageDepot sendImage(
		            @WebParam(name = "input", targetNamespace =
"http://org/apache/axis2/jaxws/samples/mtom/")
		            ImageDepot input);


		}


[INFO] Deploying module: addressing-1.6.1 - file:/C:/Program
Files/Apache Software Foundation/Apache Tomcat
6.0.26/webapps/jaxws-samples/WEB-INF/modules/addressing-1.6.1.mar
[INFO] Deploying module: addressing-1.6.1 - file:/C:/Program
Files/Apache Software Foundation/Apache Tomcat
6.0.26/webapps/jaxws-samples/WEB-INF/lib/addressing-1.6.1.mar
[INFO] Deploying JAXWS annotated class
org.apache.axis2.jaxws.samples.echo.EchoService12PortImpl as a service -
EchoService12
[INFO] Deploying JAXWS annotated class
org.apache.axis2.jaxws.samples.echo.EchoServicePortImpl as a service -
EchoService
[INFO] Exception creating Axis Service : null
java.lang.NoSuchMethodError:
javax.xml.ws.RequestWrapper.partName()Ljava/lang/String;
	at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.attachRequestWrapperAnnotation(JavaMethodsToMDCConverter.java:203
)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.convertMethods(JavaMethodsToMDCConverter.java:85)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.introspectClass(JavaClassToDBCConverter.java:193)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.buildDBC(JavaClassToDBCConverter.java:141)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.produceDBC(JavaClassToDBCConverter.java:120)
	at
org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createSer
viceDescription(DescriptionFactoryImpl.java:215)
	at
org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(
DescriptionFactory.java:564)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDe
ployer.java:257)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeploy
er.java:208)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deployServicesInWARClassP
ath(JAXWSDeployer.java:106)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.init(JAXWSDeployer.java:7
8)
	at
org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(Deploym
entEngine.java:1166)
	at
org.apache.axis2.deployment.DeploymentEngine.setConfigContext(Deployment
Engine.java:1155)
	at
org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext(Wa
rBasedAxisConfigurator.java:349)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:89)
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:584)
	at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1173)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4187)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496
)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:791)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
	at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
	at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
	at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:30
3)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:662)
[INFO] Exception creating Axis Service : null
java.lang.NoSuchMethodError:
javax.xml.ws.RequestWrapper.partName()Ljava/lang/String;
	at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.attachRequestWrapperAnnotation(JavaMethodsToMDCConverter.java:203
)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter.convertMethods(JavaMethodsToMDCConverter.java:85)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.introspectClass(JavaClassToDBCConverter.java:193)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.buildDBC(JavaClassToDBCConverter.java:141)
	at
org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConve
rter.produceDBC(JavaClassToDBCConverter.java:120)
	at
org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createSer
viceDescription(DescriptionFactoryImpl.java:215)
	at
org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(
DescriptionFactory.java:564)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDe
ployer.java:257)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeploy
er.java:208)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.deployServicesInWARClassP
ath(JAXWSDeployer.java:106)
	at
org.apache.axis2.jaxws.framework.JAXWSDeployer.init(JAXWSDeployer.java:7
8)
	at
org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(Deploym
entEngine.java:1166)
	at
org.apache.axis2.deployment.DeploymentEngine.setConfigContext(Deployment
Engine.java:1155)
	at
org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext(Wa
rBasedAxisConfigurator.java:349)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:89)
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:584)
	at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1173)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4187)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4496
)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:791)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
	at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
	at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
	at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:30
3)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:662)
[INFO] Deploying JAXWS annotated class
org.apache.axis2.jaxws.samples.ping.PingService12PortImpl as a service -
PingService12
[INFO] Deploying JAXWS annotated class
org.apache.axis2.jaxws.samples.ping.PingServicePortImpl as a service -
PingService
[WARN] No transportReceiver for
org.apache.axis2.transport.http.AxisServletListener found. An instance
for HTTP will be configured automatically. Please update your axis2.xml
file!



4.	I consider Examples shall work unless given as
to-be-debugged-examples to students for learning reasons, in which case
I would like to see such intentions in a README flagged for the given
example, all else is bad quality!
5.	The stack dump above is based on the fact that according to
http://doc.java.sun.com/DocWeb/api/javax.xml.ws.RequestWrapper this
calss does not know .partName() method but knows .className(),
localName() and targetNamespace() methods; What I do not understand is
how my axis2-1.6.1, built with maven-3.0.5-SNAPSHOOT, compiled against
JDK1.6.0_26 on my Vista PC  could, delivers a running axis2 versio. The
class
org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCCon
verter, compikles but it is this class which calls the
RequestWrapper.partName() method, which in a JAVA6 jdk/jre does not
exists according to documentation of the API. But in this case - the
error given in the stack dump is correct. 
6.	How do we proceed. (JIRA's required or are this JIRA's already
filed?)

Josef