[
https://issues.apache.org/jira/browse/AXIS2-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982252#action_12982252
]
Isuru Eranga Suriarachchi commented on AXIS2-4927:
--------------------------------------------------
This issue only exists in JDK 1.6. It works fine in JDK 1.5. Here is the reason
for this..
Axis2 JAX-WS implementation depends on geronimo-jaxws_2.2_spec-1.0.jar for
javax.xml.ws packages. JDK 1.6 also provides the same package. geronimo-jaxws
supports JAX-WS 2.2 specification. But JDK 1.6 only supports JAX-WS 2.0. In
@RequestWrapper, @ResponseWrapper & @WebFault annotations, there are new
properties which are introduced in JAX-WS 2.2. So those annotations only work
properly with the geronimo-jaxws dependency. However when I run the simple
Axis2 server on JDK 1.6, it gets javax.xml.ws package from JDK. That's why the
above issue occurs. Therefore we have to make sure that it always binds to
geronimo-jaxws dependency.
This issue has occured after the fix done on
https://issues.apache.org/jira/browse/AXIS2-4783 which is correct according to
JAX-WS 2.2 spec.
Thanks,
~Isuru
> Can't use @WebFault and @RequestWrapper annotations in JAX-WS services
> ----------------------------------------------------------------------
>
> Key: AXIS2-4927
> URL: https://issues.apache.org/jira/browse/AXIS2-4927
> Project: Axis2
> Issue Type: Bug
> Components: jaxws
> Reporter: Isuru Eranga Suriarachchi
> Assignee: Isuru Eranga Suriarachchi
> Priority: Critical
>
> When @WebFault and @RequestWrapper annotations are used, JAX-WS service
> doesn't get deployed properly. Following is the stack trace on the console.
> java.lang.NoSuchMethodError:
> javax.xml.ws.WebFault.messageName()Ljava/lang/String;
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.attachWebFaultAnnotation(JavaClassToDBCConverter.java:384)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.setTypeTargettedAnnotations(JavaClassToDBCConverter.java:247)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.introspectClass(JavaClassToDBCConverter.java:159)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.buildDBC(JavaClassToDBCConverter.java:141)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC(JavaClassToDBCConverter.java:97)
> at
> org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:215)
> at
> org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(DescriptionFactory.java:564)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDeployer.java:253)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeployer.java:208)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.deploy(JAXWSDeployer.java:162)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:147)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> at
> org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:47)
> at
> org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:98)
> [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.JavaMethodsToMDCConverter.attachRequestWrapperAnnotation(JavaMethodsToMDCConverter.java:202)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaMethodsToMDCConverter.convertMethods(JavaMethodsToMDCConverter.java:84)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.introspectClass(JavaClassToDBCConverter.java:193)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.buildDBC(JavaClassToDBCConverter.java:141)
> at
> org.apache.axis2.jaxws.description.builder.converter.JavaClassToDBCConverter.produceDBC(JavaClassToDBCConverter.java:120)
> at
> org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:215)
> at
> org.apache.axis2.jaxws.description.DescriptionFactory.createAxisService(DescriptionFactory.java:564)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.createAxisService(JAXWSDeployer.java:253)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.deployClasses(JAXWSDeployer.java:208)
> at
> org.apache.axis2.jaxws.framework.JAXWSDeployer.deploy(JAXWSDeployer.java:162)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
> at
> org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:147)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> at
> org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:47)
> at
> org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:98)
> Thanks,
> ~Isuru
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]