Re: Tomcat Deploy Error
Re: Tomcat Deploy Error
- Subject: Re: Tomcat Deploy Error
- From: Mike Schrag <email@hidden>
- Date: Fri, 21 Jan 2011 18:25:21 -0500
yuck ... so this is the static block of NSProperties in the 5.4 wonder branch, which is looking up some primordial properties.
you can probably work around this by adding the following entries to the "grant { .. }" section of your conf/catalina.policy file:
permission java.util.PropertyPermission "NSProperties.className", "read";
permission java.util.PropertyPermission "NSProperties.cacheEnabled", "read";
permission java.util.PropertyPermission "NSProperties.useLoadtimeAppSpecifics", "read";
ms
On Jan 21, 2011, at 6:17 PM, ed despard wrote:
> I'm trying to deploy my first WO app on tomcat on linux. Using the directions found here: http://wiki.objectstyle.org/confluence/display/WONDER/Servlet+Deployment+Setup I am able to build my war files, but why I try to start up the app, I get the following exception. Any advice? Any good tutorials on how to make all of this work?
>
> Ed Despard
>
> SEVERE: Servlet /OA threw load() exception
> java.security.AccessControlException: access denied (java.util.PropertyPermission NSProperties.className read)
> at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
> at java.security.AccessController.checkPermission(AccessController.java:553)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
> at java.lang.System.getProperty(System.java:669)
> at com.webobjects.foundation.NSProperties.<clinit>(NSProperties.java:142)
> at com.webobjects.eocontrol.EOEventCenter.<clinit>(EOEventCenter.java:105)
> at com.webobjects.eoaccess.EODatabaseContext.<clinit>(EODatabaseContext.java:952)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:186)
> at com.webobjects.eoaccess._EOPrivate.<clinit>(_EOPrivate.java:25)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:186)
> at com.webobjects.eoaccess.EOModelGroup.<clinit>(EOModelGroup.java:176)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:186)
> at com.webobjects.appserver.WOApplication.<clinit>(WOApplication.java:350)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at er.extensions.jspservlet.ERXServletAdaptor.invokeApplicationSetupMethod(ERXServletAdaptor.java:54)
> at er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.java:65)
> at javax.servlet.GenericServlet.init(GenericServlet.java:212)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
> at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
> at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1166)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
> at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4367)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
> at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:882)
> at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:735)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1201)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden