DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31382>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31382

Stack overflow at JspServlet with self referencing JSP tag files.

           Summary: Stack overflow at JspServlet with self referencing JSP
                    tag files.
           Product: Tomcat 5
           Version: 5.0.25
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Description
-----------
I have a JSP 2.0 tag file which refernces itself (for recursion).
When I first compile it, everything is OK.

If I then change the JSP tag source and recompiles and deploy, I get an error 
(I have pasted it at the bottom of this message).

If I delete the class file generated from this JSP tag, everything works fine.

My assumption is that when Tomcat tries to compile the Java file, the class 
file still exists on disk. This might cause the compiler to reference the 
existing class while compiling the source (since the source references itself).

If Tomcat would first delete the class when it recognizes that the source was 
changed, this might not have happened.

=========================================================================
The error:
=========================================================================
javax.servlet.ServletException
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1056)
        org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:388)
        org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:231)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158)
        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


root cause 

java.lang.StackOverflowError

=========================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to