WLS 9.2 - NoSuchMethod Error: Javax.Jws.Webservice.Portname()Ljava/Lang/String (Doc ID 958074.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 9.2 to 9.2
Information in this document applies to any platform.

Symptoms

In WebLogic 9.2 MP3:

When attempting to use the webservice annotation @javax.xml.ws.WebEndpoint, the following error
occurs --

javax.xml.ws.WebServiceException: Unable to create composite annotation class
org.apache.axis2.jaxws.description.builder.WebServiceAnnot due to exception
java.lang.reflect.InvocationTargetException
at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
... ... ...
Caused by: java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;
at
org.apache.axis2.jaxws.description.builder.WebServiceAnnot.createFromAnnotation(WebServiceAnnot.java
:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite.getCompositeAnnotation(Descri
ptionBuilderComposite.java:359)
... 53 more


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms