Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP pages and case sensitivity

807567Apr 30 2003 — edited May 1 2003
Does anybody have any idea how to stop a SunOne Web Server from trying to serve a JSP page that cannot be compiled because although the name is correct as far as Windows is concerned, it is incorrect as far as the java compiler is concerned.

Environment
===========

OS : Windows 2000 SP3
iPlanet-WebServer-Enterprise/6.0SP5
Java VM : build 1.4.1_01-b01

Summary of Problem
==================

If a call is made to a JSP page, with no regard to case sensitivity the web server no longer serves pages.

Detail
======

When a JSP page is called for the first time, it is compiled and a copy of the source and class file is created in the classpath area

D:\iPlanet\WebServers\https-MyService\ClassCache\https-MyService\_jsps\_mydirectory

For a JSP page called index.jsp - the class path will be

indexjsp.class

After testing it seems whatever name is used for the first call of the JSP page, this is what is used for the classPath name. In most cases this will be something like '_index_jsp.class' as above.

If a subsequent call is made, using different case - then a compilation error occurs.

The following is found in the error log.
failure ( 2172): Internal error: Unexpected error condition thrown (unknown exception,no description),
stack: java.lang.NoClassDefFoundError: jsps/socialExclusion/_INDEX_jsp
(wrong name: jsps/myDirectory/_index_jsp)
The web server then stops serving pages - although the web server service/process continues to run.

Restarting the server allows the server to work correctly again.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2003
Added on Apr 30 2003
1 comment
358 views