Trying to run JAX-WS Sample Application in the Metro Environment

I recently downloaded the Metro 2.0 from https://metro.dev.java.net.

I wanted to install it on my Tomcat 6 (apache-tomcat-6.0.18) with JDK (1.6.0_10)

I followed Java example in the "Getting started with Metro" guide from https://metro.dev.java.net/getting-started/basic.html

Continue Reading...


  1. Metro 2.0 ha still this problems... why they do not fix these things ?

  2. I think their emphasis is to use Metro with Glassfish 3.0. That could be one reason they didnt spend time on this sample app for tomcat. BTW Metro 2.0 core functionalities are good and I didnt see any issues using it in my recent applications.

    The build scripts used in sample app are handy and can be copied to use in our own project for server and client code generation. Let me know if you need any help on that front.

  3. seems so frustrating to endure all the error messages. could there be a simpler way?

  4. Hi just something I noticed on your blog. It doesn't seem to display the year of post, which is somewhat useful for older entries ;)

  5. I was having the same problems described here also using Tomcat and this article just made my day everything is up and running now!

    Thanks a lot keep up the good work!!!

  6. @twig - Thanks for the feedback. I will try to change the template to incoporate the year in dates.

    @Anonymous : Thanks for your comment. I am glad it helped you. Feel free to ask questions if you have any.

  7. @twig - As per your feedback I was able to incorporate the year in my post headers. Hope this helps.

  8. Great page, contained everything I needed to get the samples working. Thanks for putting it together

  9. AnonymousJuly 06, 2010

    I tried the above steps but still same error :(
    from where you download webservices-api.jar file??

  10. I also, would like to know where I can download the webservices-api.jar file?

  11. The metro distribution should contain a webservices-api.jar file in lib directory. Let me know what problem you are facing? Which version of Metro are you using?

  12. I got the same issue. java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String

    I'm using netbeans 6.9.1, java 1.6.16 tomcat 6.x, metro 2.0, try copying "endorsed" folder with webservices-api.jar to you javahome\1.6.16\jre\lib\endorsed and restart netbeans. If it didn't fix, place the same endorsed folder in \endorsed or \endorsed where catalina-home is apache tomcat6.x home and catalina-base is tomcat instance. It should fix.

  13. I mean,

    If it didn't fix, place the same endorsed folder in \endorsed (or)
    \endorsed where catalina-home is apache tomcat6.x home i.e., C:\Apache Software Foundation\Apache Tomcat 6.0.26 in my case
    and catalina-base is tomcat instance i.e., C:\Documents and Settings\o404028\.netbeans\6.9\apache-tomcat-6.0.26_base in my case.
    It should fix.

  14. It did solve my problem. NetBeans 6.9.1 and JDK 1.6_21. After I created 'endorsed' dir in JDK's lib folder and copied webservices-api from netbeans's provided Metro lib into it problem was solved.


  15. You are awesome!!! you saved me the big trouble. I have been trying this for last 2 days and going absolutely crazy on it.
    I added \endorsed in jre\lib but that didn't work. So I moved it under catalina_home and it worked like a charm.
    Thankyou so much once again.


You Might Like