Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight servlet engine for serving java application via IIS

I have an old legacy java web application that I want to deploy on the same server as my asp.net-applications (running on IIS 7). And I need to have all applications running on port 80, so I can't just install two web servers on different ports.

The java-application is really simple, just a couple of serverlets (no JSP) with functionality pretty close to "Hello World". So I want the servlet engine to be as lightweight as possible. I consider Tomcat to be overkill for this.

Does such a product exist or I'm I stuck with Tomcat?

like image 473
Ola Herrdahl Avatar asked Aug 27 '09 23:08

Ola Herrdahl


2 Answers

Have a look at Jetty. It can be invoked from a standard Main invocation, and handles servlet containers pretty well (GWT debugging is hosted in a Jetty environment, for example).

I've used this for debugging Lift applications, and been pretty impressed.

To forward requests through IIS to Jetty you can try mod_jk. The problem is that IIS and Java/JSP don't Just Work because IIS needs add-ons to support the loading of the VM and the reflection of JSP/Java content. There is an excellent article on how this can be done here.

like image 104
butterchicken Avatar answered Oct 04 '22 00:10

butterchicken


I'm sure you don't want to get too exotic but if you don't find something to your liking, you could always run Tomcat on a different port and then do some reverse proxying and send everything heading to a specific context to your Tomcat install running on port XYZ, although admittedly I'm only familiar with this in the Apache world, and not the IIS world.

like image 36
MattC Avatar answered Oct 04 '22 01:10

MattC