0

I have problem running the web-project that I worte in eclipse that runs on tomcat (7.0.34). in my program I have class that extends HttpServlet and in that, a method doGet. if I start the tomcat server from the eclipse and than enter in my browser: http://localhost:8080/test/test2?parameters... (parameters is the ones I get in my program from HttpServletRequest request in the doGet) and it work there.

now I want to export the project and be able to run it anywhere not from the eclipse or in my computer. but I tried many things and also export to war file(that I haven't able to run it at all), and then start the bin/startup.bat in my tomcat folder and still nothing come up.

Vihar
  • 3,626
  • 2
  • 24
  • 47
Marty
  • 1
  • 1
  • whats the exception you are facing??when you run startup.bat whats the exception? – Vihar Jul 22 '15 at 11:59
  • I put the war file of the project in the webapps, the run startup.bat, and then I have no way to run the war file. If I try to run >java -jar test.war, it ofcourse also not working because I dont have main file and this is the error: "no main manifest attribute, in test.war" – Marty Jul 22 '15 at 12:11
  • and all of this times the localhost:8080.... that I try to run also say: webpage is not available, – Marty Jul 22 '15 at 12:13
  • whenever you copy your war file in webapps folder and then execute `startup.bat` if app is deployed successfully then you will see the extracted folder of same name as war (in webapps) and if you do not see that folder , there might be some exception you can check the logs at `tomcat/logs/catalina.out` – Vihar Jul 23 '15 at 04:47
  • have a look here http://stackoverflow.com/questions/5109112/how-to-deploy-a-war-file-in-tomcat-7 – Vihar Jul 23 '15 at 05:04

0 Answers0