tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viswanatha Rao" <v...@pdq.net>
Subject jsp accessing bean errors - need help
Date Mon, 18 Aug 2003 20:03:34 GMT
I have a login.jsp that dumps user input into hello1.jsp
 
hello1.jsp performs a useBean and does set and get properties on a Bean
LoginBean. The LoginBean is compiled and located in
WEB-INF/classes/login dir. 
 
Hello1.jsp contents are:
 
<html>
<%@ page session="false"%>
</body>
<jsp:useBean id="login" scope="page" class="login.LoginBean" />
<jsp:setProperty name="login" property="*" />
Welcome: <jsp:getProperty name="login" property="firstName" />
</body>
</html>
 
I get following errors:
server encountered an internal error () that prevented it from
fulfilling this request.
exception 
org.apache.jasper.JasperException: login.LoginBean
        at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.jav
a:183)
        at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
a:692)
        at
org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
        at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
        at
org.apache.jasper.compiler.Generator.generate(Generator.java:1917)
        at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
        at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:473)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:190)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
        at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.ClassNotFoundException: login.LoginBean
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1443)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1289)
        at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.jav
a:181)
        at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
a:692)
        at
org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
        at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
        at
org.apache.jasper.compiler.Generator.generate(Generator.java:1917)
        at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:242)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
        at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:473)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:190)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
        at java.lang.Thread.run(Thread.java:536)
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message