Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 61933 invoked from network); 8 Dec 2002 18:18:19 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Dec 2002 18:18:19 -0000 Received: (qmail 12303 invoked by uid 97); 8 Dec 2002 18:19:10 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 12244 invoked by uid 97); 8 Dec 2002 18:19:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 12232 invoked by uid 98); 8 Dec 2002 18:19:08 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Original-Recipient: Date: Sun, 8 Dec 2002 18:46:33 +0100 From: Mikael G�ransson To: "Tomcat Users List" Subject: Re: javabean problems Message-Id: <20021208184633.2a592d5a.micke@debinary.net> In-Reply-To: References: <20021208154740.47d84004.micke@debinary.net> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Sun, 8 Dec 2002 11:00:05 -0600 "Ron Day" wrote: > Your javabeans are not in a package.Tomcat 4.xx does not like this as it > puts it in the default package, and then cannot find it at run time. > > Just put your beans in a package, recompile and then add your package > directory structure under the "classes" directory. > > i.e if you have com.my.package for a bean mybean.class, then > put mybean.class in webapps/WEB-INF/classes/com/my/package directory > > R > > -----Original Message----- > From: Mikael Gvransson [mailto:micke@debinary.net] > Sent: Sunday, December 08, 2002 8:48 AM > To: tomcat-user@jakarta.apache.org > Subject: javabean problems > > > hey, > > it seems like i can't run my javabeans. > i'm using tomcat 4.1.12 binary distrubtion. > > i get the error "cannot resolve symbol". > > and i have no idea what it could be, it's just > a simple bean: > > public class JellyBean implements java.io.Serializable { > private String color; > > public JellyBean() { > } > > public String getColor() { > return color; > } > > public void setColor(String newColor) { > color = newColor; > } > } > > > -- > _ _ . | _ _ | micke@debinary.net > | )( | | |< (_| (-` | http://micke.debinary.net > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > i tried making a testbean package. webapps/ROOT/WEB-INF/classes/com/testbean/JellyBean.class and added in the top of the file: package testbean; and and i got a diffrent error msg: The server encountered an internal error () that prevented it from fulfilling this request. org.apache.jasper.JasperException: testbean.JellyBean at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183) at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:676) 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) [..] more similar error code ... -- _ _ . | _ _ | micke@debinary.net | )( | | |< (_| (-` | http://micke.debinary.net -- To unsubscribe, e-mail: For additional commands, e-mail: