tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "howard fraser" <howardjfra...@hotmail.com>
Subject Re: JasperException / classpath(?) problem
Date Tue, 17 Jul 2001 08:57:52 GMT
In case anyone else has had a similar problem, here is my solution.

Although starting tomcat results in the message...

Using CLASSPATH:
\tomcat\classes;C:\tomcat\lib\ant.jar;C:\tomcat\lib\jasper.jar;
C:\tomcat\lib\jaxp.jar;C:\tomcat\lib\parser.jar;C:\tomcat\lib\servlet.jar;
C:\tomcat\lib\webserver.jar;C:\jdk1.3.1\lib\tools.jar

...because I had j2ee.jar in <jdk home>\jre\lib\ext it was picking up this
file first which was causing some kind of conflict.  Removing j2ee.jar from
<jdk home>\jre\lib\ext solves the problem.


Howard

----- Original Message -----
From: "Jann VanOver" <Jann.VanOver@loudeye.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, July 16, 2001 7:46 PM
Subject: RE: JasperException / classpath(?) problem


> Where did you put NumberGuessBean.class ??
>
> It must go into WEB-INF/classes/num/ (because it is in package named
"num")
>
> -----Original Message-----
> From: howard fraser [mailto:howardjfraser@hotmail.com]
> Sent: Monday, July 16, 2001 7:29 AM
> To: tomcat-user@jakarta.apache.org
> Subject: JasperException / classpath(?) problem
>
>
> I wonder if anyone can shed any light on the following - I have looked
> through the archived messages, but to no avail.
>
> I have tomcat 3.2.2 installed on Windows 2000 SP2 with jdk1.3.1.  I do not
> have a CLASSPATH environment variable set.  When I start tomcat it first
> says
>
> Using CLASSPATH:
>
C:\tomcat\classes;C:\tomcat\lib\ant.jar;C:\tomcat\lib\jasper.jar;C:\tomcat\l
> ib\jaxp.jar;
>
C:\tomcat\lib\parser.jar;C:\tomcat\lib\servlet.jar;C:\tomcat\lib\webserver.j
> ar;C:\jdk1.3.1\lib\tools.jar
>
> ...which seems fine to me (all the above mentioned jars exist).
>
> When I try to run the jsp examples that come with tomcat (e.g. number
guess)
> I get the following exception...
>
> org.apache.jasper.JasperException: Unable to compile class for
>
JSPC:\tomcat\work\localhost_8080%2Fexamples\jsp\num\_0002fjsp_0002fnum_0002f
> numguess_jsp.java:3: Class num.NumberGuessBean not found in import.
> import num.NumberGuessBean;
>
> Is there sthg else I need to add to my classpath in order that tomcat can
> locate num.NumberGuessBean?
>
> Many thanks in advance for any help
>
>
> howard
>

Mime
View raw message