Welcome, Guest. [ Log In ]
Question   Do you support Java servlets?
Search KBase

Related Links:
· How do I use the web panel to contact Tech Support?

Top 5 in this Area:
1. Do you support Java servlets?
2. Which java features do you support / not support?
3. Do you support JSP?
4. Do you support the Tomcat/Jakarta JSP engine?
5. Do you support Java applets?

Do you support Java servlets?
Sadly, no.

While certainly a useful technology, Apache JServ has been in maintenance mode for quite some time now (the last release as of this writing was on June 17th, 2000), and as time goes on it will be more and more difficult to integrate it with other technologies we operate on.

We have closely evaluated the most obvious alternative (Jakarta Tomcat), but due to an inherent limitation in the way Tomcat was designed it is not a feasible alternative when used in a shared web hosting environment, even by their own admission. We've also evaluated a number of commercial solutions, but have not found a viable, cost-effective replacement that will work on all of our shared hosting servers.

This article will be updated if the situation changes.

Last updated: Nov 04, 2005.

User Post (2005-06-24 13:36:01 by moschops)
The truth is that sharing a Java servlet engine between virtual hosts is a PITA to set up and has all kinds of issues due to resource sharing and security - I tried it once on my own home server and one of my friends was always managing to bring down my JVM and wrecking all my domains until I restarted. A single JVM is just not meant for multi-user environments - yet (Sun is working on it).

Beyond that you can have a JVM per virtual host but that's expensive in machine resources. A single JVM is going to use a lot more memory than a single Apache instance - and most virtual hosting shares an Apache instance between many virtual hosts. Therefore I can understand Dream Host's reluctance to offer it. There are specialized servlet/J2EE hosting companies, just google for servlet hosting or tomcat hosting.
User Post (2005-06-23 16:07:49 by asleeis)
It would be really nice if more research was done on this. While the limitations may or may not have been enough to keep this from being an available feature here early on, surely several of the containers can be offered in a shared hosting environment. There are several other providers out there that offer Tomcat and JBoss in shared hosting, virtual hosting (virtual machine), and dedicated. I don't buy that there is a valid reason, besides DH not feeling there is the market within their existing or potential customer base, or cost of an architectual redesign of DH due to incompatibility in current hosting architecture. Still would be nice to see as an option to have a webcontainer available, even if through proxy of the normal web servers. I just don't see why this isn't feasible technically.
User Post (2005-04-04 13:15:16 by jstrayer)
How to setup Tomcat for virtual servers.
4. Configuring Virtual Hosts

The Host element normally needs modification only when you are setting up virtual hosts. Virtual hosting is a mechanism whereby one web server process can serve multiple domain names, giving each domain the appearance of having its own server. In fact, the majority of small business web sites are implemented as virtual hosts, due to the expense of connecting a computer directly to the Internet with sufficient bandwidth to provide reasonable response times and the stability of a permanent IP address.

Name-based virtual hosting is created on any web server by establishing an aliased IP address in the Domain Name Service (DNS) data and telling the web server to map all requests destined for the aliased address to a particular directory of web pages. Since this article is about Tomcat, we don't try to show all of the ways to set up DNS data on various operating systems. If you need help with this, please refer to DNS and Bind, by Paul Albitz and Cricket Liu (O'Reilly). For demonstration purposes, I'll use a static hosts file, since that's the easiest way to set up aliases for testing purposes.

To use virtual hosts in Tomcat, you just need to set up the DNS or hosts data for the host. For testing, making an IP alias for localhost is sufficient. You then need to add a few lines to the server.xml configuration file:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"/>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" scheme="https" secure="true"/>
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" />
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- This Host is the default Host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="ROOT" debug="0"/>
<Context path="/orders" docBase="/home/ian/orders" debug="0"
reloadable="true" crossContext="true">

<!-- This Host is the first "Virtual Host": www.example.com -->
<Host name="www.example.com" appBase="/home/example/webapp">
<Context path="" docBase="."/>


Tomcat's server.xml file, as distributed, contains only one virtual host, but it is easy to add support for additional virtual hosts. The simplified version of the server.xml file in the previous example shows in bold the overall additional structure needed to add one virtual host. Each Host element must have one or more Context elements within it; one of these must be the default Context for this host, which is specified by having its relative path set to the empty string (for example, path="").
User Post (2004-04-05 17:58:20 by tsakach)
Here is a guide from apache on tomcat virtual hosting:

It will take some effort incorporate tomcat virtual hosting into the dreamhost console management application, and other issues may still exist with port numbers and such.

It would also be intriging to provide JBoss hosting and allow one to deploy ejb on the service.

Meanwhile, I will stick with perl/php/mysql for this service...
User Post (2004-02-21 23:25:17 by gurion)
UGH, I have to switch hosts. Does anyone know of a decent cost-efftective alternative to dreamhost that runs Tomcat.
User Post (2003-12-09 10:08:42 by geomi)
there is also enhyrdra:

User Post (2003-09-16 11:31:01 by dylancarlson)
Have you evaluated Tomcat 4.x or higher? <br />
<br />
Here is a guide on virtual hosting Tomcat 4.x:<br />http://www.galatea.com/flashguides/virtual-hosting-tomcat.xml<br /><br /> Also, there are other engines (JBoss, Orion, Resin) that might be applied as well.