The Source for Java Technology Collaboration
User: Password:



Rama Pulavarthi's Blog

Rama Pulavarthi Rama Pulavarthi is a Member of Technical Staff in the Java Web Services group at Sun Microsystems. He currently works on the development of JAX-WS Reference Implementation. He has previously lead the Software Quality Engineering effort of JAX-RPC. He holds a Masters degree in Computer Science from Auburn University in Alabama and Bachelors in Electronics and Communication from JNTU Hyderabad.



Speaking at JavaOne 2009 on JAX-WS 2.2

Posted by ramapulavarthi on June 01, 2009 at 09:07 PM | Permalink | Comments (0)

Jitu and I are going to speak at JavaOne 2009 on JAX-WS 2.2. The BOF is on Wednesday, June 03 7:45 PM - 8:35 PM. We will be talking about the new features in JAX-WS 2.2. If you use JAX-WS, Metro, drop by the Glassfish booth or at BOF to say hi and ask any questions you might have. Hope to see you all there.

JAX-WS 2.1.6 in JDK 6u14

Posted by ramapulavarthi on June 01, 2009 at 08:59 PM | Permalink | Comments (1)

We are trying our best to keep the JDK up to date with latest JAX-WS RI. The recently released JDK 6 Update release 14 has JAX-WS 2.1.6 RI along with JAXB 2.1.10 RI. You can find more about the changes that went in to the release can be seen at JAX-WS 2.1.6 change log and JAXB 2.1.10 change log. I hope the JAX-WS users find this helpful.

JAX-WS Maven 2 Plugin 1.12 released

Posted by ramapulavarthi on April 29, 2009 at 01:49 PM | Permalink | Comments (2)

JAX-WS Maven2 plugin 1.12 is released which has some bug fixes related to configuring the wsimport/wsgen options and minor usability issue. JAX-WS maven plugin 1.12 depends on recently released JAX-WS RI 2.1.7. Along with other changes in JAX-WS RI 2.1.7, For maven users it has one important bug fix related to the dependency on the woodstox.

Just a recap on the previous 1.11 release, If you have n't noticed, In 1.11 wsimport goal default behavior is changed to not compile the generated sources. This was fixed as JAX-WS-COMMONS-25.

Fixes in 1.12 release are
  • JAX-WS-COMMONS-36: wsgen extension option is not working with the maven plugin.
  • JAX-WS-683: Confusing Warning "Nothing to do, no WSDL found!" with wsimport goal.

You can find more about the plugin usage at jax-ws commons project. Do let us know if you see any issues with using the maven plugin.



Tip for using JAX-WS 2.2/ Metro 2.0 with Tomcat 6.x on JDK 6

Posted by ramapulavarthi on April 03, 2009 at 04:24 PM | Permalink | Comments (0)

If you trying to use JAX-WS 2.2 on top of JDK 6, you run into classloading problems. Resonating with the problems we had with using JAX-WS 2.1 on JDK 6 FCS?, Dejavu !!!.

As you guessed, JDK 6 (U4 and later) has JAX-WS implementation with JAX-WS 2.1 API. If you try to use JAX-WS 2.2, the runtime always picks up the JAX-WS API from bootclasloader and will not see JAX-WS 2.2 API in your classpath. Well, the solution is the same, i.e, using the endorsed overriding mechanism. This has been documented and discussed before.

But how do you configure for Web Services running on Tomcat 6 using JDK 6. Its easy with Tomcat 5.5, you just need to copy jaxws-api.jar and jaxb-api.jar into $TOMCAT_HOME/common/endorsed directory. But there are some changes in classloading in Tomcat 6.x and there is no documentation on the default endorsed directory.

Here it is, you have to create endorsed directory in $TOMCAT_HOME and Copy jax-ws.api.jar and jaxb-api.jar from JAX-WS (webservices-api.jar in case of Metro) to $TOMCAT_HOME/endorsed. You might also find my other blog on running JAX-WS samples on Tomcat 6.x useful.

I am putting here one of the problems one would see when using JAX-WS 2.2 features without endorsed mechanism. For ex, if you are using AddressingFeature.Responses added in JAX-WS 2.2 API, you would get
SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchMethodError: javax.xml.ws.soap.Addressing.responses()Ljavax/xml/ws/soap/AddressingFeature$Responses; java.lang.NoSuchMethodError: javax.xml.ws.soap.Addressing.responses()Ljavax/xml/ws/soap/AddressingFeature$Responses;

Follow the above tip to configure the endorsed directory and it should work.

Technorati:
JAX-WS
Tomcat 6


June 2009
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        


Search this blog:
  

Categories
Community: Java Web Services and XML
Community: NetBeans
Web Services and XML
Archives

June 2009
April 2009
March 2009
February 2009
November 2008
October 2008
August 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
October 2007
September 2007
July 2007
June 2007
February 2007
January 2007
September 2006
August 2006
June 2006
May 2006
April 2006

Recent Entries

Speaking at JavaOne 2009 on JAX-WS 2.2

JAX-WS 2.1.6 in JDK 6u14

JAX-WS Maven 2 Plugin 1.12 released



Powered by
Movable Type 3.01D


 Feed java.net RSS Feeds