tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Brashears <g...@gila.org>
Subject Re: R: Problem accessing beans in beta 3
Date Mon, 09 Apr 2001 15:51:39 GMT
I don't follow what you mean. Beans are supposed to be in
WEB-INF/classes right? Did I leave something out of my <Context> tag?


On Mon, Apr 09, 2001 at 08:18:24AM +0200, luigi wrote:
> Hi,
>         I've some similar problems, but using jsp with the tomcat's beans,
> that doesn't happen. I think there is a problem of setting in server.xml.
> Try changing the path of the bean .class file
> 
> bye
> 
> ----- Original Message -----
> From: Aaron Brashears <gila@gila.org>
> To: Tomcat User <tomcat-user@jakarta.apache.org>
> Sent: Monday, April 09, 2001 7:15 AM
> Subject: Problem accessing beans in beta 3
> 
> 
> > I was building a simple web app which combines jsps with beans. When I
> > deployed the application (a few pages and one bean), and accessed the
> > jsp which makes use of the bean, an exception was thrown that jasper
> > was unable to compile the jsp because it couldn't find the bean class.
> >
> > At first, I assumed it was all my problem, but after a few failed
> > attempts to circumvent the problem, I tried out an old application
> > that I copied, deployed and successfully tested out of a book when I
> > was working with 4.0 beta 1. The same exception was generated. What's
> > going on? I found a message in the archives that indicated beans have
> > to be in a package. Is this a new requirement?
> >
> > /jsp/beans.jsp accesses LanguageBean
> > /jsp/WEB-INF/classes/LanguageBean.class exists.
> >
> > server.xml is configured with the following snippet in
> > <Context path="/jsp" docBase="/home/aaron/work/jsp">
> > </Context>
> >
> > And the exception is:
> >
> > A Servlet Exception Has Occurred
> >
> > org.apache.jasper.JasperException: Unable to compile class for
> JSP/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_j
> sp.java:57: Class org.apache.jsp.LanguageBean not found.
> >                 LanguageBean languageBean = null;
> >                 ^

<the rest of the exception follows...>

Mime
View raw message