Hi,

The default installation of Tomcat5.5 on Debian has the Java Security
Manager enabled - however it won't have any (appropriate) policies
defined.

As such, it is disallowing the ConfigurationManager from reading the
system property "dspace.configuration".

You either need to disable the security manager, or specify a policy to
allow access.

Disable security manager:

edit /etc/init.d/tomcat5.5 and set "TOMCAT5_SECURITY" to "NO".


Adding a policy should be something like:

create /etc/tomcat5.5/policy.d/05dspace.policy with the contents:

grant codebase "file:${catalina.home}/webapps/dspace/-" {
   permission java.security.AllPermission;
};


This was taken from:
http://forums.pentaho.org/showthread.php?p=157283

Someone will probably shout if it's wrong!

G

-- 
Graham Triggs
Technical Architect
Open Repository

Tel:   +44 (0)20 7631 9942
Skype: grahamtriggs


On Tue, 2007-04-03 at 14:11 -0400, Joel Gwynn wrote:
> Hi all.  Just dropping in for some quick install/config help.
> 
> I've installed dspace 1.4.1 with Tomcat 5 on Ubuntu Linux.  I think
> I'm about to be up and running, but when I fire up
> http://localhost:8180/dspace (debian runs tomcat on 8180) I get these
> errors:
> 
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission dspace.configuration read)
>         
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
>         
> java.security.AccessController.checkPermission(AccessController.java:427)
>         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>         
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
> 
> etc.  I assume that I'm missing something with permissions.  In my
> tomcat /etc/init.d/tomcat5 I set tomcat to run as the dspace user like
> so:
> 
> TOMCAT5_USER=dspace
> 
> Is there something else I need to do?
> 
> TIA
> Joel
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech 
 
 
This e-mail is confidential and should not be used by anyone who is not the 
original intended recipient. BioMed Central Limited does not accept liability 
for any statements made which are clearly the sender's own and not expressly 
made on behalf of BioMed Central Limited. No contracts may be concluded on 
behalf of BioMed Central Limited by means of e-mail communication. BioMed 
Central Limited Registered in England and Wales with registered number 3680030 
Registered Office Middlesex House, 34-42 Cleveland Street, London W1T 4LB

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to