You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shizue Aso <sh...@smia.co.jp> on 2000/04/15 06:31:58 UTC
Internal Servlet Error
Hi.
I'm testing original JSP file on Tomcat3.1 RC1,RedHat6.1J.
But it is not successful.
The example files can work, but can't work my original JSP file.
I made cart dir. under usr/local/tomcat/webapps/examples/jsp dir.
Then put cart.jsp file in it.
When I access
http://xxx.xxx.xxx:8080/examples/jsp/cart/cart.jsp
Browser reply error message
Error: 500
Location: /examples/jsp/cart/cart.jsp
Internal Servlet Error:
org.apache.jasper.compiler.ParseException: Cannot read file: /jsp/cart/cart.jsp
at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java, Compiled Code)
at org.apache.jasper.compiler.JspReader.pushFile(JspReader.java, Compiled Code)
at org.apache.jasper.compiler.JspReader.(JspReader.java, Compiled Code)
at org.apache.jasper.compiler.JspReader.createJspReader(JspReader.java, Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java, Compiled Code)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java, Compiled Code)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
The cart.jsp use 2 class files what is in WEB-INF/classes.
When I restart Tomcat, result is same.
Any help would be appreciated.
********************
Shizue Aso
SMIA.Inc
shizue@smia.co.jp
Re: Internal Servlet Error
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Shizue Aso wrote:
> Hi.
>
> I'm testing original JSP file on Tomcat3.1 RC1,RedHat6.1J.
> But it is not successful.
>
> The example files can work, but can't work my original JSP file.
> I made cart dir. under usr/local/tomcat/webapps/examples/jsp dir.
> Then put cart.jsp file in it.
>
> When I access
> http://xxx.xxx.xxx:8080/examples/jsp/cart/cart.jsp
>
> Browser reply error message
>
> Error: 500
>
> Location: /examples/jsp/cart/cart.jsp
>
> Internal Servlet Error:
>
> org.apache.jasper.compiler.ParseException: Cannot read file: /jsp/cart/cart.jsp
>
When I try a URL like yours (without actually having put a file there), I get an HTTP error 404 (file not found) error page. A
"Cannot read file" exception sounds like it might be a file access permissions problem on either the file itself or one of the
parent directories. Are you sure that the Unix username under which you are running Tomcat can read this file?
Craig McClanahan