-- AntoonGoderis - 03 Apr 2006
One way to install the 'Repository' module from Taverna CVS
Pre-setup:
Installed Apache Tomcat Web server 5.0.27
Taverna client 1.3.1
Instructions:
Copy all files from the Taverna CVS Repository module to a local 'Repository' directory
Edit the build.xml file to remove all references to jUnit. See the example build.xml
Copy all files in the Taverna client's 'lib' directory to the 'netlib' in 'Repository'
Remove all duplicate jars from 'netlib' which are already in 'lib' and 'devlib'
Execute 'build.bat'
Execute 'ant war'
Edit the resulting .war file with a tool like Power Archiver and remove the servlet-api-2.4-20040521.jar file (it ends up confusing Apache which uses a newer jar)
Deploy on your Apache server by copying war file into 'webapps' directory
Et voila, it should work
2 warnings I didn't get rid of, but which should be fine given that you've deleted servlet-api-2.4-20040521.jar:
java: [javac] Compiling 6 source files to C:\repository\build\classes [javac] C:\repository\build\src\net\sf\taverna\repository\server\DataServlet.java:63: warning: [deprecation] javax.servlet.http.HttpUtils in javax.servlet.http has been deprecated [javac] import javax.servlet.http.HttpUtils; [javac] ^
[javac] C:\repository\build\src\net\sf\taverna\repository\server\SubmitServlet.java:63: warning: [deprecation] javax.servlet.http.HttpUtils in javax.servlet.http has been deprecated [javac] import javax.servlet.http.HttpUtils; [javac] ^ [javac] 2 warnings
Note: When installing the module on a different Windows machine, Jasper complained it couldn't find the javac. Solution was to copy tools.jar from $JDK/lib to $Catalina/common/lib, after which the error went away.