Friday January 11, 2008
Java SE 6 Update 4 is released - "Good Riddance" with JAX-WS Endorsed
Java SE 6 Update 4 is now released. Download it here.
If you are a Metro user
(either JAX-WS or
WSIT) then this is a milestone release
for you because it includes JAX-WS 2.1 API in the rt.jar. This
means that, as a user, you no longer you need to copy JAX-WS or JAXB API jars in
JAVA_HOME/jre/lib/endorsed as described
here,
here and
here. Hurrah!
After you have downloaded and installed JDK 1.6 U4, java
-version shows:
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
wsgen -version shows:
JAX-WS RI 2.1.1 in JDK 6
wsimport -version shows:
JAX-WS RI 2.1.1 in JDK 6
Additionally, you can also verify by greping for
javax.xml.ws.Endpoint class in JAVA_HOME/jre/lib/rt.jar.
This is a new class introduced in JAX-WS 2.1.
Now after you've installed Java SE U4, you can download
Metro 1.1,
set JAVA_HOME to point to this new Java SE installation and you can
easily import a WSDL as:
wsimport -d temp
http://localhost:8080/MetroWithJavaSE6/HelloService?WSDL
parsing WSDL...
generating code...
compiling code...
If you try to import the same WSDL with an earlier release of Java SE 6, then you'll see the error message:
You are running on JDK6 which comes with JAX-WS 2.0 API,
but this tool requires JAX-WS 2.1 API. Use the endorsed standards override
mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/), or
use -Xendorsed option.
We hope this will make your life simpler :)
Metro 1.0.1 is anyway baked in GlassFish v2 UR1. You can override it with Metro 1.1 as described in TOTD #21.
Technorati: webservices metro jax-ws glassfish endorsed javase6 jdk
Posted by Arun Gupta in webservices | Comments[19]
|
|
|
|
|
Today's Page Hits: 2633
Total # blog entries: 999
| « November 2009 | ||||||
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
1 | 2 | 4 | 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 | |||||
| Today | ||||||
You use mac so how can you develop using jdk 1.6??
You installed a OS just to use java?
Posted by Nuno on January 11, 2008 at 07:17 PM PST #
MacOS is one of my machines :) A developer preview of JDK 6 is also available on Mac OS (not from Sun) as explained at; http://landonf.bikemonkey.org/code/macosx/MacOS_BSD_Java_Developer_Preview_2.20071122.html
Posted by Arun Gupta on January 12, 2008 at 08:23 AM PST #
Hi Arun,
That is great news about the endorsed. I am using JAXWS 2.1.2 and will upgrade to JAXWS 2.1.3 for my GA release on the server side so will be using endorsed for a while longer since it looks as if 6u4p is using 2.1.1.
Do you know why they are releasing with a earlier version of JAXWS ?
Thanks,
-Tony
Posted by Tony Anecito on January 15, 2008 at 01:12 PM PST #
Tony, JAX-WS bits in Java SE 6 were frozen before JAX-WS 2.1.3 was released. However you only need to include recent bits in your classpath now and it would just work!
Posted by Arun Gupta on January 15, 2008 at 02:23 PM PST #
Great,
Thanks for your news
Posted by Ivan on January 15, 2008 at 11:13 PM PST #
Posted by Arun Gupta's Blog on January 16, 2008 at 06:18 AM PST #
very good tahnks
Posted by sahibinden satılık daire on January 19, 2008 at 12:41 AM PST #
Posted by Arun Gupta's Blog on January 25, 2008 at 07:20 AM PST #
Posted by Arun Gupta's Blog on January 31, 2008 at 08:59 AM PST #
Yes good ridance.
I question the need to bundle this in the rt.jar in the first place. Seems a very bad idea in hinesight.
Also this version still seems to have an issue holding onto response objects after servicing a request. Are you aware of this and is there a fix ?
Posted by Liam Knox on March 18, 2008 at 11:18 AM PDT #
Memory Issue
Not sure why you guys dont look into this? Oh well moving to CXF soon to support Kerberos. Looking at the src seems a more quality implementation
Regards
Liam
Posted by Liam Knox on March 19, 2008 at 10:09 AM PDT #
Metro supports WSS Kerberos Token Profile and it has been interop tested with .NET 3.0 recently.
Posted by kumar on March 19, 2008 at 11:42 AM PDT #
We are not aware of any memory issues in RI 2.1.3/metro 1.1.1. If you can send the details to Metro forum (http://forums.java.net/jive/forum.jspa?forumID=46) then we can look into it.
Posted by Arun Gupta on March 19, 2008 at 12:12 PM PDT #
Please see my post on
http://forums.java.net/jive/message.jspa?messageID=242244#242244
With simple code attachment.
Profiling this I see at least one response being kept held of
Let me know if you need more info
Regards
Liam
Posted by 205.228.74.13 on March 19, 2008 at 12:28 PM PDT #
http://forums.java.net/jive/message.jspa?messageID=242244#242244
PS
http://forums.java.net/jive/forum.jspa?forumID=46
Doesnt seem to exist?
Posted by Liam Knox on March 19, 2008 at 12:31 PM PDT #
http://forums.java.net/jive/forum.jspa?forumID=46
is the home page of Forum where you posted your question. You can also reach by clicking on "Metro and JAXB" on top of the page.
Posted by Arun Gupta on March 19, 2008 at 01:48 PM PDT #
That site must of be down earlier, I was getting page not found. Can you please look into profiling the sample app, and let me know if you need any more details? I have run it agaist 1.6.0_04 (XP) and a still see an issue
regards
Liam
Posted by Liam Knox on March 19, 2008 at 03:16 PM PDT #
This issue is further discussed in the forum thread at:http://forums.java.net/jive/message.jspa?messageID=242244#242244
Posted by Arun Gupta on March 19, 2008 at 05:57 PM PDT #
I have put my findings based on these suggestions on
:http://forums.java.net/jive/message.jspa?messageID=242244#242244
Regards
Liam
Posted by Liam Knox on March 22, 2008 at 11:42 AM PDT #