Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I implement a web application under TOmcat 5

Status
Not open for further replies.

celia05es

Programmer
Jan 10, 2002
81
US
Hello,
I have installed Tomcat 5 under solaris and it works fine.
I want to create under <install_dir>/<webapps> my own application: <MyAppl> with the WEB-INF (classes, web.xml, lib) directories. I don't know how to do it. I have read the TOmcat documentation but I still don't know what to do.
I know I just can't create the directories and files like that. Could someone tell me the steps I have to follow?
Thank you
Elisabeth
 
For the easy way to handle it download Eclipse IDE and the Tomcat plugin, it will build it all really nicely for you.

Otherwise yea, you do it by hand.

 
I'd rather do it manually. Could you tell me if the following procedure is the correct one:
- Create somewhere the structure: Myapp
|
---- classes
|
----- lib
|
--- web.xml
The classes and lib directories are empty
The web.xml is almost empty.
- Then I use the JAVA jar command: jar cvf Myapp.war Myapp
- I copy the Myapp.war file under the TOMCAT webapps directory.
- I restart tomcat.... and the war file should have been expanded!!!

By the way, if it does not work, is there a way in TOmcat 5, to see the errors with the "startup.sh" command?
 
I have

WEB-INF
|-classes
|-src
|-lib

Your war file workflow is correct.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top