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.
4.1 daily 20050328 Page view of web DD, click on the "browse button" of when adding in "welcome files" or "error pages", error window pops up with NPE.
Can you please attach the NPE ? I can't reproduce it with development build #200503291800 of NetBeans 4.1 and brand-new userdir. Does it happen if you use empty userdir ? Besides, only NPE does not justify P1 priority. For more details, please see http://qa.netbeans.org/processes/bug_priority_guidelines.html
I can not reproduce the issue either. In both NB web application and free form web appllication there are no exceptions.
Created attachment 21239 [details] NPE browsing in wed DD pages view
I can re-produce this with all recent daily builds. I attached the messages.log. This is produced with the latest qbuild just came out today. (Today's daily build also gives the same error.) I blow away the .netbeans/dev directory everytime I install a new daily or Q build. Sorry about the P1 priority earlier though....
Thank you for the info. What kind of web application are you working with ? Is it a project creating from scratch or free form project (creating for existing ANT script) ?
Fixed. Than was happening most likely because the deployment descriptor (web.xml) was outside the project. Diff: http://web.netbeans.org/source/browse/web/core/src/org/netbeans/modules/web/dd/multiview/DDUtils.java?r1=1.7&r2=1.8
See the comment above.
The problem was happening for both "free form" and "web with exsisting sources". The web dd (web.xml) is NOT outside the project. However, some of the common JSP pages (like headers and footers) are outside the context root directory. So in CVS it looks like: CVSMODULE__ |_myContextRoot__ |_WEB-INF/web.xml |_jsp/(bunch o jsp pages) |_commonPages_ |_footer.jsp (etc....) We are also planning on putting the common pages to some other CVS module later...
If you are still able reproduce this problem, please reopen this issue. Otherwise, pelase mark it as verified.
NPE fixed. But issue remains. Opened new: http://www.netbeans.org/issues/show_bug.cgi?id=57351