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).
- download latest Tomcat from http://tomcat.apache.org
- unzip it
- rename the directory to "Tomcat" (this just makes it nicer to handle)
- move it to the /Library directory
- start Tomcat with /Library/Tomcat/bin/startup.sh (the shutdown script is called shutdown.sh)
- 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.
- download axis-bin-X_X.zip from http://people.apache.org/dist/axis/nightly/
- unzip it
- copy the axis-X_X/webapps/axis directory to $TOMCAT_HOME/webapps
- Restart Tomcat
- browse to http://localhost:8080/axis/ to see if it works
- 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.)
- download juddi-0.9rc4.tar.gz (or latest) from http://ws.apache.org/juddi/releases.html
- unpack it
- copy juddi-0.9rc4/webapp/juddi/ to $TOMCAT_HOME/webapps
- 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).
- 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
- edit $TOMCAT_HOME/conf/server.xml, add to element "host":
<Context path="/juddi" docBase="juddi" debug="5" reloadable="true"
<Resource name="jdbc/juddiDB" auth="Container"
type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000"
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!
- restart Tomcat
- browse to http://localhost:8080/juddi/happyjuddi.jsp to see if juddi is happy