0

I would like to deploy my project on tomcat server.

When i develop the project, i using eclipse with tomcat, and everything is ok.

I would like to deploy directly to tomcat server now.

I put my project folder under tomcat's webapps folder, and restart tomcat server.

But it shows 404 error when i open http://localhost:8080/myproject/

why this happen, and how can i figure it out?

Will
  • 633
  • 11
  • 26
  • @Tiny Hi, when we deploy our project, we need to put our project folder under webapps, and restart server, right? But it shows 404 error – Will Jan 28 '15 at 04:25
  • You need to put a *.war file into webapps folder, server restart is not necessary. To figure out what is happening check logs folder, particularly catalina file. – Ivan Jan 28 '15 at 04:29
  • @Ivan Hi, ivan. i tried to put a *.war file into webapps folder, but it shows a 503 error, said this application is not available. – Will Jan 28 '15 at 04:33
  • @Ivan i complete the project using eclipse, and everything is ok when i deploy it using the eclipse with tomcat – Will Jan 28 '15 at 04:36
  • @Will Logs is what you need to check first, as I said ;) – Ivan Jan 28 '15 at 04:40
  • @Ivan ok, i am going to check the logs right now. – Will Jan 28 '15 at 04:41
  • [This](http://stackoverflow.com/q/5109112/1391249) question and answers cover this in great details. – Tiny Jan 28 '15 at 05:06

1 Answers1

0

It is not straight forward when you invoke Tomcat from within Eclipse. Please read the FAQ section at https://wiki.eclipse.org/WTP_Tomcat_FAQ

It explains how if you start Tomcat from within Eclipse, the binaries of original directories of Tomcat are used, but the web apps etc are stored separately in the Eclipse Workspace.

Srikanth
  • 1,725
  • 2
  • 10
  • 11