• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No such method error is getting when using Metro 2.0

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic