tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46126] New: Unable to compile class for JSP
Date Thu, 30 Oct 2008 01:06:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46126

           Summary: Unable to compile class for JSP
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: yf37745@huawei.com


Hi
  I  am getting the following error while compile the jsp on  Jboss 4.0.5 
integrating with tomcat 5.5.20 .
  exception 
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /test.jsp
Generated servlet error:
org.apache cannot be resolved or is not a field


       
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
       
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
       
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

the source code of test.jsp:
<%@ page contentType="text/html;charset=UTF-8"%>
<%
   String org="";            
%>

<html>
        <head>
                <title>edit</title>
                <jsp:include page="/commonheader.jsp" />                
</html>

the source code of commonheader.jsp:
<%@ page contentType="text/html;charset=UTF-8"%>
<%
  String tempstr="jsp:include";
%>

<%=tempstr%>

If i change the name of variable "org"  with  "org1" or
change the  code of "test.jsp"

<%@ page contentType="text/html;charset=UTF-8"%>
<html>
        <head>
                <title>edit</title>
                <jsp:include page="/commonheader.jsp" />                
                        <% String org=""; %>
</html>


It' ok, no exception.
I think maybe the "org" is the keyword of tomcat.
i  want to know the reason of this problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message