Project

General

Profile

Actions

Bug #4716

closed

Metacat should run against Tomcat 6

Added by Michael Daigle about 14 years ago. Updated about 14 years ago.

Status:
Resolved
Priority:
Normal
Category:
metacat
Target version:
Start date:
02/01/2010
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4716

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

Is duplicate of Metacat - Bug #3378: Test turnkey installation against Tomcat 6ResolvedMichael Daigle06/09/2008

Actions
Actions #1

Updated by Michael Daigle about 14 years ago

Built Metacat using Tomcat 5 servlet-api, deployed in Tomcat 6 and ran full unit tests successfully.

Actions #3

Updated by Redmine Admin almost 11 years ago

Original Bugzilla ID was 4716

Actions

Also available in: Atom PDF