I have an existing app, that runs in tomcat. Now I am evaluating dropwizard for my new rest webservices. Now, dropwizard comes with inbuilt jetty. How do I deploy it with my tomcat container and not with its jetty container?
Asked
Active
Viewed 5,056 times
2 Answers
11
You can't do this. Dropwizard embeds Jetty. You should look into just using Jersey as a standard web application.
![](../../users/profiles/156743.webp)
Coda Hale
- 554
- 2
- 7
5
It makes a lot of sense to roll out your application as a jar, but sometimes you are bounded by company/enterprise standards and you're obliged to deploy on a given application server in production. 'Dropwizard in a box' ( https://github.com/rvs-fluid-it/wizard-in-a-box) makes it trivial to deploy a Dropwizard application as a war. It swaps DropWizard's embedded Jetty container and bridges to a servlet 3 container. 'Dropwizard in a box' is tested on Tomcat 7 and Weblogic 12c.
![](../../users/profiles/4323978.webp)
Koen Roevens
- 131
- 1
- 5