LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader
I am using NB 5.5.1 with JDK 6 and I am building an web service application. When I try to connect to my web service following error appears :
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Program%20Files/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
I tried using JDK 1.5 but the problem remained. I have found the solution on the web (Basically you need to put only two jars in the endorsed directory, jaxws-api.jar and jaxb-api.jar, see Endorsed Directory Mechanism for more details) but I don't want to use this one, because of the product specification. Is there any other way? I dont want the user deploying this app (service) to change anything in his JRE directory, in other words I want this application to be standalone and easy distributable.

