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 49383 - J2EE Verification fails on newly created web project
Summary: J2EE Verification fails on newly created web project
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-22 01:29 UTC by Chris Webster
Modified: 2007-08-06 13:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Verifier output (1.06 KB, text/plain)
2004-09-22 01:30 UTC, Chris Webster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Webster 2004-09-22 01:29:53 UTC
The J2EE verifier fails on a newly create web
project with the attached warnings. 

Steps:
1. create new web project
2. build project
3. run verifier on war output
Comment 1 Chris Webster 2004-09-22 01:30:32 UTC
Created attachment 17798 [details]
Verifier output
Comment 2 Petr Jiricka 2004-09-22 08:44:19 UTC
Verifier complains that there are some files in welcome file list
(index.html, index.htm), but these are not present in the application. 

To fix this, we would have to change the default value of welcome file
list to only include index.jsp. I am not sure if it is wise to do this
change. If we keep index.html and index.htm, then we provide a more
reasonable behavior in the case that the user adds index.html in the
future. Does not feel like a verifier bug, should be more like a
warning, if anything. Maybe we can bring this up with the verifier
team. Opinions?
Comment 3 Chris Webster 2004-09-22 17:29:43 UTC
Would there be an issue with generating index.html and index.htm
containing some sample text. Such as, this is the index page from
"Project Name" ... 

Comment 4 Petr Jiricka 2004-09-22 17:47:35 UTC
Yes, there would be issues with this. There can be only one index
file, which we already generate: index.jsp. The index.html and
index.htm are just backup names in case index.jsp is missing. But if
index.jsp is there, then the others are *not* index files. 

Also, it is pretty awkward (and bad design) to have both index.jsp and
index.html - just one of them should be present.
Comment 5 Chris Webster 2004-09-22 17:52:59 UTC
I am confused if it is bad design to have both index.jsp and
index.html then why is index.html referenced in the welcome file list
but index.jsp generated? 
Comment 6 Pavel Buzek 2004-09-25 00:31:34 UTC
How about adding the index.html or index.htm into welcome files
section when they are created?

We control the wizard for html files that is used in right click menu
of web module (priviledged templates) and from the Web templates
section so there is no problem there. We do not control the template
in Other|Html or files created outside of IDE but I think that's not a
big problem.

We can also add check for multiple welcome files, the only question is
how to show that to user - it probably should be part of the wizard.
We may remove the welcome files section when a file is deleted. Or we
could ASK the user whether to add the index.html/htm into welcome files...

But as long as it satisfies the verifier I would start with just
adding the welcome files entry when creating web/index.htm(l) w/o asking.
Comment 7 Petr Jiricka 2005-02-22 12:52:37 UTC
This was fixed in recent 4.1 builds.
Comment 8 Dan Kolar 2007-08-06 13:20:27 UTC
v