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 57141 - npe browsing "welcome files" and "error pages" in the web dd
Summary: npe browsing "welcome files" and "error pages" in the web dd
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 16:26 UTC by wqtnetbeans
Modified: 2006-03-24 12:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE browsing in wed DD pages view (12.51 KB, text/plain)
2005-03-30 20:29 UTC, wqtnetbeans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wqtnetbeans 2005-03-29 16:26:37 UTC
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.
Comment 1 Jiri Kovalsky 2005-03-30 06:00:09 UTC
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
Comment 2 Milan Kuchtiak 2005-03-30 09:45:17 UTC
I can not reproduce the issue either.
In both NB web application and free form web appllication there are no exceptions.
Comment 3 wqtnetbeans 2005-03-30 20:29:48 UTC
Created attachment 21239 [details]
NPE browsing in wed DD pages view
Comment 4 wqtnetbeans 2005-03-30 20:30:33 UTC
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....
Comment 5 Milan Kuchtiak 2005-03-31 08:20:13 UTC
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) ?
Comment 6 Milan Kuchtiak 2005-03-31 16:10:43 UTC
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
Comment 7 Milan Kuchtiak 2005-03-31 16:11:14 UTC
See the comment above.
Comment 8 wqtnetbeans 2005-03-31 16:32:05 UTC
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...
Comment 9 zikmund 2005-04-01 11:30:31 UTC
If you are still able reproduce this problem, please reopen this issue.
Otherwise, pelase mark it as verified.
Comment 10 wqtnetbeans 2005-04-01 16:53:44 UTC
NPE fixed. But issue remains. Opened new:

http://www.netbeans.org/issues/show_bug.cgi?id=57351