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/startup.sh
$ my-own-tomcat6/bin/shutdown.sh

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 !

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


  1. 1 kk Monday, 1 September 2008 at 8:39 pm

    Sounds great! Writing init scripts for tomcat6 was already getting a bit tiresome. :)

  2. 2 Onkar Tuesday, 2 September 2008 at 6:37 am

    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. 3 Marc Johnen Wednesday, 5 November 2008 at 2:29 pm

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

  4. 4 John Wednesday, 11 March 2009 at 12:33 am

    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. 5 HJ Tuesday, 22 September 2009 at 2:19 am

    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


Leave a Reply




The Ubuntu Server Team

RSS Dustin Kirkland’s Ubuntu Server posts

  • Results of the Ubuntu Virtualization Survey
    A big thanks to everyone that participated in the Ubuntu Virtualization Survey. I am pleased to share the results with you now.ResultsAnswersI will provide a few of my own observations, but we are very interested in your own conclusions!There were a total of 354 responses -- excellent feedback!Nearly 2/3 of all responders use virtualization on Ubuntu every d […]
  • Introducing Testdrive!
    I'm pleased to introduce a new package I have created for Ubuntu called testdrive!Testdrive makes it simple to run any Ubuntu release in a virtual machine, safely, and without affecting your current Ubuntu installation.This is a great way to "try out" the Ubuntu release beyond your current version, before upgrading. For example, if you're […]
  • Ubuntu 9.10 Byobu and OpenWeek Session
    I thought I would provide a brief set of highlights about Byobu accomplishments during the Karmic development cycle, now that we have released Ubuntu 9.10. Also, I'd like to promote my Ubuntu Open Week Presentation on Byobu, which is scheduled for 18:00 UTC, tomorrow, Tuesday November 3, 2009. It will included a live demonstration, in Amazon EC2. Be pre […]

RSS Kees Cook’s Ubuntu Server posts

  • karmic and log rotation
    In Ubuntu’s Karmic and and Debian’s Lenny, sysklogd was replaced with rsyslog. This is fine, since rsyslog will have converted your /etc/syslog.conf to /etc/rsyslog.d/50-default.conf. However, if you modified the (maddeningly strange sysklogd-specific) log file rotation in /etc/cron.daily/sysklogd or /etc/cron.weekly/sysklogd, you’ll want t […]
  • TPM as RNG
    I was reminded about some TPM coding I’d done to get random bytes from the pRNG on my TPM-enabled system from Matt Domsch’s recent post. I’m not fully convinced that the pRNG of the TPM is an appropriate source of entropy, but it does pass my simple FIPS-140-2 test. I had to find the Intel TPM docs to figure out how to enable TPM on my syst […]
  • uninstall sun-java6
    With the vrms meme raging on Planet Ubuntu, I noticed some people still have sun-java6 installed. I’ve been using openjdk-6 since Hardy, and everything I use works fine with it (e.g. Vuze, Catan, Eclipse, FreeMind, and even Facebook’s photo uploader thing). Given the Ubuntu Tech Board’s “remove sun-java6 from the archive” Agenda […]

RSS Mathias Gug’s Ubuntu Server posts

  • Sep 20 – Sep 25 Wrap-up
    Spent most of my week in Portland to attend conferences. Conferences Attended LDAPCon 2009 and published report. Attended LinuxCon 2009. Image Store Proxy Updated image-store-proxy to 1.0. This version brings support for gpg signed images. Still need testing against the real-world Canonical Image Store infrastructure.
  • A summary of LDAPCon 2009
    On Sunday, September 20th and Monday, September 21st I attended LDAPCon 2009 in Portland, OR. Most of the open source projects were there – with the notable absence of Port 389 (Redhat) – as well as some vendors (Apple and UnboundID). Most of the slides are available online. Apache Directory project The Apache Directory folks gave several present […]
  • Sep 11 – Sep 18 Wrap-up
    Image-store-proxy Package image-store-proxy to enable the Image Store tab in Eucalyptus. The package (python-image-store-proxy) has made its way to main and on the -server isos in time for alpha6 with the help of Thierry and Kees. Server-karmic-directory-enabled-user-login Kept on investigating the use of puppet to build an ldap/krb5 infrastructure on EC2. I […]

RSS Thierry Carrez’s Ubuntu Server posts

  • UDS Lucid
    This week, Dallas hosts the Ubuntu Developer Summit for the Lucid Lynx release. This is the key moment where we define what will be done for Ubuntu 10.04 LTS, and discuss how it will be done. There will be plenty of interesting sessions in all the tracks, and sometimes I wish I could attend two sessions at the same time. In the server track, Monday will have […]
  • Run your own Ubuntu Enterprise Cloud, part 3
    In part 1 and part 2 of this series, we saw how to set up a minimal cloud infrastructure and bundle a basic image (and test it). In this final article, we’ll play with our cloud from an end-user perspective. Setting up the web UI First of all, before accepting end users, as the administrator of the cloud you will have to setup a few things on the web U […]
  • Run your own Ubuntu Enterprise Cloud, part 2
    In part 1 of this series, we saw how to install the cloud infrastructure. In this article, we’ll bundle and upload an EMI (Eucalyptus Machine Image), based on Ubuntu Server 9.10 Beta, and validate that we can run an instance of it. Download required elements Go to the cloud/cluster controller and download the required items. For a 64-bit image: $ URL= […]

RSS Jamie Strandboge’s Ubuntu Server Posts

RSS Soren Hansen’s Ubuntu Server Posts

  • An error has occurred; the feed is probably down. Try again later.

 

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930