Dan Becker wrote:
Raymond Feng wrote:
It's related to JDK 6 which ships a version of JAXB impl by itself.
Up to JDK 6 Update 3, the JDK ships with JAX-WS 2.0 (which includes
JAXB 2.0), but Tuscany requires JAXB 2.1. There are two possible
solutions to this problem:
1) Upgrade your JDK to 1.6.0_04 or above, which will include JAX-WS
(and JAXB) 2.1
2) Copy the version 2.1 jaxb-api.jar or jaxws-api.jar (you can
probably find them in your local maven repo) to
<JAVA_HOME>/lib/endorsed to override the API jars that ship with the JDK
3) Use the -Djava.endorsed.dir=<a folder containing our JAXB jars> to
override the JAXB from JDK 6.
As a user, I'd prefer option 1. In general I prefer version upgrades and
prereqs over any solution that required spare copies of libs.
++1 - I agree. Just make it plain that 1.6.0_04 or above is required.
In my particular case, the problem was that I wasn't even aware that
1.6.0_x was even being used - a case of some install of another
application slipping in a copy of the 1.6 JDK without me knowing.
It would be useful to document the workaround somewhere too.
Yours, Mike.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]