JasperException / classpath(?) problem

2001-07-16 Thread howard fraser

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




RE: JasperException / classpath(?) problem

2001-07-16 Thread Jann VanOver

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:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:29 AM
To: [EMAIL PROTECTED]
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



Re: JasperException / classpath(?) problem

2001-07-16 Thread howard fraser

Yes, that's where it is, as per the defualt file structure when you unpack
tomcat.  It's a completely clean install, I'm just trying to get the
examples working.

Any other thoughts?

- Original Message -
From: "Jann VanOver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 7:29 AM
> To: [EMAIL PROTECTED]
> 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
>



Re: JasperException / classpath(?) problem

2001-07-17 Thread howard fraser

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 \jre\lib\ext it was picking up this
file first which was causing some kind of conflict.  Removing j2ee.jar from
\jre\lib\ext solves the problem.


Howard

- Original Message -
From: "Jann VanOver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 7:29 AM
> To: [EMAIL PROTECTED]
> 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
>