LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-11-2007, 07:47 AM   #1
pujakofriendly
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, 03:42 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

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 http://tomcat.apache.org/tomcat-4.1-...der-howto.html for some Tomcat 4 info. The class loader looks in:
Code:
    * /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
 
  


Reply

Tags
tomcat


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 01:46 AM
Apache Tomcat Cocoon Final Configuration RKris Linux - Software 0 12-13-2003 08:18 AM
tomcat server configuration with apache on RHL 7.2, 6.2 sathu Linux - Software 0 02-05-2002 07:07 AM
Apache-Tomcat Configuration Bond2312 Linux - Software 1 08-29-2001 10:46 PM
Apache Tomcat configuration gilbert_on_line Linux - General 0 04-18-2001 06:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:06 AM.

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