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.
[build 20060829] I have a J2EE aplication with JBoss target server then I decided to migrate this application to Sun Application server. Therefore, I would like to create server specific DD on the project. I go to file tab and expand node thet represents web project and go to WEB-INF directory, right click and invoke New File -> XML document. Specified sun-web as name and click OK. Exception is thrown: NullPointerException at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getStorage(ConfigDataObject.java:340) Also, I'm not able to open this file in IDE since NPE is thrown every time.
Created attachment 33502 [details] stack trace
I changed the server only for Enterprise application only. The web module has defined still JBoss server. After changing server for web module, I was able to open sun-web.xml.
for uninitialized servers, configuration code is using wrong server id (JBoss) to initialize our configuration. Fixed.