tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Thomas" <danie...@ntlworld.com>
Subject problem with SSL
Date Tue, 05 Feb 2002 20:50:41 GMT
Sorry if you have just recieved this, I am new!!

help,

I have been trying to set up the security option of tomcat but I can't work
out what is going wrong here. I have set it up exactly how it says in the
docs, but I seem to be having a problem with my policy. I have included the
command line args,the stack trace and the policy below. Has anybody got any
ideas, am I seting up the policy right.

%JAVA_HOME%\bin\java
%TOMCAT_OPTS% -Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%
/conf/tomcat.policy" -Dtomcat.home="%TOMCAT_HOME%"
org.apache.tomcat.startup.Tomcat %3 %4 %5 %6 %7 %8 %9

java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:
399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
        at java.io.File.isDirectory(File.java:564)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
        at org.gjt.bugrat.servlet.BugRatLogin.init(BugRatLogin.java:35)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatLogin
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:
399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
        at java.io.File.isDirectory(File.java:564)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
        at org.gjt.bugrat.servlet.BugRatAdmin.init(BugRatAdmin.java:72)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatAdmin
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:
399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
        at java.io.File.isDirectory(File.java:564)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
        at org.gjt.bugrat.servlet.BugRatReport.init(BugRatReport.java:71)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatReport
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\bugrat\WEB-INF\classes read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:
399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
        at java.io.File.isDirectory(File.java:564)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at
org.gjt.bugrat.servlet.BugRatServlet.init(BugRatServlet.java:5266)
        at org.gjt.bugrat.servlet.BugRatViewer.init(BugRatViewer.java:32)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: BugRatViewer
java.security.AccessControlException: access denied (java.io.FilePermission
C:\t
omcat\webapps\project\WEB-INF\classes read)
        at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:272)
        at
java.security.AccessController.checkPermission(AccessController.java:
399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
        at java.io.File.isDirectory(File.java:564)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassL
oader.java:481)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at
org.apache.struts.action.ActionServlet.<init>(ActionServlet.java:247)

        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java
:268)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: action
2002-02-05 06:13:19 - PoolTcpConnector: Starting HttpConnectionHandler on
8443
2002-02-05 06:13:19 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8083

policy:/* AUTOMATICALLY GENERATED ON Tue Feb 05 14:38:50 GMT+00:00 2002*/
/* DO NOT EDIT */

grant codeBase "file:${java.home}/../lib/-" {
  permission java.security.AllPermission;
};

grant codeBase "file:${tomcat.home}/lib/-" {
  permission java.security.AllPermission;
};

grant codeBase "file:${tomcat.home}/classes/-" {
  permission java.security.AllPermission;
};

grant codeBase "file:${tomcat.home}/webapps/examples" {
  permission java.net.SocketPermission "localhost:1024-", "listen";
  permission java.util.PropertyPermission "*", "read";
};

grant codeBase "file:${tomcat.home}/webapps/bugrat" {
  /*permission java.io.FilePermission
"c:\tomcat\webapps\bugrat\WEB-INF\classes", "read";*/
  permission java.security.AllPermission;
};
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message