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=30639>.
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=30639

JspC does not close .jsp files

           Summary: JspC does not close .jsp files
           Product: Tomcat 5
           Version: 5.0.19
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We're using ant to compile jsps on an NFS mounted Solaris box.

After the jsps are compiled we delete the temporary directory the jsps are in
and this fails because JspC still has a FD open for a jsp file. we've determined
this by running truss on ant.

Below is the output from truss:

.
.
.
12944/1:        open("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
O_RDONLY|O_LARGEFILE) = 6
12944/1:        fstat64(6, 0xFFBFC198)                          = 0
12944/1:        stat64("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
0xFFBFC380) = 0
12944/1:        stat64("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
0xFFBFC440) = 0
12944/1:        stat64("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
0xFFBFC470) = 0
12944/1:        stat64("/home/chris/SOLARIS/secure/WEB-INF/src", 0xFFBFC388) = 0
12944/1:        stat64("/home/chris/SOLARIS/secure/WEB-INF/src/org/apache/jsp/secure",
0xFFBFC2F8) = 0
12944/1:
stat64("/home/chris/SOLARIS/secure/WEB-INF/src/org/apache/jsp/secure/invalidLogin_jsp.java",
0xFFBFC5A8) Err#2 ENOENT
12944/1:        stat64("/home/chris/SOLARIS/secure/WEB-INF/src/org/apache/jsp/secure",
0xFFBFC358) = 0
12944/8:        poll(0xFBD7FD80, 0, 50)                         = 0
12944/1:
open("/home/chris/SOLARIS/secure/WEB-INF/src/org/apache/jsp/secure/invalidLogin_jsp.java",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 7
12944/1:        fstat64(7, 0xFFBFC3A8)                          = 0
12944/1:        stat64("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
0xFFBFBE90) = 0
12944/1:        open("/home/chris/SOLARIS/tomcat/webapps/secure/invalidLogin.jsp",
O_RDONLY|O_LARGEFILE) = 8
12944/1:        fstat64(8, 0xFFBFBD40)                          = 0
12944/1:        read(8, " < ! - -   $ I d :   i n".., 2048)     = 471
12944/1:        close(8)                                        = 0
.
.
.

FD 6 is never closed.

So when ant tries to delete the directory containing the jsp files our NFS
server renames invalidLogin.jsp to .nfs3509. This was verified by snoop.

Once ant exits the .nfs go away and the directory can be removed.

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

Reply via email to