File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes No such method error is getting when using Metro 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "No such method error is getting when using Metro 2.0" Watch "No such method error is getting when using Metro 2.0" New topic

No such method error is getting when using Metro 2.0

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
Hi team,
I am using metro 2.0.
for customizing exception handling i am using webFault annotation.

when i am deploying to tomcat i am getting Nosuch method error.

i have searched in google, somebody saying endorsed folder in jdk lib.
still also i getting same exception.

can any one please suggest me how can i resolve my problem..

Thanks & Regards
Ramesh k
Kamal Tripathi
Ranch Hand

Joined: Oct 02, 2008
Posts: 86
You are in luck if you haven't still couldn't resolve this issue!! I am getting same error but with glassfish and I was googling around.

Looks like this issue is fairly common with Tomcat. Here are some links to help you. They will surely help you.

Post on coderanch

Another Link

Unfortunately I haven't found anything that talks about glassfish

Kamal Tripathi
SCJP 1.4 90%, SCWCD5 94%, Next SCDJWS--> In Naescent stage. Researching abt exam and material itself.
David Brossard
Ranch Hand

Joined: Jun 03, 2004
Posts: 109
The issue comes from the fact that the JRE and/or JDK now comes with its implementation of JAX-WS. However Metro uses a more recent one. To make sure the right API is used, the webservices-api jar from the metro distribution must be placed in the 'endorsed' section of either of the following:

1. the container of the application e.g. Tomcat or Glassfish
2. or the endorsed folder of the JRE.

In the latter case, do remember that it must be the endorsed folder of the JRE being used to run your program. This could be (in windows)
c:\program files\java\jre6\lib\endorsed
c:\program files\java\jdk6\jre\lib\endorsed

In the former case:
1. for tomcat: <tomcat_home>\lib
2. for glassfish: <glassfish_home>\lib\endorsed


No matter what they say in Ohio, we're still first in flight!
I agree. Here's the link:
subject: No such method error is getting when using Metro 2.0
It's not a secret anymore!