tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Martin" <Ba...@Larsenfarms.com>
Subject RE: Where to locate class files
Date Wed, 21 Aug 2002 23:00:08 GMT
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:pta@psaconsultants.com]
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:   pta@psaconsultants.com
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message