I have a multi-module Maven web app, and I want to run it in Eclipse with Jetty. I read several tutorials (here is one I tried to follow).
I thought that everything that is need to be done is adding plugins and dependencies in the pom.xml of my Spring web module of the project and then with a help of mvn jetty:run (again, in the web Spring Maven module) run the app and be able to see the results in the browser. So, the first question is: do I have to do something else (e.g. in the web.xml file)?
EDIT:
I also had to add <pluginGroup>org.mortbay.jetty</pluginGroup> in Maven’s settings.xml to start server without errors.
And I get HTTP ERROR: 503 SERVICE_UNAVAILABLE. What are the probable reasons? Do I need some more dependencies or to add something else? Thanks in advance.
According to what was written when Jetty tried to start, I had to add MySql dependency. With it
HTTP ERROR: 503 SERVICE_UNAVAILABLEdisappeared.Here is the part of the
pom.xmlof the Spring web module of my project I added to use Jetty (Just in case someone needs it. Maybe, I could delete something from thispom.xml‘s part, I haven’t check that yet.):