Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-11-2007, 08:47 AM   #1
LQ Newbie
Registered: Sep 2006
Distribution: slackware
Posts: 11

Rep: Reputation: 0
Tomcat Apache - server configuration

I using Tomcat Apache 4.0.1
and j2sdk1.4.2_13

I put my java class and jsp page in the same folder.But when i try to run the jsp page it cannot found my java class.
I cannot bring my applet/servlet in the browser,it look like the Tomcat cannot 'see' the java class.

how to configure the tomcat server to make it ok..?
Old 01-12-2007, 04:42 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
If your .jsp files are in the root directory of your webapp in webappname/*.jsp then your classes should be in webappname/WEB-INF/classes/*.class. Have a look at for some Tomcat 4 info. The class loader looks in:
    * /WEB-INF/classes of your web application
    * /WEB-INF/lib/*.jar of your web application
    * Bootstrap classes of your JVM
    * System class loader classses (described above)
    * $CATALINA_HOME/common/classes
    * $CATALINA_HOME/common/endorsed/*.jar
    * $CATALINA_HOME/common/lib/*.jar
    * $CATALINA_BASE/shared/classes
    * $CATALINA_BASE/shared/lib/*.jar



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and Tomcat Configuration Problem inspiration Linux - Software 0 04-19-2004 02:46 AM
Apache Tomcat Cocoon Final Configuration RKris Linux - Software 0 12-13-2003 09:18 AM
tomcat server configuration with apache on RHL 7.2, 6.2 sathu Linux - Software 0 02-05-2002 08:07 AM
Apache-Tomcat Configuration Bond2312 Linux - Software 1 08-29-2001 11:46 PM
Apache Tomcat configuration gilbert_on_line Linux - General 0 04-18-2001 07:48 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration