How do I make JaxWsPortProxyFactoryBean use JAX-WS 2.1?
I'm working on a project that delivers web services using Jersey, which has a dependency on JAXB 2.1. I have to add a feature that fetches data from another web service. The way this has been implemented elsewhere uses a Spring JaxWsPortProxyFactoryBean.

When Spring tries to initialize this bean it fails with a ClassCastException (com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.bind.api.JAXBRIContext). It appears that this is because JavaSE6 includes JAX-WS 2.0 API. 

The only solution I have found (<a href="http://metro.java.net/guide/Using_JAX_WS_2_1_with_JavaSE6.html">here</a>) suggests putting the 2.1 jars in the JRE endorsed directory. This isn't an option - I'm sharing a server with other application teams so I can't mess with the JRE.

Does anybody know of another way to make Spring use the 2.1 jars?
How do I make JaxWsPortProxyFactoryBean use JAX-WS 2.1?
===

I'm working on a project that delivers web services using Jersey, which has a dependency on JAXB 2.1. I have to add a feature that fetches data from another web service. The way this has been implemented elsewhere uses a Spring JaxWsPortProxyFactoryBean.

When Spring tries to initialize this bean it fails with a ClassCastException (com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.bind.api.JAXBRIContext). It appears that this is because JavaSE6 includes JAX-WS 2.0 API. 

The only solution I have found (<a href="http://metro.java.net/guide/Using_JAX_WS_2_1_with_JavaSE6.html">here</a>) suggests putting the 2.1 jars in the JRE endorsed directory. This isn't an option - I'm sharing a server with other application teams so I can't mess with the JRE.

Does anybody know of another way to make Spring use the 2.1 jars?