Doing Semantic Web Development on Mac? I was asked to install this bunch of software (Tomcat/Axis/Juddi) on my machine in preparation for a course on "Intelligent Internet Applications". I spent quite a time doing this on my G4 ibook and I must say: It's  just plain old installation hell :-) This should be available as a package like XAMPP for LAMP/WAMP Systems. Quite the opposite is true: some of the tutorials are outdated or inconsistent. But this is Open Source, so anyone should step up and provide tutorials.


Thus, here is what I did in order to set this stuff up. Some of this I only accomplished by googling on different mailing lists, so I hope I am saving someone time by posting this.

Most of this tutorial might also work on other operating systems since it is all Java and hence cross-platform, but I didn't bother checking. Also, it might be outdated in a few month, one never knows, but now it's up to date (for instance, the Tomcat configuration chenged recently, which caused me trouble).

  
Tomcat
  1. download latest Tomcat from http://tomcat.apache.org
  2. unzip it
  3. rename the directory to "Tomcat" (this just makes it nicer to handle)
  4. move it to the /Library directory
  5. start Tomcat with /Library/Tomcat/bin/startup.sh (the shutdown script is called shutdown.sh)
  6. browse to http://localhost:8080 to see if its running

I will from now on refer to /Library/Tomcat as my $TOMCAT_HOME. By the way, I read (but can't confirm) that it helps in this process to have the system variable $JAVA_HOME set to the bin-directory containing your java/javac executables.


Axis

  1. download axis-bin-X_X.zip from http://people.apache.org/dist/axis/nightly/
  2. unzip it
  3. copy the axis-X_X/webapps/axis directory to $TOMCAT_HOME/webapps
  4. Restart Tomcat
  5. browse to http://localhost:8080/axis/ to see if it works
  6. browse to http://localhost:8080/axis/happyaxis.jsp to check if needed components are found. (I lacked the Java Beans Activation Framework from http://java.sun.com/products/javabeans/jaf/downloads/index.html. Unzip the archive and copy the activation.jar to $TOMCAT_HOME/lib. Restart Tomcat.)

MySQL

I will be rather short here. MySQL can easily be installed and/or there are a lot of tutorials to be found via Google. On OSX, I had previously used MacPorts to install it for me.


Juddi

  1. download juddi-0.9rc4.tar.gz (or latest) from http://ws.apache.org/juddi/releases.html
  2. unpack it
  3. copy juddi-0.9rc4/webapp/juddi/ to $TOMCAT_HOME/webapps
  4. in juddi-0.9rc4/sql/mysql/ you find scripts to set up the database (create_database.sql) and insert publishers (insert_publishers.sql). Execute the contents on your MySQL client. The latter one contains only commented template code for you to insert publishers you want (maybe only important for later).
  5. get the JDBC connector library here: http://dev.mysql.com/downloads/connector/j/5.0.html, unzip it and copy the jar-file you find in it to $TOMCAT_HOME/lib
  6. edit $TOMCAT_HOME/conf/server.xml, add to element "host":

    <Context path="/juddi" docBase="juddi" debug="5" reloadable="true"
      crossContext="true">
      <Logger className="org.apache.catalina.logger.FileLogger"
                   prefix="localhost_juddiDB_log" suffix=".txt"
                   timestamp="true"/>
      <Resource name="jdbc/juddiDB" auth="Container"
                   type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000"
                   username="root" password=""
                   driverClassName="com.mysql.jdbc.Driver"
                   url="jdbc:mysql://localhost:3306/juddi?autoReconnect=true" />
    </Context>

    Note that I used the MySQL root user here. You might want to use this in a productive environment and then, of course, you choose some other user/password combination!
  7. restart Tomcat
  8. browse to http://localhost:8080/juddi/happyjuddi.jsp to see if juddi is happy
     
 
follow comments per RSS     
  on13 Sep 2007 - 1:50 fromKathrin
Thank you very much - it finally works! Even on Vista... I also had the impression that the system variable $JAVA_HOME was quite usefull.
[link]
  on02 Dec 2007 - 6:05 fromDavid Angel
I love you. I had to setenv JAVA_HOME /Library/Java/Home/ I also found I was creating a problem for myself by accidently copying "axis_dir/" instead of "axis_dir" to the webapps dir. Anyway, it finally works! Cheers
[link]
  on17 Feb 2008 - 21:37 fromSyntaxius

BIG THX!

Saved my lot of time!

 

[link]
  on29 Oct 2008 - 9:19 fromTrish wwwhttp://savvybabel.com/babel
Thanks for putting this up. You Rock!
[link]
  on05 Nov 2008 - 17:24 fromCard Tricks wwwhttp://www.learncards.net
Thank you! all i was struggling with was not knowing that i should've downloaded the MySql connector jar. this article concluded an entire day of googling! thank you!
[link]
  on30 Dec 2008 - 0:19 fromMurugan
Thank You. Great. Finally after a long struggle. I'm through. You are simply great.
[link]
  on17 Mar 2009 - 19:39 fromAlexander

This is a great, concise description of the installation steps I followed too... I wish I'd found this site earlier! It seems there area a few changes for the latest jUDDI release (rc6). First of all I didn't need to run the database creation script manually, but I needed to edit juddi.properties to point to the correct script (which I found by navigating the juddi jar file). I still needed ot insert a publisher manually. Also the axis installation didn't seem to help, I still had, according to the juddi happiness page, missing libraries for:

javax.xml.rpc.Service

org.apache.commons.discovery.Resource

and

org.apache.axis.transport.http.AxisServlet

I copied all files from teh axis/WEB-INF/lib folder into the juddi/WEB-INF/lib folder and juddi seems happy now.

Anyway, I hope this helps anyone else sturggling with this stuff... now if I could only get the juddi client code to work...

[link]
  on10 Feb 2011 - 15:19 fromchainer (martin)

Hello, I usualy don't leave comments when I find info which I was looking for, but this little tutorial was very very useful. I wanna give author a big thanks for this tutorial. I was searching and trying various combinations instals/versions of tomcat/juddy/etc.. for 2 days. And this one tutorial made everything I needed in up to 10mins. (using Windows Visa Enterprise SP2)

Thank you again and good luck!

Martin

[link]
  on11 Jun 2011 - 17:49 frommisu wwwhttp://asd

The article is great but you fucked it up at msql instalation!

 

Thanks!

[link]
Preview
You are seeing a selection of all entries on this page. See all there are.