How do I deploy WAR file to Tomcat 6.0?

How can I publish WAR file

  • I'm have a WAR file export from eclipse, now i want to deploy into server tomcat running on linux server hosting, but i can't set up to run this project ? I'm using RICHFACES 4, Tomcat 6 I've already copy WAR file to folder webapps but server didn't deploy WAR file. Thanks for helping and sorry about my bad English.

  • Answer:

    Stop Tomcat. Delete existing deployment. If you have previously deployed "foo.war" in TOMCAT_HOME/webapps, then it has been unpacked into webapps/foo/... You must delete this directory and all its contents. On Unix, this can be done with rm -r $TOMCAT_HOME/webapps/foo Copy WAR file to TOMCAT_HOME/webapps/. Start Tomcat. For more details Check http://www.jguru.com/faq/view.jsp?EID=123229

user1000566 at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

You seem to be using a 3rd party hosting. You need to read their developer documentation / user guide how to deploy web applications to it. On most (usually the elcheapo ones), you need to extract the WAR yourself and then upload the WAR's contents to the "public" www folder yourself. A WAR file is basically a ZIP file, so you should be able to extract it yourself with any ZIP tool.

BalusC

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.