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 158501

Summary: User added library not found after adding JAXB binding
Product: xml Reporter: kaminfeuer <kaminfeuer>
Component: JAXBAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: project demonstrating the issue

Description kaminfeuer 2009-02-13 08:06:13 UTC
To reproduce the error go through the following steps:
- Create new project "JAXBBugDemo" in IDE (Java Web -> Web Application) for Glassfish V2
- Download Log4j from http://logging.apache.org/log4j/1.2/index.html
- Extract File apache-log4j-1.2.15\log4j-1.2.15.jar, copy it to project directory and add it to project libraries
- Create new Servlet "Log4jInit"
- Add Methode init with only one Command: PropertyConfigurator.configure("/etc/log4j-init-file");
- Fix Imports
- Create new XML Schema "DemoSchema" with at least one Element
- Create new JAXB Binding "DemoBinding" for XML Schema "DemoSchema"
- Exit IDE
- Start IDE

=> Error: "package org.apache.log4j does not exist" in File Log4jInit.java
=> BUT: Compilation of File "Log4jInit.java" works!
If you now "Clean" the project (or manually delete the build directory) and restart the IDE, the error message
disappears after a few moments. Rebuild the project and the problem shows up again.

Adding the log4j lib to the Netbeans libraries an then adding it to the project does not result in the above described
error.
Comment 1 kaminfeuer 2009-02-13 08:07:37 UTC
Created attachment 76946 [details]
project demonstrating the issue
Comment 2 Sergey Lunegov 2009-05-08 14:54:49 UTC
not for this release
Comment 3 Martin Balin 2015-09-17 13:17:00 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.