Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. 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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-4.0.4.GA
    • Web (Tomcat) service
    • None
    • Hide

      package classes into a jar and put the jar in WEB-INF/lib of the war

      Show
      package classes into a jar and put the jar in WEB-INF/lib of the war

    Description

      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)

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            jimm_jira jimm (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: