Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 49554 invoked from network); 6 May 2010 14:13:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 14:13:32 -0000 Received: (qmail 52292 invoked by uid 500); 6 May 2010 14:13:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52168 invoked by uid 500); 6 May 2010 14:13:28 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 52159 invoked by uid 99); 6 May 2010 14:13:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 14:13:28 +0000 X-ASF-Spam-Status: No, hits=-0.4 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of luis.a.de.sousa@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 14:13:22 +0000 Received: by mail-ww0-f45.google.com with SMTP id 20so798471wwd.18 for ; Thu, 06 May 2010 07:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yvq3JgxQ+b6lWW19wlnbFlrCTHYbHnHYvng7Le2xVvw=; b=iBrrUDb3wPSlcDiaMw4Pmm+PyypUzDTFyAnvMppKgrUek8bJWStuTvm0EVnO5912Ez gXMhowczC2nHnjGpE+8WMwF5tNEexO8QJQF61wyoThOYeJqshACOViMF6T2TPgBkzWkH uuO7VmPyzkGP1QRoueEL4atWh4FmmiJ3N7d1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hlWWkXu6d00ktxonMOmVZPQRDIEP44F7nxNnouhyeR2Lxk1DpOKHPlxCJt0iSNQwqC KxrdMcfYdqh9oZPmpuyCBo7bRfchlB64D1e9ZxzfBhS8rxyOcTCsze6YagOpab0RckEj amRvTRWMbFhDq+M841ojuM0J5VpJfAZc0jvTY= MIME-Version: 1.0 Received: by 10.216.86.212 with SMTP id w62mr1958803wee.131.1273155181902; Thu, 06 May 2010 07:13:01 -0700 (PDT) Received: by 10.216.172.12 with HTTP; Thu, 6 May 2010 07:13:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 6 May 2010 15:13:01 +0100 Message-ID: Subject: Re: Tomcat can't find Java Beans From: =?ISO-8859-1?Q?Lu=EDs_de_Sousa?= To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry, here goes the example exception. Lu=EDs org.apache.jasper.JasperException: /greeter.jsp(5,10) The value for the useBean class attribute ourbeans.greeterbean is invalid. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandle= r.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:4= 07) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:1= 48) 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(DelegatingMethodAccessorIm= pl.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=EDs de Sousa : > 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=EDs > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org