This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to make my servlet run on any web server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "how to make my servlet run on any web server?" Watch "how to make my servlet run on any web server?" New topic

how to make my servlet run on any web server?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi anybody
Can anybody tell me how to make my servlet run on any webserver?
thanks in advance
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12999
Right now things are in a state of flux, with some vendors lagging behind the current API specifications. The best advice is to make sure it runs on the "Reference Implementation" - ie, Tomcat.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I'm not sure if this was actually the question you wanted answered, but most available web servers do not support servlets as supplied. There are servlet extensions available for most of the big name servers (Apache, IIS, iPlanet ...), but they all need to be installed by a system administrator which may not be fasible if you are just renting web space on a public host.
If you have control over the software and configuration of your web server, then you can choose a plug-in servlet extension which works with several web servers to be assured of at least basic compatibility. Resin, JRun and ServletExec seem fairly flexible about partnering with other web servers, others may be more specifically tailored to one server.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: how to make my servlet run on any web server?
It's not a secret anymore!