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.

Bug 97928 - LinkageError: JAXB 2.0 API
Summary: LinkageError: JAXB 2.0 API
Status: RESOLVED DUPLICATE of bug 96157
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 09:31 UTC by Nam Nguyen
Modified: 2007-03-15 10:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2007-03-15 09:31:59 UTC
- 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)
Comment 1 Petr Blaha 2007-03-15 10:02:32 UTC
Maybe, duplicate of issue #97865
Comment 2 Sherold Dev 2007-03-15 10:07:51 UTC
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 ***