tonix
tonix

Reputation: 6939

How to run Vaadin 7.3.9 Projects having IvyDE and Annotation servlet configuration with RunJettyRun in Eclipse?

Prior to the actual version of Vaadin (7.3.9) it was possible to create and run Vaadin 7 projects in a fancy way just using the RunJettyRun -> https://code.google.com/p/run-jetty-run/ plugin.

Now that Vaadin has migrated its configuration from web.xml to annotations (Java Servlet API 3.0), I noticed that if I deploy a Vaadin 7 project created with the vaadin 7 eclipse plugin New Vaadin 7 Project wizard (the one which uses Ivy as the dependency manager and build automation tool, below a screenshot of the project structure):

enter image description here

When I select Debug as -> Run Jetty and run the project, I get a 404 Not Found either for the http://localhost:8080 or for the http://localhost:8080/project-name URLs.

I can use Tomcat, but sometimes the deployment gets really really slow, Tomcat hangs and every time I deploy a new project in Tomcat I need to restart it before the new project can be ran on the server. With Jetty local deployment is simpler and faster IMHO.

I can also use Jetty together with Maven, but I need to work with Ivy, i.e. create Vaadin projects through the plugin's wizard.

How can I still use the Jetty speed when I develop a Vaadin 7 application now?

Upvotes: 0

Views: 414

Answers (1)

  1. Create a new Vaadin 7 Project with Servlet API 3.0 using the wizard
  2. Resolve dependencies and compile everything
  3. Select Run as/Debug as -> Run/Debug Configurations
  4. Select Jetty Webapp -> New launch configuration
  5. Select a Jetty Version: -> 8.x or newer (required for Servlet API 3.0)
  6. Hit Run/Debug

Upvotes: 2

Related Questions