Posted by ramapulavarthi
on March 7, 2008 at 5:00 PM PST
If you see a compilation error that package javax.xml.ws.wsaddressing does not exist with JDK 6 U4 and U5, see this entry for workaround
Some issues on compiling using classes in javax.xml.ws.wsaddressing package have come to our attention (You can follow the thread in the Metro User forum).
As you can see, javax.xml.ws.wsaddressing package along with the classes W3CEndpointReference and W3CEndpointReferenceBuilder are infact there in rt.jar. But javac complains package javax.xml.ws.wsaddressing does not exist.
This is due to the fact that JAVA_HOME/lib/ct.sym was not updated with these new api. This problem is in the JDK 6 Update 4 and Update 5, should not effect you unless you are using W3CEndpointReference and W3CEndpointReferenceBuilder in your applications. We are actively
working on providing a fix in future update release. In the mean while, you could use one of these following workarounds.
Use the compiler switch -XDignore.symbol.file=true (Note that this is undocumented option).
Put rt.jar explicitly in your claspath for javac
Remove ct.sym from JAVA_HOME/lib ( not recommended as it requires changes to your JDK installation)
We will be very soon fixing this glitch. Thanks for your cooperation.