Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 97792 invoked from network); 16 Jan 2011 09:54:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 09:54:12 -0000 Received: (qmail 2318 invoked by uid 500); 16 Jan 2011 09:54:11 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 1402 invoked by uid 500); 16 Jan 2011 09:54:08 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 1386 invoked by uid 99); 16 Jan 2011 09:54:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 09:54:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 09:54:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0G9rkAw017932 for ; Sun, 16 Jan 2011 09:53:46 GMT Message-ID: <23953845.393251295171626302.JavaMail.jira@thor> Date: Sun, 16 Jan 2011 04:53:46 -0500 (EST) From: "Isuru Eranga Suriarachchi (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (AXIS2-4927) Can't use @WebFault and @RequestWrapper annotations in JAX-WS services In-Reply-To: <26886556.391261295154285563.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982268#action_12982268 ] Isuru Eranga Suriarachchi commented on AXIS2-4927: -------------------------------------------------- Hi Azeez, Yes. There are two workarounds for this issue. [1] Copying geronimo-jaxws_2.2_spec-1.0.jar into JAVA_HOME/jre/lib/endorsed directory. [2] Embedding geronimo-jaxws_2.2_spec-1.0.jar in the "lib" folder of the jaxws service jar file and enabling child first class loading in the axis.xml. 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.(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.(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: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org