PDA

View Full Version : Apache + Tomcat 500 Errors


uniacid
11th June 2009, 17:24
Running RHEL 5.3 / Apache 2 / Tomcat 5.5.23

I've setup Tomcat with Mod_JK through apache and when trying to browse jsp files on the vhost I've set it up on I get a http 500 error, specifically saying it cannot find a file (this is for a client I am trying to get setup)

"org.apache.jasper.JasperException: /Regional_Equip.jsp(6,0) File "/../setupcache2.jsp" not found"

Not sure why this is as the Regional_equip.jsp file is in a folder within the root which houses the setupcache2.jsp file, any ideas why this is happening?

I've set these up in my apache vhost conf

JkMount /* jkworker
JkMount /*.jsp jkworker



HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /Regional_Equip.jsp(6,0) File "/../setupcache2.jsp" not found
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDi rective(Parser.java:340)
org.apache.jasper.compiler.Parser.parseIncludeDire ctive(Parser.java:373)
org.apache.jasper.compiler.Parser.parseDirective(P arser.java:485)
org.apache.jasper.compiler.Parser.parseElements(Pa rser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.jav a:127)
org.apache.jasper.compiler.ParserController.doPars e(ParserController.java:212)
org.apache.jasper.compiler.ParserController.parse( ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:296)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:277)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:265)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
Apache Tomcat/5.5.23

topdog
12th June 2009, 10:53
That is simple, Regional_Equip.jsp expects to find the setupcache2.jsp in a directory above the one in which Regional_Equip.jsp is, not in the same directory.

uniacid
23rd June 2009, 20:28
Well according to the path it should be looking for that file above the original folder, not in the same directory.

I didn't code this nor have any idea about java web development, just trying to set this up for a client.

I see also if I go directly so the setupcache2.jsp file I get this error:


org.apache.jasper.JasperException: /setupcache2.jsp(3,0) The value for the useBean class attribute oracle.jdbc.pool.OracleConnectionCacheImpl is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Generator$GenerateVisit or.visit(Generator.java:1175)
org.apache.jasper.compiler.Node$UseBean.accept(Nod e.java:1117)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2164)
org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2214)
org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2220)
org.apache.jasper.compiler.Node$Root.accept(Node.j ava:457)
org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2164)
org.apache.jasper.compiler.Generator.generate(Gene rator.java:3322)
org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:199)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:296)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:277)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:265)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)