Bug #4716
closedMetacat should run against Tomcat 6
0%
Description
Matt sent:
Here are the two main issues I encountered in getting Metacat to run under tomcat6.
1) servlet-api.jar moved locations, so I needed to change build.xml. It would have been better to change it so that it could find the file in either the tomcat5 location or the tomcat6 location, but I just changed the path in place to allow compilation to continue.
hail:~/development/metacat jones$ svn diff build.xml
Index: build.xml
===================================================================
--- build.xml (revision 5204)
+++ build.xml (working copy)@ -48,7 +48,7
@
<target name="config">
<property name="jsdk"
- value="${build.tomcat.dir}/common/lib/servlet-api.jar" />
+ value="${build.tomcat.dir}/lib/servlet-api.jar" />
<!-- usr for client testing, generally you don't need change-->
<property name="mcuser"
value="uid=kepler,o=unaffiliated,dc=ecoinformatics,dc=org" />
2) Metacat was not allowed permission to log under tomcat6, so I had to add a new policy file to enable it:
grant codeBase "file:${catalina.base}/webapps/knb/-" {
permission java.security.AllPermission;
};
I added that as a file (/etc/tomcat6/policy.d/51metacat.policy) where tomcat would load it. I probably should have granted a more limited set of permissions, but there were a bunch of errors related to logging so I decided to just open up the metacat code.
Other than that things seemed to work. I haven't run the unit tests on it in this configuration.
Related issues
Updated by Michael Daigle almost 15 years ago
Built Metacat using Tomcat 5 servlet-api, deployed in Tomcat 6 and ran full unit tests successfully.