You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Barry Martin <Ba...@Larsenfarms.com> on 2002/08/22 00:40:30 UTC

Where to locate class files

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.

Barry Martin


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Andrew Conrad <an...@attbi.com>.
Whoops..   Type.


> -----Original Message-----
> From: Ron Day [mailto:ronday@ronday.cc] 
> Sent: Wednesday, August 21, 2002 8:51 PM
> To: Tomcat Users List
> Subject: RE: Where to locate class files
> 
> 
> almost....start your package in "classes" directory............
> 
> -----Original Message-----
> From: Andrew Conrad [mailto:andrewconrad@attbi.com]
> Sent: Wednesday, August 21, 2002 7:43 PM
> To: 'Tomcat Users List'; Barry@Larsenfarms.com
> Subject: RE: Where to locate class files
> 
> 
> Here is your problem
> 
> Make your class part of a package, then reproduce the package 
> in the WEB-INF
> 
> For instance, if you call your package  com.MyFiles   put the 
> Java file
> in WEB-INF/com/MyFiles
> 
> Then in you jsp, do an import  com.MyFiles.Spud
> 
> - Andrew
> 
> > -----Original Message-----
> > From: Barry Martin [mailto:Barry@Larsenfarms.com]
> > Sent: Wednesday, August 21, 2002 7:20 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Where to locate class files
> >
> >
> > Sure Peter,
> >
> > Here you go. Here is the html,jsp and java code.
> >
> > Thanks, Barry
> >
> > -----Original Message-----
> > From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
> > Sent: Wednesday, August 21, 2002 5:04 PM
> > To: 'Tomcat Users List'
> > Subject: Re: Where to locate class files
> >
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > > Thanks Peter,
> >
> > welcome.
> >
> > > 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.
> >
> > well, it seems you've done everything according to the law. 
> forgive me 
> > for asking but you did name the class Spud and put it in Spud.java, 
> > right?  can you post the code that calls Spud and the code for Spud?
> >
> > - --
> > Peter Abplanalp
> >
> > Email:   pta@psaconsultants.com
> > PGP:     pgp.mit.edu
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.7 (GNU/Linux)
> >
> > iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> > 2n4EbkNtX6LmI6HtMKFy5Ws=
> > =eWDw
> > -----END PGP SIGNATURE-----
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Ron Day <ro...@ronday.cc>.
No, only servlets are registered in web.xml. You really do need to use
packages believe me...

-----Original Message-----
From: Barry Martin [mailto:Barry@Larsenfarms.com]
Sent: Wednesday, August 21, 2002 9:02 PM
To: 'Tomcat Users List'
Subject: RE: Where to locate class files


Could I also modify the web.xml file to point to my class files?

Barry

-----Original Message-----
From: Ron Day [mailto:ronday@ronday.cc]
Sent: Wednesday, August 21, 2002 6:51 PM
To: Tomcat Users List
Subject: RE: Where to locate class files


almost....start your package in "classes" directory............

-----Original Message-----
From: Andrew Conrad [mailto:andrewconrad@attbi.com]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; Barry@Larsenfarms.com
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -----Original Message-----
> From: Barry Martin [mailto:Barry@Larsenfarms.com]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -----Original Message-----
> From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > 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.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   pta@psaconsultants.com
> PGP:     pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Barry Martin <Ba...@Larsenfarms.com>.
Could I also modify the web.xml file to point to my class files?

Barry

-----Original Message-----
From: Ron Day [mailto:ronday@ronday.cc]
Sent: Wednesday, August 21, 2002 6:51 PM
To: Tomcat Users List
Subject: RE: Where to locate class files


almost....start your package in "classes" directory............

-----Original Message-----
From: Andrew Conrad [mailto:andrewconrad@attbi.com]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; Barry@Larsenfarms.com
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -----Original Message-----
> From: Barry Martin [mailto:Barry@Larsenfarms.com]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -----Original Message-----
> From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > 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.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   pta@psaconsultants.com
> PGP:     pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Ron Day <ro...@ronday.cc>.
almost....start your package in "classes" directory............

-----Original Message-----
From: Andrew Conrad [mailto:andrewconrad@attbi.com]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; Barry@Larsenfarms.com
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -----Original Message-----
> From: Barry Martin [mailto:Barry@Larsenfarms.com]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -----Original Message-----
> From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > 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.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   pta@psaconsultants.com
> PGP:     pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Andrew Conrad <an...@attbi.com>.
Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -----Original Message-----
> From: Barry Martin [mailto:Barry@Larsenfarms.com] 
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
> 
> 
> Sure Peter,
> 
> Here you go. Here is the html,jsp and java code.
> 
> Thanks, Barry
> 
> -----Original Message-----
> From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
> 
> welcome.
> 
> > 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.
> 
> well, it seems you've done everything according to the law.  
> forgive me for asking but you did name the class Spud and put 
> it in Spud.java, right?  can you post the code that calls 
> Spud and the code for Spud?
> 
> - --
> Peter Abplanalp
> 
> Email:   pta@psaconsultants.com
> PGP:     pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -----END PGP SIGNATURE-----
> 
> --
> To unsubscribe, e-mail: 
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Barry Martin <Ba...@Larsenfarms.com>.
Sure Peter,

Here you go. Here is the html,jsp and java code.

Thanks, Barry

-----Original Message-----
From: Peter T. Abplanalp [mailto:pta@psaconsultants.com]
Sent: Wednesday, August 21, 2002 5:04 PM
To: 'Tomcat Users List'
Subject: Re: Where to locate class files


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> Thanks Peter,

welcome.

> 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.

well, it seems you've done everything according to the law.  forgive
me for asking but you did name the class Spud and put it in Spud.java,
right?  can you post the code that calls Spud and the code for Spud?

- --
Peter Abplanalp

Email:   pta@psaconsultants.com
PGP:     pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
2n4EbkNtX6LmI6HtMKFy5Ws=
=eWDw
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


Re: Where to locate class files

Posted by "Peter T. Abplanalp" <pt...@psaconsultants.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> Thanks Peter,

welcome.

> 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.

well, it seems you've done everything according to the law.  forgive
me for asking but you did name the class Spud and put it in Spud.java,
right?  can you post the code that calls Spud and the code for Spud?

- -- 
Peter Abplanalp

Email:   pta@psaconsultants.com
PGP:     pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
2n4EbkNtX6LmI6HtMKFy5Ws=
=eWDw
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Barry Martin <Ba...@Larsenfarms.com>.
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Where to locate class files

Posted by "Peter T. Abplanalp" <pt...@psaconsultants.com>.
-----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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Where to locate class files

Posted by Will Hartung <wi...@msoft.com>.
From: "Barry Martin" <Ba...@Larsenfarms.com>
Sent: Wednesday, August 21, 2002 3:40 PM


> 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.

I don't know what book you're reading, but it's not important.

Read this:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html

and this: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/source.html

and then come back with any questions.

Be the webapp, Live the webapp, Love the webapp.

Regards,

Will Hartung
(willh@msoft.com)





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Where to locate class files

Posted by Ron Day <ro...@ronday.cc>.
Are you using packages for your java code? If not that is your problem.

The default package is NOT the "classes" directory, but "org.apache.jsp", so
if you don't explicitly use a package name, and put your class files in
"classes", Tomcat will not find them.

Use a package name such as com.pk1.pk2 and put a directory structure
com/pk1/pk2/ under classes. Put your class files in pk2.

Ron

-----Original Message-----
From: Barry Martin [mailto:Barry@Larsenfarms.com]
Sent: Wednesday, August 21, 2002 5:41 PM
To: 'Tomcat Users List'
Subject: Where to locate class files


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.

Barry Martin


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>