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 Alexander Rosemann <al...@gmail.com> on 2010/08/20 15:17:41 UTC

WebSphere 6.1, axis2 1.4.1 and java.lang.NoSuchMethodError

I try to get an application running in websphere 6.1. The application 
has axis2 1.4.1 embedded. I set the classloader to "parent last" to make 
sure the application loads its classes first.

When I go to http://localhost:9080/myapp/services/listServices it tells 
me that there are faulty services. When clicking on the link (shwing the 
full path to the faulty aar) I get the following stack trace:

Error: java.lang.NoSuchMethodError: 
javax/wsdl/PortType.getExtensionAttributes()Ljava/util/Map; at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:572) 
at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:469) 
at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363) 
at 
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107) 
at ...

An interesting fact is, deploying the standalone axis2.war works like a 
charm. Any idea what I can try to get it working?

Cheers,
Alex

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


Re: WebSphere 6.1, axis2 1.4.1 and java.lang.NoSuchMethodError

Posted by Alexander Rosemann <al...@gmail.com>.
It was a classpath issue. I wasn't aware of the fact that you can change 
the classpath setting of WebSphere 6.1 in two places. Obviously, I 
changed it at the wrong place. In case you have a similar issue, try to 
change the classpath setting as follows:

Got to Applications/Enterprise Applications, click on the "my_app.war" 
link in the table, click on "Manage Modules", click on the module in the 
table (i.e. "My Application 1.0") and finally select under "Class loader 
order" "Classes loaded with application class loader first". Restart 
WebSphere.

Best,
Alex

On 20.08.2010 15:40, Caristi, Joe wrote:
> Make sure that you have the appropriate wsdl4j jar on your application's classpath.  If you do, you will probably need to do more research to see where the conflicting jar is coming from.  I think WebSphere provides the ability to dump the classloader but I can't remember how to do it.
>
> Below is the output from jarfinder.com.  One of these jars (probably an axis-related one), is the one you need.
>
> javax.wsdl.PortType
> known versions
>
>     1. abstract interface javax.wsdl.PortType [581 bytes, jvm>= 1.2 ]
>            * wsdl4j.jar
>     2. abstract interface javax.wsdl.PortType [667 bytes, jvm>= 1.4 ]
>            * wsdl4j.jar
>            * jbossall-client.jar
>     3. abstract interface javax.wsdl.PortType [630 bytes, jvm>= 1.2 ]
>            * wsdl4j-1.5.1.jar
>            * wsdl4j.jar
>            * axis-wsdl4j-1.2.1.jar
>            * axis-wsdl4j-1.3.jar
>            * axis-wsdl4j-1.2.jar
>            * axis-wsdl4j-1.5.1.jar
>            * client.jar
>            * dspace-lni-client-1.5.0-rc1-jar-with-dependencies.jar
>            * dspace-lni-client-1.5.0-jar-with-dependencies.jar
>            * dspace-lni-client-1.5.0-beta2-jar-with-dependencies.jar
>            * dspace-lni-client-1.5.1-beta-jar-with-dependencies.jar
>            * dspace-lni-client-1.5.1-jar-with-dependencies.jar
>            * wsdl4j-1.5.3.jar
>            * wsdl4j-1.5.2.jar
>     4. abstract interface javax.wsdl.PortType [488 bytes, jvm>= 1.2 ]
>            * org.apache.servicemix.bundles.wsdl4j-1.6.1-4.0-m1.jar
>            * org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar
>            * javaee-api-5.0.4.jar
>            * javaee-api-5.0.5.jar
>            * javaee-api-5.0.2.jar
>            * javaee-api-5.0.1.jar
>            * javaee-api-5.0.0.jar
>            * javaee-api-5.0.3.jar
>            * javaee-api-5.1.0-M1.jar
>            * wsdl4j-1.6.1.jar
>            * wsdl4j-1.6.2.jar
>     5. abstract interface javax.wsdl.PortType [667 bytes, jvm>= 1.2 ]
>            * axis-wsdl4j-1.2-RC3.jar
>     6. abstract interface javax.wsdl.PortType [637 bytes, jvm>= 1.1 ]
>            * axis-wsdl4j-1.2-beta-3.jar
>            * axis-wsdl4j-1.2-RC1.jar
>            * axis-wsdl4j-1.2-beta-2.jar
>            * axis-wsdl4j-1.2-RC2.jar
>     7. abstract interface javax.wsdl.PortType [630 bytes, jvm>= 1.2 ]
>            * groovysoap-all-jsr06-0.1.jar
>     8. abstract interface javax.wsdl.PortType [588 bytes, jvm>= 1.1 ]
>            * wsdl4j-1.4.jar
>            * wsdl4j-1.0.jar
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Alexander Rosemann [mailto:alexander.rosemann@gmail.com]
> Sent: Friday, August 20, 2010 9:18 AM
> To: axis-user@ws.apache.org
> Subject: WebSphere 6.1, axis2 1.4.1 and java.lang.NoSuchMethodError
>
> I try to get an application running in websphere 6.1. The application
> has axis2 1.4.1 embedded. I set the classloader to "parent last" to make
> sure the application loads its classes first.
>
> When I go to http://localhost:9080/myapp/services/listServices it tells
> me that there are faulty services. When clicking on the link (shwing the
> full path to the faulty aar) I get the following stack trace:
>
> Error: java.lang.NoSuchMethodError:
> javax/wsdl/PortType.getExtensionAttributes()Ljava/util/Map; at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:572)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:469)
> at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
> at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
> at ...
>
> An interesting fact is, deploying the standalone axis2.war works like a
> charm. Any idea what I can try to get it working?
>
> Cheers,
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
> STATEMENT OF CONFIDENTIALITY:
>
>
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If you are not the intended
> recipient, please notify WHI Solutions immediately at gc@whisolutions.com,
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>

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


RE: WebSphere 6.1, axis2 1.4.1 and java.lang.NoSuchMethodError

Posted by "Caristi, Joe" <jc...@whisolutions.com>.
Make sure that you have the appropriate wsdl4j jar on your application's classpath.  If you do, you will probably need to do more research to see where the conflicting jar is coming from.  I think WebSphere provides the ability to dump the classloader but I can't remember how to do it.

Below is the output from jarfinder.com.  One of these jars (probably an axis-related one), is the one you need.

javax.wsdl.PortType
known versions

   1. abstract interface javax.wsdl.PortType [581 bytes, jvm >= 1.2 ]
          * wsdl4j.jar
   2. abstract interface javax.wsdl.PortType [667 bytes, jvm >= 1.4 ]
          * wsdl4j.jar
          * jbossall-client.jar
   3. abstract interface javax.wsdl.PortType [630 bytes, jvm >= 1.2 ]
          * wsdl4j-1.5.1.jar
          * wsdl4j.jar
          * axis-wsdl4j-1.2.1.jar
          * axis-wsdl4j-1.3.jar
          * axis-wsdl4j-1.2.jar
          * axis-wsdl4j-1.5.1.jar
          * client.jar
          * dspace-lni-client-1.5.0-rc1-jar-with-dependencies.jar
          * dspace-lni-client-1.5.0-jar-with-dependencies.jar
          * dspace-lni-client-1.5.0-beta2-jar-with-dependencies.jar
          * dspace-lni-client-1.5.1-beta-jar-with-dependencies.jar
          * dspace-lni-client-1.5.1-jar-with-dependencies.jar
          * wsdl4j-1.5.3.jar
          * wsdl4j-1.5.2.jar
   4. abstract interface javax.wsdl.PortType [488 bytes, jvm >= 1.2 ]
          * org.apache.servicemix.bundles.wsdl4j-1.6.1-4.0-m1.jar
          * org.apache.servicemix.bundles.wsdl4j-1.6.1_1.jar
          * javaee-api-5.0.4.jar
          * javaee-api-5.0.5.jar
          * javaee-api-5.0.2.jar
          * javaee-api-5.0.1.jar
          * javaee-api-5.0.0.jar
          * javaee-api-5.0.3.jar
          * javaee-api-5.1.0-M1.jar
          * wsdl4j-1.6.1.jar
          * wsdl4j-1.6.2.jar
   5. abstract interface javax.wsdl.PortType [667 bytes, jvm >= 1.2 ]
          * axis-wsdl4j-1.2-RC3.jar
   6. abstract interface javax.wsdl.PortType [637 bytes, jvm >= 1.1 ]
          * axis-wsdl4j-1.2-beta-3.jar
          * axis-wsdl4j-1.2-RC1.jar
          * axis-wsdl4j-1.2-beta-2.jar
          * axis-wsdl4j-1.2-RC2.jar
   7. abstract interface javax.wsdl.PortType [630 bytes, jvm >= 1.2 ]
          * groovysoap-all-jsr06-0.1.jar
   8. abstract interface javax.wsdl.PortType [588 bytes, jvm >= 1.1 ]
          * wsdl4j-1.4.jar
          * wsdl4j-1.0.jar









-----Original Message-----
From: Alexander Rosemann [mailto:alexander.rosemann@gmail.com]
Sent: Friday, August 20, 2010 9:18 AM
To: axis-user@ws.apache.org
Subject: WebSphere 6.1, axis2 1.4.1 and java.lang.NoSuchMethodError

I try to get an application running in websphere 6.1. The application
has axis2 1.4.1 embedded. I set the classloader to "parent last" to make
sure the application loads its classes first.

When I go to http://localhost:9080/myapp/services/listServices it tells
me that there are faulty services. When clicking on the link (shwing the
full path to the faulty aar) I get the following stack trace:

Error: java.lang.NoSuchMethodError:
javax/wsdl/PortType.getExtensionAttributes()Ljava/util/Map; at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:572)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:469)
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363)
at
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
at ...

An interesting fact is, deploying the standalone axis2.war works like a
charm. Any idea what I can try to get it working?

Cheers,
Alex

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


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at gc@whisolutions.com,
and destroy all copies of this message and any attachments.

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