Hi Nathan.
If setup properly, the location of your webapp shouldn't cause issues
with finding various classes. Just don't mention that dirty, dirty word
CLASSPATH :-). Seriously messing with the CLASSPATH environment
variable will cause loads of headaches. Best to just not mess with it
and let tomcat ignore it.
You can find information on tomcat's classloader structure at
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
(assuming you are using tomcat 5.5). Each version of tomcat has it's
own version of this document.
The errors you are getting indicate your webapp can't find
commons-fileupload.jar and commons-io.jar. Those should be stored in
WEB-INF/lib of your webapp.
Also your log indicates you have packages declared the same name as some
of your classes. Modify, MassList, Mass, Adducts, and AdductList should
be declared to be of package db, not db.Modify for example. Same goes
for masIO.FileHandler -- should be declared of package massIO, not
massIO.FileHandler.
--David
Nathan S. Haigh wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm pretty new to Java and tomcat and can't seem to figure this out.
I have an application that works fine under:
/usr/local/tomcat/weapps/app_name
However, when I put it into a user's home directory e.g.
/home/user_name/public_html/app_name
I get a lot of errors (shown at end). Are these to do with tomcat not
being ale to find some of the classes? be gentle when explaining the
CLASSPATH as I'm pretty new to this!
Cheers
Nath
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file
Only a type can be imported.
org.apache.commons.fileupload.servlet.ServletFileUpload resolves to a
package
An error occurred at line: 8 in the generated java file
Only a type can be imported.
org.apache.commons.fileupload.disk.DiskFileItemFactory resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. org.apache.commons.io.FilenameUtils
resolves to a package
An error occurred at line: 13 in the generated java file
Only a type can be imported. db.Modify resolves to a package
An error occurred at line: 14 in the generated java file
Only a type can be imported. db.MassList resolves to a package
An error occurred at line: 15 in the generated java file
Only a type can be imported. db.Mass resolves to a package
An error occurred at line: 16 in the generated java file
Only a type can be imported. db.Adducts resolves to a package
An error occurred at line: 17 in the generated java file
Only a type can be imported. db.AdductCollection resolves to a package
An error occurred at line: 18 in the generated java file
Only a type can be imported. massIO.FileHandler resolves to a package
[ -- snip -- ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGeSksczuW2jkwy2gRAgGaAJ9qgwH/fPlHqEmF0apKRgYjvJ327ACgk0UI
ihFhB4tCjatQRE9aIQwc6sw=
=WuaT
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]