Tomcat6 and the Play!framework on Ubuntu (for newbie!)

Playframework-logo

I have just installed a brand new Ubuntu 10.10 on my laptop, and one of my first need was to deploy a Playframework java application.

So I need a Tomcat 6 instance for « Java Runable » purpose.

Tomcat installation
So, just read this guide: ubuntu-fr tomcat installation and click this « click-to-install » link: tomcat6,tomcat6-admin,tomcat6-example. If the APT protocol is not installed on your ubuntu linux, just try :

frederic@nostromo6:~$ sudo apt-get install tomcat6,
                      tomcat6-admin,tomcat6-examples

if you try to access the http://localhost:8080/

you will must obtain the following page :
Capture-apache_tomcat_-_chromium-1
figure 1 -Tomcat 6 is now installe dand ready to use.
User Tomcat path
To be able to isolate your own work from the Tomcat server instance, you have to install with the following link apt://tomcat6-user  the  « by-user-instance » oriented package for Apache Tomcat server.

If not PAT protocole is installed, just use  the good old command line:

frederic@nostromo6:~$ sudo apt-get install tomcat6-user

Then in your prefered shell command terminal, execute the following command:

frederic@nostromo6:~$ tomcat6-instance-create ~/tools/tomcat6
                      -p 8088 -w 8008

Then you are able to start  this Tomcat 6 instance with a 

~/tools/tomcat6/bin/startup.sh

To start your own tomcat on port 8088. (note: the control port will be 8008).

To ask tomcat server to stop, send a « SHUTDOWN » ASCII string to port 8008.

Conclusion
Yes, Tomcat 6 is now installed on your computer. you are ready to deploy your Play! Framework based application:

play war myplayapp -o myplayapp.war

Just copy the produced myplayapp.war to the [tomcat_server_path]/webapps/ directory, Tomcat cat will auto deploy the war and you will just have to open your stared browser to http://localhost:8080/myplayapp/.
 

Capture-your_application_is_ready__-_chromium
figure 2 – Your first empty Play!framework application deployed on Tomcat

Job done !
Have good time with the fabulous Play!framework.
to be continued…
Publicités

Un commentaire sur “Tomcat6 and the Play!framework on Ubuntu (for newbie!)

Ajouter un commentaire

  1. apt protocole is not authorized on posterous platform… you will need to understand "tomcat6,tomcat6-admin,tomcat6-example" as "apt://tomcat6,tomcat6-admin,tomcat6-example" link, and the "apt://tomcat6-user" link ad the runnable link "apt://tomcat6-user".Have fun.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s

Propulsé par WordPress.com.

Retour en haut ↑

%d blogueurs aiment cette page :