Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 15556 invoked from network); 14 Sep 2006 12:06:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 12:06:50 -0000 Received: (qmail 84421 invoked by uid 500); 14 Sep 2006 12:06:43 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 84343 invoked by uid 500); 14 Sep 2006 12:06:42 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 84332 invoked by uid 500); 14 Sep 2006 12:06:42 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 84329 invoked by uid 99); 14 Sep 2006 12:06:42 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 05:06:42 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from ([209.237.227.198:43599] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 2B/D0-04605-38549054 for ; Thu, 14 Sep 2006 05:06:38 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 20C43714348; Thu, 14 Sep 2006 12:01:56 +0000 (GMT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 40509] New: - Jasper strips off the host part of the file name Message-ID: X-Bugzilla-Reason: AssignedTo Date: Thu, 14 Sep 2006 12:01:56 +0000 (GMT) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=40509 Summary: Jasper strips off the host part of the file name Product: Tomcat 5 Version: 5.0.24 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: marija.jelinek@capgemini.com We are running a web application inside a Tomcat servlet container. Our environment contains a web server machine (SA94) and a file server machine (SA96).The web application runs as windows service on the Web server machine (SA94) pointing to the files on the file server (SA96). SA96 exports the root of the file store as share \\SA96\F$\test After deploying the application, when we try to access the application following error is shown: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compil(JspCompilationContext.java:515) org.apache.jasper.servlet.JspServletWrapper.servic(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.io.FileNotFoundException: \F$\test\subs\IGUI\tomcat\work\Catalina\localhost\i3s\org\apache\jsp\index_jsp. java (The system cannot find the path specified) java.io.FileOutputStream.open(Native Method) java.io.FileOutputStream.(Unknown Source) java.io.FileOutputStream.(Unknown Source) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:422) org.apache.jasper.JspCompilationContext.compil(JspCompilationContext.java:507) org.apache.jasper.servlet.JspServletWrapper.servic(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.24 logs. and it is justifiable because the path does not exist: \F$\test\subs\IGUI\tomcat\work\Catalina\localhost\i3s\org\apache\jsp\index_jsp. java it is correct up to \F$\test\subs\IGUI\tomcat\work\Catalina\localhost\i3s\ We spent some hours trying to track down the problem and are now suspecting that we are seeing a bug/restriction in Jasper. When building the path for the directory it uses for compiling jsp pages, it strips off the host part of the file name (actually a file URL). On Unix this would be no problem as remote file systems are mounted/linked to file names indistinguishable from ordinary names, but for the Windows way of referencing remote file systems this is bad. Here is the culprit code from the createOutputDir method of org.apache.jasper.JspCompilationContext.java: baseUrl = options.getScratchDir().toURL(); String outUrlString = baseUrl.toString() + '/' + path; URL outUrl = new URL(outUrlString); outputDir = outUrl.getFile() + File.separator; Our current workaround is to run the service on the same machine where its files are. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org