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.
Summary: | JAXB generates code that does not compile in IDE without tweaking from existing projects | ||
---|---|---|---|
Product: | xml | Reporter: | wobster <wobster> |
Component: | JAXB | Assignee: | _ gmpatil <gmpatil> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
wobster
2010-01-28 06:36:18 UTC
I expect this happens only to old projects containing JAXB bindings. In new projects, we specify endorsed.classpath=\ ${libs.JAXB-ENDORSED.classpath} in order to avoid the compilation and execution problems you can set up this property manually. To force projects using JAXB version from JDK, please replace : jaxbwiz.xjcdef.classpath=${libs.jaxb.classpath} to jaxbwiz.xjcdef.classpath=//classpath to com.sun.tools.xjc.XJCTask(related to JDK version) ... and Clean & Build the project Also remove (or comment out) the endorsed.classpath property, if present: # endorsed.classpath=\ # ${libs.JAXB-ENDORSED.classpath} Note: You can also completely override "xjc-typedef-target" (xml_binding_build.xml) in build.xml. To fix this issue we need to set up endorsed.classpath also for old projects containing JAXB bindings. Note, the issue was fixed already, and should be present in 6.8_patch : *** This bug has been marked as a duplicate of bug 175436 *** |