You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2007/10/03 16:17:49 UTC

RE: Fresh install of Tomcat - getting frustrated with the JSP noworking

> From: niblz [mailto:krono@bgumail.bgu.ac.il] 
> Subject: Re: Fresh install of Tomcat - getting frustrated 
> with the JSP noworking
> 
> http://www.coreservlets.com/Apache-Tomcat-Tutorial/

At least part of that tutorial is fatally flawed, and the author should
be ashamed of himself.  One must *never* set CLASSPATH to include the
servlet-api.jar and jsp-api.jar (besides, he gave incorrect locations).
Get rid of the CLASSPATH - you don't need it.

> I have download this OFFICIAL example
> http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/

Works fine for me; where did you put it?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Fresh install of Tomcat - getting frustrated with the JSP noworking

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Marty Hall [mailto:hall@coreservlets.com] 
> Subject: RE: Fresh install of Tomcat - getting frustrated 
> with the JSP noworking
> 
> Sorry if I was unclear. The part on setting the CLASSPATH was under 
> the section entitled "Setting up your Development Environment".

Part of the problem is the link to the CLASSPATH section from Executive
Summary.  When following that link, the fact that it's under the
Development Environment section can't be seen.  There needs to be a
stronger statement that setting CLASSPATH is *only* for compilation of
servlets, and that it must be removed prior to actually running Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Fresh install of Tomcat - getting frustrated with the JSP noworking

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Marty Hall [mailto:hall@coreservlets.com] 
> Subject: RE: Fresh install of Tomcat - getting frustrated 
> with the JSP noworking
> 
> If you compile directly (from TextPad or UltraEdit or the 
> command line), then you need to either set the CLASSPATH
> variable or pass -classpath on the command line or put the 
> JARs in the ext folder (this is in the development environment, not 
> the server environment).

That is indeed correct.  However, the links within the tutorial indicate
that CLASSPATH should be set for the Tomcat server execution, not just
servlet compilation.  Including those jars in the CLASSPATH during
Tomcat execution causes multiple copies of the classes to be loaded
under different classloaders, resulting in no end of grief with CNFE
problems.  (Also, the given location of the jars is incorrect for Tomcat
6.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org