mike_hornbeck
mike_hornbeck

Reputation: 1622

How to deploy Java project to Tomcat

I have downloaded a sample extjs+mysql+spring web project (link) with a java backend that I'd like to set up locally on my machine. I have installed Tomcat server, and MySQL DB but it's my first time ever with a java-based web application and I have troubles setting it up. Does it require any modifications ? I thought that .jsp files should be included there, but I can only see .java sources. Do I need to build it before it's ready for deployment ? Any help appreciated.

Upvotes: 0

Views: 780

Answers (2)

Devesh
Devesh

Reputation: 85

if your are using eclipse IDE for development, create a project in eclipse, run as "run on server" , and set the running server (eg TOMCAT 7). and thats it,, make sure, you correctly setup spring project in IDE with all needed jar files .

Upvotes: 1

abalogh
abalogh

Reputation: 8281

This is an Eclipse project so you'd need to run it from within Eclipse.

  • Download Eclipse
  • Open the project in it
  • Define a Tomcat container in your Servers tab
  • Drag and drop the project onto the newly defined Tomcat
  • Run it

Upvotes: 1

Related Questions