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 200409220845 (NB4.0 beta2) WinXP JDK 1.5.0-b64 I have a JSP with the line, <%@include file="/WEB- INF/jspfs/Cpk/BoxColours.jspf"%> There is a file of that name but in lower case. "boxcolours.jspf". I pressed F9 to compile - build successful ... I ran the file and Tomcat says, File "/WEB-INF/jspfs/Cpk/BoxColours.jspf" not found.
Then I renamed the file to "BoxColours.jspf". F9 to compile - success again. Ran in Tomcat - error message is still, "/WEB-INF/jspfs/Cpk/BoxColors.jspf" not found Then, I changed to @include _BoxColours.jspf and renamed the file to _BoxColours.jspf. Voila ! No Error. Therefore, a second issue - jspcompiler does not remove/rename an old copy from the build buffer when it's the same name but of different type-case. Then again, I renamed _BoxColours back to BoxColours. F9 success but Tomcat still with error. I turned to the build buffer with XP File Explorer. _BoxColours.jspf is still there even though I just renamed it to BoxColours. boxcolours.jspf is there but BoxColours.jspf is not even though I just renamed it. Finally, clean-and-rebuild solved the problem.
You're right. NetBeans' compilation isn't case sensitive in <%@include directive however Tomcat is case sensitive. Reproducible with build 200410131800.
This may be because the Tomcat web container (Catalina) makes file names case sensitive even on Windows. The standalone (Ant-based) JSP compiler does not go through the web container, so it just uses the default OS semantics (case-insensitive on Windows). Ssoong, could you try to compile your pages using the Ant approach recommended in the Tomcat documentation and see what the result is? See documentation at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html Thanks.
Will not be fixed for NetBeans 4.0.
I do not think this is a big problem in practice, did not see a similar report - changing priority to P4.
Looks like an unimportant issue, no duplicates for ages. Closing as WONTFIX, feel free to reopen if necessary. Thanks.