tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S.Z...@spmv.de
Subject AW: Tomcat error during JSP compilation.
Date Fri, 04 Aug 2000 07:25:19 GMT
Hi,

why do you close the useBean tag after the forward tag?

I would close the useBean tag like this:

<jsp:useBean id="sessionObject" scope="session"
type="mbdd.session.MBDDSessionObject" />


I hope I am right,

Stephan


<jsp:useBean id="sessionObject" scope="session" 
>              type="mbdd.session.MBDDSessionObject">
> <!-- bean hasn't been found ... redirect to error -->
> <jsp:forward page="error.html"/>
> </jsp:usebean>
> 
> The sessionObject is being stored in the action class using 
> the following:
> session.setAttribute(jawa.Constants.sessionObject,sessionObject);
> 
> 
> Any ideas?  I'd rather not have to use a scriptlet i.e.: 
> <% MBDDSessionObject sessionObject = 
>   (MBDDSessionObject) session.getAttribute("sessionObject"); %> 
> 
> Thanks,
>   Bill
> 
> > Hi all, 
> > 
> > Can someone please help me with this?
> > I'm getting the following error thrown from Tomcat v3.1.
> > It seems to be occurring during compilation of a JSP after 
> my model 2
> > action
> > class forwards the request.
> > 
> > <ERROR>
> > 
> > Unhandled error! You might want to consider having an error 
> page to report
> > such
> > errors more gracefully
> > java.lang.Error: Fatal Error: missing resource:
> > java.util.PropertyResourceBundle
> > 
> >         at org.apache.jasper.Constants.getString(Constants.java:206)
> >         at org.apache.jasper.Constants.getString(Constants.java:189)
> >         at 
> org.apache.jasper.compiler.Parser$Bean.accept(Parser.java:627)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1073)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
> >         at org.apache.jasper.compiler.Parser.parse(Parser.java:1034)
> >         at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
> >         at
> > org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
> >         at
> > 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN
> ecessary(Jsp
> > Se
> > rvlet.java:149)
> >         at
> > 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.
> > ja
> > va:161)
> >         at
> > 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:261)
> >         at
> > org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> >         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:50
> > 3)
> >         at
> > 
> org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDi
> spatcherImpl
> > .j
> > ava:163)
> >         at 
> mbdd.action.SelectDocument.perform(SelectDocument.java:161)
> >         at
> > jawa.controller.ControllerServlet.doPost(ControllerServlet.java:114)
> >         at
> > jawa.controller.ControllerServlet.doGet(ControllerServlet.java:95)
> >         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >         at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:50
> > 3)
> >         at
> > 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >         at
> > 
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(Htt
> > pC
> > onnectionHandler.java:160)
> >         at
> > 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:3
> > 38
> > )
> >         at java.lang.Thread.run(Unknown Source)
> > 
> > </ERROR>
> > 
> > Thanks,
> > Bill
> > 
> 

Mime
View raw message