This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
- Start NB 6.0 using JDK 1.6 - Create WebApp, choose source 1.5 and target server Tomcat. - Create a new webservice with one operation. - Deploy web app will see webapp is not started. - In server log will see: Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/Documents%20and%20Settings/Nam%20Nguyen/My%20Documents/NetBeansProjects/WebApplication2/build/web/WEB-INF/lib/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/) at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:135) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:389) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:253)
Maybe, duplicate of issue #97865
Marking as duplicate. Please note that there is a warning message in the Tomcat server output when this issue happens. **************************************WARNING*************************************** To use JAX-WS 2.1 with JDK 6, newer versions of API jars need to be in bootclasspath before rt.jar. To do this you can use Java endorsed mechanism to override what is in Java platform. The easiest way to do so is to set the system environment variable JAVA_ENDORSED_DIRS=D:\test\netbeans\ide8\modules\ext\jaxws21\api. ************************************************************************************ *** This issue has been marked as a duplicate of 96157 ***