On 06/05/2010 15:13, Luís de Sousa wrote: > Sorry, here goes the example exception. > > Luís > > org.apache.jasper.JasperException: /greeter.jsp(5,10) The value for
Now the contents of the greeter.JSP, please? p > the useBean class attribute ourbeans.greeterbean is invalid. > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) > > org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1272) > org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1178) > org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361) > org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411) > org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417) > org.apache.jasper.compiler.Node$Root.accept(Node.java:495) > org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361) > org.apache.jasper.compiler.Generator.generate(Generator.java:3426) > org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:332) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:312) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:299) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > java.lang.reflect.Method.invoke(Method.java:616) > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) > java.security.AccessController.doPrivileged(Native Method) > javax.security.auth.Subject.doAsPrivileged(Subject.java:537) > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) > > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) > > > 2010/5/6 Luís de Sousa <luis.a.de.so...@gmail.com>: >> Hello everyone, >> >> Tomcat 6.0.20 on Ubuntu 9.10. I'm trying to deploy simple web >> applications that either use beans or servlets. I'm now down to very >> simple examples like this one: >> >> http://www.roseindia.net/ejb/introduction/javabean.shtml >> >> This is basically a html file, a jsp file that deals with a post and a >> java bean. I'm compiling the java files and copying the resulting >> .class into WEB-INF/classes, using the directory structure to match >> the package names. >> >> Invariably, when the bean is called Tomcat returns an error saying the >> bean is invalid (see example below). It seems that Tomcat isn't >> finding the .class files; do I need to configure something for Tomcat >> to find the beans? I though that for Tomcat 5 and beyond that wasn't >> needed. >> >> Thanks for your help, >> >> Luís >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
signature.asc
Description: OpenPGP digital signature