wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes deployment to webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "deployment to webapps" Watch "deployment to webapps" New topic
Author

deployment to webapps

moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
Hi I developed a web app using jsp in Eclipse.
The application is running on tomcat which controled thru the eclipse, while the regular tomcat server in my machine is stopped.
Now , I want to move it to another machine to be hosted inside the tomcat on that machine.
Where and how do I have to put it ? Just in webApps and everything should work ? Do I have to do any deployment ?
I just want to mantion that the eclipse created for me all the structure: web-inf, lib ....
Thanks.
avi sinha
Ranch Hand

Joined: Mar 15, 2009
Posts: 453

just paste the war file of your project inside the webapps folder of tomcat and restart it. it will work.

avi sinha


SCJP 5.0 SCWCD 5.0
moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
Hi,
I executed a war file out of my web project, using the eclipse, I got a war file and put it in webapps, but I still get 404 error.
any idea ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

What is the name of the WAR file? What is the URL you are using? What is the hostname of the server hosting Tomcat?


JBoss In Action
moshi cochem
Ranch Hand

Joined: Nov 10, 2009
Posts: 91
Hi,
I'm trying to do it in my local machine.
I right clicked on the web project (in eclipse) -> execute -> war
and I select to war it into webapps folder.
it creates a war file in webapps. now, when I type in the url:
http://localhost:8080/myWarName I don't get it working.
What do I miss ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Look at the webapps folder on Tomcat - what is the name of the file or directory given to your application? According to the URL you gave, the name should be myWarName.war for a file, or myWarName for a directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deployment to webapps