Reputation: 10651
I want to have a war file deployed into tomcat of MyEclipse. I tried Add Deployment
to tomcat but it can only deploy projects of MyEclipse. Then I tried to import the war file into a project, but there is no war file option in MyEclipse import.
How can I get a war file running in MyEclipse tomcat server ?
Upvotes: 0
Views: 966
Reputation: 2098
If you want tot run war file in tomcat eclipse, you just simply place your war file to tomcat webapps folder.
Please follow the below step:
1) Stop Tomcat.
2) 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
3) Copy WAR file to TOMCAT_HOME/webapps/.
4) Start Tomcat.
More documentation for such kind of problem here
Upvotes: 1