?
Solved

Apache Tomcat/5.0.27 file directory

Posted on 2005-03-22
6
Medium Priority
?
169 Views
Last Modified: 2013-11-24
dear experts,

i could not figure out where to put my servlet and class file that will work.
i put all the jsp file under docroot which is at the same level as the tomcat directory under /www/(url).
inside the docroot, i create WEB-INF/classes/mypackage/, put all the java class in this directory.

please help. thanks.
0
Comment
Question by:sarahchi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 15

Expert Comment

by:aozarov
ID: 13607692
Put your project under Tomcat_5.0\webapps.
The structure should be:
 your_app_folder\(*.html | *.jsp)
your_app_folder\WEB-INF\web.xml
your_app_folder\WEB-INF\lib (jar files normally third party libraries)
your_app_folder\WEB-INF\classes  (any classes your project needs including compiled servlets)

The context of your application will be the name of your_app_folder (that can be changed though)
For more details or if you want to put the project elsewere see: http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
0
 
LVL 15

Expert Comment

by:aozarov
ID: 13607763
You might want to look at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/deployment.html as well.
it is a summary of the file structure of your project and tomcat 5.0
0
 

Author Comment

by:sarahchi
ID: 13607765
thanks,
but I am not allowed to create directory under webapps on the server
0
 
LVL 15

Accepted Solution

by:
aozarov earned 440 total points
ID: 13607972
you can "war" it and then just put it there. war is the same compression as zip. so you can zip your_app_folder and then rename it to XXXX.war.
make sure you have web.xml in your WEB-INF.
If that is not acceptable as well then read the link above for more details. Basically you can either define a Context in server.xml or use the Deployer application.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
A solution for Fortify Path Manipulation.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question