[jboss-jira] [JBoss JIRA] Resolved: (JBAS-3954) Cannot compile jsp on Windows with reference to a class in WEB-INF/classes of the same name but difference case as a package name

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Tue Nov 27 12:59:48 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-3954?page=all ]

Remy Maucherat resolved JBAS-3954.
----------------------------------

    Resolution: Rejected

The issue is old, cleaning up. Normally Java is case sensitive, so although it could work with some compilers and classloaders on certain OSes, I don't think this is a valid behavior to expect.

> Cannot compile jsp on Windows with reference to a class in WEB-INF/classes of the same name but difference case as a package name
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-3954
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3954
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-4.0.4.GA
>            Reporter: Jim Moran
>         Assigned To: Remy Maucherat
>         Attachments: jdt.war
>
>
> If UseJBossWebLoader is true in jbossweb-tomca55.sar/META-INF/jboss-service.xml
> And there is a class in a war's WEB-INF/classes that has a classname identical to a package name except that the cases are different
> And there is a jsp which references this class
> And this war is deployed on Windows
> And the war is deployed as an extracted directory
> Then the jsp causes error on Compile such as:
> 2006-11-22 12:04:40,414 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jdt].[jsp]] Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class for JSP
> An error occurred at line: 5 in the jsp file: /index.jsp
> Generated servlet error:
> test.mypackage.name cannot be resolved to a type
> at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
> at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
> at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list