On 29/04/2010 15:56, Nuno Faria wrote: > Hi. > > I recently migrated SO from XP + Tomcat 5.5 to Windows 7 64-bit + Tomcat > 6.0.26 > around my webapps got a compile error only in certain JSPs. > > Every JSP that have a @include directive to a JSP that has another > @include directive in its coding throws an error. > It is as if Nested @includes are not supported. > > Simple trial goes as this: > > Root > | > |_ index.jsp > |_ index_nested.jsp > | > |_ includes > | > |- i1.jsp > |- i2.jsp > > On index.jsp I have > <%...@include file="/includes/i2.jsp"%> > > On index_nested.jsp I have > <%...@include file="/includes/i1.jsp"%> > > On i1.jsp I have > <%...@include file="/includes/i2.jsp"%> > > On i2.jsp I have > Hello World > > index.jsp compiles juste fine. > > index_nested.jsp throws > org.apache.jasper.JasperException: /index_nested.jsp(1,2) File > "/includes/i1.jsp" not found > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) > > org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297) > > org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330) > org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438) > org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1745) > org.apache.jasper.compiler.Parser.parse(Parser.java:127) > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) > > org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:180) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:347) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
The only difference there is the file names. Are those the exact ones you're using? How is "index_nested.jsp" actually nested, (it isn't clear from the above)? p > I get this error with stand-alone Tomcat, without any connector to an > Apache Web Server. > > Thanx in advance > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
signature.asc
Description: OpenPGP digital signature