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

  • Byobu Custom Status Notifications in 3 Easy Steps!
    Richard Johnson blogged a really cool hack for Byobu a couple of days ago. He created a custom script to retrieve his next appointment from his calendar and display it in Byobu's status bar. This is really cool ;-)Many Byobu users have asked me for this sort of functionality over the last year -- the ability to add custom status items to the lower bar. […]
  • Byobu Featured in Linux Identity Magazine
    I wrote an article on Byobu for the Ubuntu 9.10 issue of Linux Identity Magazine.The article is in full color, with lots of screenshots. If you're interested in Byobu, or generally in Ubuntu 9.10, I suggest you pick up a copy! There are several other interesting articles, and also comes with Ubuntu 9.10 DVDs.http://www.linuxidentity.com/us/index.php?nam […]
  • 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 […]

RSS Kees Cook’s Ubuntu Server posts

  • happy holidays 2009!
    Happy Holidays! Or, as my firewall reported this morning: Dec 25 04:39:18 firewall kernel: [1054241.000084] sd 2:0:0:0: [sda] ABORT operation started ... Dec 25 04:40:10 firewall kernel: [1054292.072173] raid1: sdb2: redirecting sector 3490144 to another mirror I guess I’m getting my firewall a new hard drive for Christmas. :)
  • install from official repositories only
    As quickly pointed out by Rick, don’t install random software that isn’t in the official distribution archive unless you really know what you’re doing (and copy/pasting commands from a website doesn’t count). You’re just asking to be made part of a botnet.
  • 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 […]

RSS Mathias Gug’s Ubuntu Server posts

  • RFC: Boot-time configuration syntax for UEC/EC2 images
    As part of the Boot-time configuration for UEC/EC2 images specification a configuration file can be passed to instances as user-data to customize some part of the instance without writing and maintaining custom scripts. The goal is to support most common operations done on instance boot as well as help to bootstrap the instance to be part of an existing conf […]
  • RFP: packages to promote to main and demote to universe for Lucid Lynx LTS
    The Ubuntu Server team is requesting feedback on the list of packages to be promoted to main and demoted to universe during this release cycle. Lucid being an LTS release we wanna make sure that packages in main are maintainable for 5 years.  Useful packages should be promoted to main while packages that provide duplicated functionalities or are not maintain […]
  • 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.

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

  • What Ubuntu Server *could* be
    I'm glad Thierry started this discussion. About six months ago when we were first beginning to talk about what to do in Jaunty, I sat down and wrote a bunch of notes that I meant to turn into a blog post, but it never made it farther than an e-mail to a few people, but now that we're sharing visions, I thought I'd post it. Disclaimer: These ar […]
  • gtk-vnc and virt-viewer mozilla plugins
    Another cool thing that's new in Jaunty that I've never gotten around to bloggin about is the fact that the virt-viewer and gtk-vnc packages in Ubuntu now provide mozilla-virt-viewer and mozilla-gtk-vnc, respectively. This means you can now put something like or this: in a web page and have access to virtual machines or other VNC servers directly i […]
  • Announcing Eucalyptus
    I'm very pleased to announce the availability of Eucalyptus in Ubuntu Jaunty Jackalope! From the package description: EUCALYPTUS is an open source service overlay that implements elastic computing using existing resources. The goal of EUCALYPTUS is to allow sites with existing clusters and server infrastructure to co-host an elastic computing service th […]

 

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