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 194553

Summary: project.xml from NB <6.8 is not automatically updated
Product: javaee Reporter: David Konecny <dkonecny>
Component: EARAssignee: David Konecny <dkonecny>
Status: RESOLVED WONTFIX    
Severity: normal CC: dmocek, pjiricka
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description David Konecny 2011-01-20 23:21:08 UTC
Create EAR project with WEB and EJB projects in NB 6.5.1 and make WEB and EJB dependent on some Java Classes project. While this project runs and deploys fine on NB 6.5.1 opening it in NB 6.8 and trying it to run can result into following error in GlassFish output log:

SEVERE: Class [ a.package/AClass ] not found. Error while loading [ class your.EJBBean ]

and deployment will fail. The reason is that since NB 6.8 (implemented as issue 163971) library jars are stored in EAR's lib subfolder. And in order to do that project.xml must be updated. This update happens if project properties of Web and EJB projects are opened and closed. This is current workaround for the issue.

The fix of this issue is obviously to update project.xml during project opening. On the other hand it may have impact on project opening performance if performed always. To be evaluated.
Comment 1 David Konecny 2011-02-01 01:12:41 UTC
Unless there is a strong demand for this issue to get resolved I do not plan to fix it for NB7.
Comment 2 Martin Fousek 2011-02-24 08:35:25 UTC
*** Bug 195907 has been marked as a duplicate of this bug. ***