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 108523

Summary: LinkageError appears when Java EE 5 web application with W/S deployed to Tomcat 6.0
Product: obsolete Reporter: Roman Mostyka <romanmostyka>
Component: visualwebAssignee: Quy Nguyen <quynguyen>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 109286, 109890    
Bug Blocks:    
Attachments: Error log

Description Roman Mostyka 2007-06-29 14:18:20 UTC
1. Add Web Service http://www.webservicemart.com/uszip.asmx?WSDL.
2. Create web application with "Visual Web JSF" framework.
3. Add Web Service to application's page.
4. Deploy to Tomcat 6.0.

Result: Error: "java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from
jar:file:/C:/Documents%20and%20Settings/rm153204.GRIF/My%20Documents/NetBeansProjects/WebApplication3/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/)".
And message with workaround appears. Why customer must do some workaround?
Comment 1 Roman Mostyka 2007-06-29 14:18:59 UTC
Created attachment 44568 [details]
Error log
Comment 2 Quy Nguyen 2007-06-29 19:23:53 UTC
This fix probably needs to be done during the installation of Tomcat 6 (since it may be bundled with NB 6).  It would
not be possible to fix this at the project level, since any classpath modifications would need to be tailored to a
specific JDK version (1.5 or 1.6) associated with the Tomcat instance.
Comment 3 Roman Mostyka 2007-07-16 18:28:36 UTC
I see that issue #109286 is fixed, but anyway I think that customer don't have to setup BUNDLED application server for
running applications developed in IDE, it must be done by installer or by IDE.
Comment 4 Quy Nguyen 2007-07-19 02:04:50 UTC
This issue now depends on 109890.  Since the installer installs the bundled Tomcat and deals with the JDK configuration,
any fix should go in there.
Comment 5 Quy Nguyen 2007-08-14 23:55:15 UTC
Since there is no additional work needed on the visual web side for this issue, closing as won't fix.  When Issue 109890
is fixed, this will be fixed as a side effect.