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 "Sullivan, Sean" <su...@menloworldwide.com> on 2007/11/29 01:47:43 UTC

Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"

I am seeing this message in my log file.   What is the
getExtensibilityElements() method? Where is this coming from?

[11/28/07 16:26:24:591 PST] 0000017d ServiceDeploy I
org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices
service, which is not valid, caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
not found
	at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio
ns(WSDL11ToAxisServiceBuilder.java:1241)
	at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType
(WSDL11ToAxisServiceBuilder.java:447)
	at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint
s(WSDL11ToAxisServiceBuilder.java:360)
	at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:281)
	at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS
ervices(WSDL11ToAllAxisServicesBuilder.java:109)
	at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil
e(ArchiveReader.java:230)
	at
org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn
Folder(ArchiveReader.java:431)
	at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A
rchiveReader.java:269)
	at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
64)
	at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
ploymentFileData.java:137)
	at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:571)
	at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
.java:141)
	at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
.java:318)
	at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:220)
	at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
ne.java:118)
	at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas
edAxisConfigurator.java:272)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:78)
	at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:500)
	at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
	at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"

Posted by Amila Suriarachchi <am...@gmail.com>.
On Nov 29, 2007 7:55 AM, <mg...@hotmail.com> wrote:

> Hi Sean
> do you have wsdl4j.jar on /WEB-INF/lib ?
> http://www.ibiblio.org/maven/wsdl4j/jars/


or are you using the correct version
axis2 version supports
wsdl4j-1.6.2.jar

Amila.

> <http://www.ibiblio.org/maven/wsdl4j/jars/>
> Martin--
> ----- Original Message -----
> Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB
> To: <ax...@ws.apache.org>
> Sent: Wednesday, November 28, 2007 7:47 PM
> Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError:
> javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
> not
> found"
>
>
>
> I am seeing this message in my log file.   What is the
> getExtensibilityElements() method? Where is this coming from?
>
> [11/28/07 16:26:24:591 PST] 0000017d ServiceDeploy I
> org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices
> service, which is not valid, caused java.lang.NoSuchMethodError:
> javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
> not found
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio
> ns(WSDL11ToAxisServiceBuilder.java:1241)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType
> (WSDL11ToAxisServiceBuilder.java:447)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint
> s(WSDL11ToAxisServiceBuilder.java:360)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
> WSDL11ToAxisServiceBuilder.java:281)
> at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS
> ervices(WSDL11ToAllAxisServicesBuilder.java:109)
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil
> e(ArchiveReader.java:230)
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn
> Folder(ArchiveReader.java:431)
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A
> rchiveReader.java:269)
> at
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
> 64)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
> ploymentFileData.java:137)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
> ava:571)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
> java:141)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
> java:318)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
> istener.java:220)
> at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
> ne.java:118)
> at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas
> edAxisConfigurator.java:272)
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
> Context(ConfigurationContextFactory.java:78)
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
> t.java:500)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
> at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

RE: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"

Posted by "Sullivan, Sean" <su...@menloworldwide.com>.
Yes, I have the WSDL4J jar in the WAR:

     WEB-INF/lib/wsdl4j-1.6.2.jar

The WAR is running inside IBM Websphere 6.0.2.13

The root cause appears to be a classloader issue.   Websphere 6 uses
PARENT_FIRST classloading by default.

Websphere 6.0 has an older version of WSDL4J in Websphere's global lib
directory.  These classes are given priority over WEB-INF/lib due to the
PARENT_FIRST classloading policy.

The solution is to use PARENT_LAST classloading instead of PARENT_FIRST
classloading.

See:

http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-versi
on-on-websphere.html


Sean

-----Original Message-----
From: mgainty@hotmail.com [mailto:mgainty@hotmail.com] 
Sent: Wednesday, November 28, 2007 6:26 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 1.3 "caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
not found"

Hi Sean
do you have wsdl4j.jar on /WEB-INF/lib ?
http://www.ibiblio.org/maven/wsdl4j/jars/
Martin--
----- Original Message -----
Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB
To: <ax...@ws.apache.org>
Sent: Wednesday, November 28, 2007 7:47 PM
Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
not
found"



I am seeing this message in my log file.   What is the
getExtensibilityElements() method? Where is this coming from?

[11/28/07 16:26:24:591 PST] 0000017d ServiceDeploy I
org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices
service, which is not valid, caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
not found
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio
ns(WSDL11ToAxisServiceBuilder.java:1241)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType
(WSDL11ToAxisServiceBuilder.java:447)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint
s(WSDL11ToAxisServiceBuilder.java:360)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:281)
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS
ervices(WSDL11ToAllAxisServicesBuilder.java:109)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil
e(ArchiveReader.java:230)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn
Folder(ArchiveReader.java:431)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A
rchiveReader.java:269)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
64)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
ploymentFileData.java:137)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:571)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
java:141)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
java:318)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:220)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
ne.java:118)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas
edAxisConfigurator.java:272)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:78)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:500)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 1.3 "caused java.lang.NoSuchMethodError: javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not found"

Posted by mg...@hotmail.com.
Hi Sean
do you have wsdl4j.jar on /WEB-INF/lib ?
http://www.ibiblio.org/maven/wsdl4j/jars/
Martin--
----- Original Message -----
Wrom: IMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB
To: <ax...@ws.apache.org>
Sent: Wednesday, November 28, 2007 7:47 PM
Subject: Axis2 1.3 "caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List; not
found"



I am seeing this message in my log file.   What is the
getExtensibilityElements() method? Where is this coming from?

[11/28/07 16:26:24:591 PST] 0000017d ServiceDeploy I
org.apache.axis2.deployment.ServiceDeployer deploy The XyzServices
service, which is not valid, caused java.lang.NoSuchMethodError:
javax.wsdl.Operation: method getExtensibilityElements()Ljava/util/List;
not found
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperatio
ns(WSDL11ToAxisServiceBuilder.java:1241)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType
(WSDL11ToAxisServiceBuilder.java:447)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoint
s(WSDL11ToAxisServiceBuilder.java:360)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
WSDL11ToAxisServiceBuilder.java:281)
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllS
ervices(WSDL11ToAllAxisServicesBuilder.java:109)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil
e(ArchiveReader.java:230)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processFilesIn
Folder(ArchiveReader.java:431)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A
rchiveReader.java:269)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:
64)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(De
ploymentFileData.java:137)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:571)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
java:141)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
java:318)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:220)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngi
ne.java:118)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBas
edAxisConfigurator.java:272)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:78)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServle
t.java:500)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
at com.menlo.axis2.AxisServlet.init(AxisServlet.java:24)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org