• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

deployment to webapps

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
And then the flying monkeys attacked. My only defense was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic