?
Solved

JSP deployment on Tomcat

Posted on 2003-02-20
3
Medium Priority
?
301 Views
Last Modified: 2010-04-01
Hi experts,

I now need to launch a JSP page on Tomcat. I have the web.xml file and the .war file. I put both of them in my tomcat /webapp directory and I got an error message saying that it do not find my packages.

I tried to put my packages with the .war file in the same directory with the .jsp and .xml, I also tried to put them in the WEB-INFO directory too and neither works.

I imagine there's something more I must do. What tag I'll need to edit in the web.xml file and where I am suppose to place these files (.xml, .war, .jsp) on the server?

Please help, I can't find enough information. Any comment will be very appreciate. Thanks in advance.
0
Comment
Question by:JeromeQc
[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
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 200 total points
ID: 7991256
Steps Involved in Deploying a Web Application to Tomcat


Copy your WAR file to the TOMCAT_HOME/webapps directory.

Add a new Context entry to the TOMCAT_HOME/conf/server.xml file, setting the values for the path and docBase to the name of your web application.

<Context path="/yourapp" docBase="yourapp" debug="0" reloadable="true" />

Restart Tomcat after completing these steps. Your application should now be running.

The previously described application can be accessed by pointing your browser at

http://localhost/yourapp/

If you look at the TOMCAT_HOME/webapps directory, you will see a new directory matching the name of your WAR file. This is where your working web application now exists. When Tomcat starts it will extract all WAR files that have been recently placed into the TOMCAT_HOME/webapps directory.

your web.xml and your jsp's will be inside the war file.

take a look at:
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html

CJ
0
 

Author Comment

by:JeromeQc
ID: 7991657
Thanks again CJ!
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7996586
Glad I could help and Thanx for the "A"

CJ
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

801 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