Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No such method error is getting when using Metro 2.0

 
ramesh kancherla
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic