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 50358 - JSP Compiler @include not case sensitive, but Tomcat is
Summary: JSP Compiler @include not case sensitive, but Tomcat is
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 15:36 UTC by ssoong
Modified: 2008-06-12 10:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ssoong 2004-10-13 15:36:30 UTC
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.
Comment 1 ssoong 2004-10-13 16:06:52 UTC
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.
Comment 2 zikmund 2004-10-14 11:23:44 UTC
You're right. NetBeans' compilation isn't case sensitive in <%@include
directive however Tomcat is case sensitive.
Reproducible with build 200410131800.
Comment 3 Petr Jiricka 2004-10-19 15:42:52 UTC
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.
Comment 4 Petr Jiricka 2004-10-27 10:20:09 UTC
Will not be fixed for NetBeans 4.0.
Comment 5 Petr Jiricka 2005-11-23 14:22:05 UTC
I do not think this is a big problem in practice, did not see a similar report -
changing priority to P4.
Comment 6 Tomas Mysik 2008-06-12 10:16:21 UTC
Looks like an unimportant issue, no duplicates for ages. Closing as WONTFIX, feel free to reopen if necessary. Thanks.