Developer-friendly Tomcat 6.0 lands in Intrepid

Tomcat 6.0 will be available in Ubuntu 8.10 and you can enjoy Apache Tomcat 6.0.18 right now in the Intrepid Ibex development version. It has been packaged so that it can be used in two ways:

As a unique system-wide instance

This is the classic case of a Tomcat server that is started at boot by the init script and runs under the tomcat6 user. The tomcat6 package should be installed to cover such a scenario:

$ sudo apt-get install tomcat6

NB: This currently installs way too much dependencies, especially on a server install. Work is currently done to reduce that to an acceptable number.

Point a browser to the default start page at http://localhost:8080 to check that everything is alright and start deploying webapps.

Ready to be used webapps provided by Tomcat are also available from the archive:

$ sudo apt-get install tomcat6-examples tomcat6-docs tomcat6-admin

In developer-oriented private instances

The other use case is a development server where multiple developers can run their own Tomcat instances under their user account. The system administrator should install the tomcat6-user package:

$ sudo apt-get install tomcat6-user

Developers can then create private instances with a single command:

$ tomcat6-instance-create my-own-tomcat6

This will setup a private Tomcat 6.0 instance in a my-own-tomcat6/ directory using the system-installed libraries and binaries. Per-instance customization can be done in my-own-tomcat6/conf/server.xml (eg changing default ports to avoid conflicts). webapps are deployed in my-own-tomcat6/webapps/. Starting and stoping the server is done with the following commands:

$ my-own-tomcat6/bin/
$ my-own-tomcat6/bin/

This is still relatively new so testing and suggesting improvements through the Tomcat6 bugs page in Launchpad is welcome. Let’s all make tomcat6 rock in Intrepid !


6 Responses to “Developer-friendly Tomcat 6.0 lands in Intrepid”

  1. Sounds great! Writing init scripts for tomcat6 was already getting a bit tiresome. 🙂

  2. This is really something developer friendly. Even though I do not do much java development these days I will try to do some testing and report back.

  3. Used tomcat6-instance-create a couple of times.
    Like it and had no problems so far.

  4. How did I miss the tomcat6-user package? I’ve been doing my own little tomcat6-instance-create by hand for months. I’m off to give it a try now. Thanks!

  5. Hi, I am new to ubuntu,this post is great help. I have one more doubt where should i place my website JSP and java class files in the new created instance of tomcat6, so that i am able to see the website working. Pls help

  6. I know this is an old post but it shows up high on my google search for “tomcat admin tomcat6-instance-create”… so I’ll ask my question and hope to hear back..

    How can you use the tomcat6-admin with the private instance? Do I just need to drop in a webapp?

    Cheers – A

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: