You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antony Bowesman <ad...@teamware.com> on 2001/05/16 14:19:58 UTC
AccessControlExceptions
Hi,
I get an AccessControlException when running secure tomcat. The
relevant part of the log shows
---------------------
java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access denied
(java.util.PropertyPermission line.separator read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
---------------------
However, the default tomcat.policy says
// Example webapp policy
// By default Tomcat grants read access on webapp dir and read of the
// line.separator, path.separator, and file.separator
PropertyPermissions.
// Any permissions you grant here are in addition to the default.
grant codeBase "file:${tomcat.home}/webapps/examples" {
// Allow the example web application to read all java properties
permission java.util.PropertyPermission "*", "read";
};
but this exception says it cannot read line.separator. If I try the num
guess example it fails with this exception.
Running tomcat 3.2.2b4
Anyone managed to get this working?
Rgds
Antony
--
Antony Bowesman
Teamware Group
adb@teamware.com
tel: +358 9 5128 2562
fax: +358 9 5128 2705
Tomcat 3.2.1 + Apache 1.3.19 + Win2k
Posted by David La Motta <dl...@runbox.com>.
I am going nuts over this and I don't know what to do. Hopefully somebody
can give me a hand.
I am trying to install Tomcat 3.2.1 with Apache 1.3.19 on Win2k as a type-2
server. However, I can't get past even launching a type-1 with the startup
script. The exception I get is included at the end of this message.
Also, if anybody knows of a web site with detailed instructions on how to
setup Tomcat with Apache (please don't point me to the Tomcat docs cuz I've
read them already) I would appreciated it a lot!
Thanks for your help.
// David
<<snip>>
Including all jars in d:\web\tomcat\lib in your CLASSPATH.
Using CLASSPATH:
d:\web\tomcat\classes;d:\web\tomcat\lib\ant.jar;d:\web\tomcat\lib\jasper.jar
;d:\web
\tomcat\lib\jaxp.jar;d:\web\tomcat\lib\parser.jar;d:\web\tomcat\lib\servlet.
jar;d:\web\tomcat\lib\we
bserver.jar;"d:\ide\jbuilder4\jdk1.3\jre\lib\ext\QTJava.zip";d:\java\jdk1.3.
0_02\lib\tools.jar
Starting Tomcat in new window
2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /examples )
2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-05-16 08:28:26 - ContextManager: Adding context Ctx( )
2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /test )
FATAL:java.net.SocketException: network subsystem has failed: listen failed
java.net.SocketException: network subsystem has failed: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:416)
at java.net.ServerSocket.<init>(ServerSocket.java:174)
at java.net.ServerSocket.<init>(ServerSocket.java:124)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.
java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
<</snip>>