Axis2
  1. Axis2
  2. AXIS2-4927

Can't use @WebFault and @RequestWrapper annotations in JAX-WS services on Java 1.6

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 1.6.1, 1.6.2
    • Fix Version/s: 1.7.0, 1.6.3
    • Component/s: jaxws
    • Labels:
      None

      Description

      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

        Activity

        Isuru Eranga Suriarachchi created issue -
        Isuru Eranga Suriarachchi made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Isuru Eranga Suriarachchi made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 1.6 [ 12313622 ]
        Resolution Fixed [ 1 ]
        Andreas Veithen made changes -
        Summary Can't use @WebFault and @RequestWrapper annotations in JAX-WS services Can't use @WebFault and @RequestWrapper annotations in JAX-WS services on Java 1.6
        Assignee Isuru Eranga Suriarachchi [ isurues ] Andreas Veithen [ veithen ]
        Fix Version/s 1.7.0 [ 12316136 ]
        Fix Version/s 1.6.0 [ 12313622 ]
        Affects Version/s 1.6.2 [ 12317875 ]
        Affects Version/s 1.6.1 [ 12316466 ]
        Affects Version/s 1.6.0 [ 12313622 ]
        Priority Critical [ 2 ] Major [ 3 ]
        Andreas Veithen made changes -
        Fix Version/s 1.6.3 [ 12320771 ]

          People

          • Assignee:
            Andreas Veithen
            Reporter:
            Isuru Eranga Suriarachchi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development