Erin,
Thank you! Your post looks a lot like mine, which
gave me an idea. The "Unable to compile class for
JSP" has only shown up for me in version 5.0.19.
I switched to tomcat 5.0.16 and the problem is gone.
Trying switching to a different version of tomcat and
see if the problem disappears for you too. Maybe
there's something in 5.0.19 that's messed up.
Todd
--- Erin O'Neill <[EMAIL PROTECTED]> wrote:
> Thanks for your input. I've already checked what
> version of java I've got:
>
> > $JAVA_HOME/bin/java -version
> java version "1.4.2_03"
> Java(TM) 2 Runtime Environment, Standard Edition
> (build 1.4.2_03-b02)
> Java HotSpot(TM) Client VM (build 1.4.2_03-b02,
> mixed mode)
>
> My first impulse was that I was missing the java
> compiler but it's there:
> > ls $JAVA_HOME/bin/javac
> /usr/java/bin/javac
>
> I have a startup script in /etc/init.d. In that
> script I set up a number of
> ENV vars, including JAVA_HOME, CLASSPATH, PATH. I
> have both the catalina.sh
> & the setclasspath.sh echo what those variables hold
> (after I found that
> setclasspath reset the CLASSPATH to something
> limited I commented out that
> line).
>
> When I google for this problem, the hints are that
> either the java version
> and the tomcat version are not compatible OR the
> CLASSPATH is lacking some
> jar file....
>
> My CLASSPATH has this:
>
/usr/java/lib/tools.jar:/usr/jre/lib:/usr/local/tomcat/bin/commons-daemon.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
>
> Am I missing some important Sun Java classpath? I
> have the general jre/lib
> directory but should I point to a special jar file?
> Do I need more than the
> tools.jar file in the /usr/java/lib in my
> CLASSPATH??
>
> I have a symlink set up so that /usr/java points to
> /usr/java ->
> /usr/j2se and /usr/jre --> j2re1.4.2_04.
>
> Should I NOT use symlinks??
>
> Any other suggestions?
>
> thanks all!
>
> erin
>
> At 08:59 PM 3/22/2004 -0600, you wrote:
> >On Mon, Mar 22, 2004 at 02:20:03PM -0800, Erin
> O'Neill wrote:
> >: My error message says this (in a small part):
> >: org.apache.jasper.JasperException: Unable to
> compile class for JSP
> >
> >Two gut feelings strike me:
> >
> >1/ the Java you have installed, what version is it?
> You said you
> >have 1.4.x, but which one is Tomcat calling?
> >
> > ${JAVA_HOME}/bin/java -version
> >
> >Back in the day, and perhaps still, Solaris shipped
> with Java version
> >1.2 in /usr/bin.
> >
> >
> >2/ JDK or JRE? -as in, do you have
> >
> > ${JAVA_HOME}/bin/javac
> >
> >If this is still a no-go for you, I'll think it
> over when I'm awake. ;)
> >-QM
> >
> >--
> >
> >software -- http://www.brandxdev.net
> >tech news -- http://www.RoarNetworX.com
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
=====
The only "dumb question" is the one you were too afraid to ask.
________________________________________
Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net
________________________________________
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]