aspose file tools*
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
Author

AccessControlException while starting the Tomcat4 Server

Basil Kurian
Greenhorn

Joined: Jul 13, 2011
Posts: 2
Hi,

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 agree. Here's the link: http://aspose.com/file-tools
 
subject: AccessControlException while starting the Tomcat4 Server