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

2007-10-03 Thread Caldarale, Charles R
 From: niblz [mailto:[EMAIL PROTECTED] 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2007-10-03 Thread Caldarale, Charles R
 From: Marty Hall [mailto:[EMAIL PROTECTED] 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2007-10-03 Thread Caldarale, Charles R
 From: Marty Hall [mailto:[EMAIL PROTECTED] 
 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]