This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to Deploye WAR in Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to Deploye WAR in Tomcat?" Watch "How to Deploye WAR in Tomcat?" New topic
Author

How to Deploye WAR in Tomcat?

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Hello, I have built a WAR called abc.war. My newly installed Tomcat works because I have tested http://localhost:8080/.

I dropped the abc.war in the C:\apache-tomcat-7.0.6\webapps directory.

And I started the Tomcat.

I entered http://localhost:8080/abc

and I got HTTP Status 404. Would you advise me what is going on? Apparently, I did something wrong. Thank you.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Set up access to the Tomcat manager app and it will tell you whether the web app was loaded or not. Also, is there any info in the logs?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
It is a blank in the log.

Where do I find instruction to set up access to the Tomcat manager app ? Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

It's in the Tomcat docs, and has been discussed numerous times in this forum. Search for tomcat-users.xml.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Deploye WAR in Tomcat?
 
Similar Threads
Deploying .war file in tomcat
Hot deployment problems
Deployement problem
WAR file
Simple JSF applicaiton - Error