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.
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
Created attachment 17798 [details] Verifier output
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?
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" ...
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.
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?
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.
This was fixed in recent 4.1 builds.
v