Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deployment to webapps

 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just paste the war file of your project inside the webapps folder of tomcat and restart it. it will work.

avi sinha
 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the name of the WAR file? What is the URL you are using? What is the hostname of the server hosting Tomcat?
 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic