Thanks Peter, The WEB-INF directory is in uppercase. I have tried restarting tomcat. This is in a testing environment with tomcat running standalone on a win2k box. The version of tomcat is 4.0.1. For the class file in question I simply typed the java code in notepad and saved the .java to \classes and then compiled from the command prompt which saved the .class file in the same directory. It compiled fine.
Barry -----Original Message----- From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 4:44 PM To: 'Tomcat Users List' Subject: Re: Where to locate class files -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Aug 21, 2002 at 04:40:30PM -0600, Barry Martin wrote: > I am developing an order form to run on Tomcat. The book I have says to > store the class files in <tomcat-install>\webapps\root\web-inf\classes > directory. The html file is located in the root directory and runs fine but > when calling the jsp the error is:Class org.apache.jsp.Spud not found. Is > this the correct directory to store class files? Any ideas appreciated. yes, app specific classes should be in WEB-INF/classes. from the error it looks like tomcat can't find the class. perhaps you didn't make WEB-INF uppercase. perhaps you put your class in a package and didn't import it in the jsp or servlet. perhaps you didn't restart tomcat after adding the class to that directory. if you provide a little more information, we would be able to help you more. - -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ZBfCggA8sH0iRXQRAjfBAKC3DdCIU1uRbI99Q/H50KeWOYpNugCeOSfR q8PPVeHwfSe7wfK6OlPqtEo= =mJBg -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
