PDA

View Full Version : Petclinic problem



memelet
Aug 29th, 2004, 12:45 PM
I'm trying to get the petclinic to run on my box. I'm using tomcat 5, mysql, with the hibernate setup. The app starts ok and works somewhat, but when trying to add an ower I get the below exception. Anybody seen this before?



java.lang.ClassCastException at org.apache.jsp.WEB_002dINF.jsp.uncaughtException_j sp._jspService(uncaughtException_jsp.java:92) at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet .java:802) at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:704) at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:476) at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:409) at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:312) at org.apache.catalina.core.StandardHostValve.custom( StandardHostValve.java:396) at org.apache.catalina.core.StandardHostValve.throwab le(StandardHostValve.java:225) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:145) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534)

memelet
Aug 29th, 2004, 12:56 PM
Ok, I've now have jsp debugging working in eclipse. The problem lies with the first statement in uncoaghtException.jsp. Its attempting to get the request attribute "javax.servlet.error.exception" (which the comment says is required by the servlet spec). However, that attribute is not in the request. There are, however, attributes 'javax.servler.error.message' and 'javax.servlet.error.excetpion_type'.

Is the comment in the jsp wrong, or is tomcat 5 not up to spec?