My Web Services Installation

As part of a research project I have gotten to finally play with web services again. For which I have to use the following:

The instructions bellow are to install on Ubuntu 9.04, yes I still need to upgrade to Karmic but that is for another day.

Step 1: Install Java (Optional)

Cannot really remember how I installed OpenJDK, but if I remember its just:

$ sudo apt-get install openjdk-6-jre openjdk-6-jdk

Step 2: Tomcat 6

To install Tomcat 6:

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


Generated using GeSHi

<role rolename=“manager”/>
<role rolename=“admin”/>
<user username=“admin” password=“helloworld” roles=“manager,admin”/>

To you your /etc/tomcat/tomcat-users.xml file and voila that is tomcat up and running and accessible from http://localhost:8080 . If not you may need to do:

$ sudo /etc/init.d/tomcat start

Step 3: Metro 2.0

Obtain Metro 2.0 from here and move the webservices-*.jar files into /usr/share/tomcat6/lib/ . You may also want to add both webservices-api.jar and jsr173_api.jar to /usr/lib/jvm/default-java/jre/lib/endorsed . This will ensure that the default jvm, utilises the latest api and thus is in the default classpath. If not ensure that you classpath at least includes the jars placed in /usr/share/tomcat6/lib/ earlier.

Note: Metro 2.0 does contain a Tomcat6 installer but, I haven’t used it as my steps were developed before it came out.

References Used



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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: