Nathan Anderson wrote:
As I recall, you really only
have 2 choices: disable the Java security, or build a java security
policy for your app. I have never done the work of building a security
policy, but my understanding is that you basically need to run the app,
see what fails and add a policy to fix that problem and repeat. Chances
are if you fixed this problem with Commons Logging, it will fail on
something else further down the startup chain.
http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html may
be helpful as well; see the last section: Troubleshooting.
Are you sure you would run in to this issue at all when deploying in
your ISP's Tomcat? Could it be just an overly restrictive policy in your
own Tomcat instance?
Look at your stack traces: two different proximate causes, same ultimate
cause in both cases: some log factory property cannot be read,
presumably because some java.util.PropertyPermission in the policy is
set too strict.
1. Top of strack trace:
On Wed, Feb 11, 2009 at 9:26 AM, Waldo Rochow <[email protected]
<mailto:[email protected]>> wrote:
11-Feb-2009 11:18:25 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
org.springframework.web.context.request.RequestContextListener
java.lang.ExceptionInInitializerError
at
org.springframework.web.context.request.RequestContextListener.<init>(RequestContextListener.java:55)
but the ultimate cause is further down:
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.commons.logging.LogFactory.HashtableImpl read)
2. Top of other stack trace, showing an apparently different error:
>> >> Feb 9, 2009 8:46:59 AM
org.apache.catalina.core.StandardContext
>> >> listenerStart
>> >> SEVERE: Error configuring application listener of class
>> >> com.opensymphony.clickstream.ClickstreamListener
>> >> java.lang.ExceptionInInitializerError
>> >> at
>> >>
>> >>
com.opensymphony.clickstream.ClickstreamListener.<clinit>(ClickstreamListener.java:24)
however, as before the ultimate cause is:
>> >> Caused by: java.security.AccessControlException:
access denied
>> >> (java.util.PropertyPermission
>> >> org.apache.commons.logging.LogFactory.HashtableImpl read)
Hope this helps,
Ger-Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]