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 68255 - Warning message about no parser when creating session bean
Summary: Warning message about no parser when creating session bean
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 01:42 UTC by _ pcw
Modified: 2006-06-04 23:40 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 _ pcw 2005-11-08 01:42:54 UTC
Optimizations on loading and saving of the configuration files opened a loophole
where the user could have no bean tree of the current sun-ejb-jar.xml or
sun-application.xml file available when creating a new child bean (e.g. session
bean or adding a module to an ear).  Child beans didn't pass in a parser for the
proper sun-xxx.xml file because it was expected they didn't need one.

This problem manifested as the message "SEVERE: Missing parser" on the console
window.  Steps to reproduce are something like "create ejb project, restart ide,
add session bean to project".

This hole is easily patched by having child beans pass in a non-null parser
during the load sequence that is retrieved from the root DConfigBean of whatever
tree they are in (this means that common child beans pass in the correct parser
regardless of what bean they are child of).
Comment 1 _ pcw 2005-11-08 01:46:09 UTC
Fixed.