wood burning stoves
The moose likes Tomcat and the fly likes AccessControlException while starting the Tomcat4 Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "AccessControlException while starting the Tomcat4 Server " Watch "AccessControlException while starting the Tomcat4 Server " New topic

AccessControlException while starting the Tomcat4 Server

Basil Kurian

Joined: Jul 13, 2011
Posts: 2

While starting the Tomcat4 server AccessControlException is coming

java.security.AccessControlException: access denied (java.util.PropertyPermission catalina.home read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1276)
at java.lang.System.getProperty(System.java:573)

I am running the Tomcat as a windows service.

Installed the service by executing a batch file with below options.

tomcat.exe -install Tomcat C:\j2sdk1.4.2_02\jre\bin\server\jvm.dll -jvm_option -Djava.class.path="c:\Program Files\tomcat\bin\bootstrap.jar" -jvm_option -Dcatalina.home="c:\Program Files\tomcat" -jvm_option -Djava.security.auth.login.config="c:\Program Files\tomcat\conf\jaas.config" -jvm_option -Djava.security.manager -jvm_option -java.security.policy="c:\Program Files\tomcat\conf\catalina.policy" -jvm_option -java.endorsed.dirs="c:\j2sdk1.4.2_02\jre\lib\endorsed" -jvm_option -Xms1024M -jvm_option -Xmx1024M -jvm_option -Duser.dir="F:\build2\webcontent\sso" -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out f:\logs\tomcat\service.out -err f:\logs\tomcat\service.err

Is there any issues in the properties set in the service..? Please help
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: AccessControlException while starting the Tomcat4 Server
It's not a secret anymore!