Code Program
Code Program

Reputation: 35

Run spring project in eclipse

I am new in spring.I imported one spring project in eclipse and try to run with apache tomcat but it is not running.There is no main method in project.It contains only controllers and models and one jsp page.

enter image description here

When i tried to run as a java application is shows below dialog. Please help me.I tried all in google for how to run spring project but i can't understand.Please tell me how to do?

Upvotes: 2

Views: 19033

Answers (3)

Ankush T
Ankush T

Reputation: 114

Assuming you have added tomcat to your eclipse. If your project is pure java project then it will not show you the run on server option in eclipe. You need to change project facet and add dynamic web module to it then you can run it on tomcat server from eclipse.Basically project needs to be web project.

After doing above if it gives error or do not run properly, check your project deployment assembly and add projects webapps folder in eclipse.

Upvotes: 3

Philipp Sander
Philipp Sander

Reputation: 10239

you need to have a tomcat installed in your eclipse and run it on the server.

Here is a tutorial to do this

Upvotes: 2

You need to install the Web Tools Platform, which has support for the usual Web-application tools.

Upvotes: 0

Related Questions