Reputation: 35
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.
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
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
Reputation: 10239
you need to have a tomcat installed in your eclipse and run it on the server.
Upvotes: 2
Reputation: 77167
You need to install the Web Tools Platform, which has support for the usual Web-application tools.
Upvotes: 0