Sagewire Logo

Problem with Tomcat

2 Message(s) by 2 Author(s) originally posted in java setup


From: Tyler Eaves Date:   Tuesday, August 05, 2003
Hi - I'm trying to get tomcat working. I'm quite new to JAVA so I can not
get much out the following from catalina.out

Using CATALINA_BASE: /usr/share/tomcat4
Using CATALINA_HOME: /usr/share/tomcat4
Using CATALINA_TMPDIR: /usr/share/tomcat4/temp
Using JAVA_HOME: /usr/lib/j2se/1.4
Using Security Manager
Process ID of spawned JVM : 28349
Exception in thread "main" JAVA.security.Access ControlException: access denied (JAVA.util.PropertyPermission catalina.base read)
at JAVA.security.AccessControlContext.checkPermission(AccessControlContext.JAVA:270)
at JAVA.security.AccessController.checkPermission(AccessController.JAVA:401)
at JAVA.lang.SecurityManager.checkPermission(SecurityManager.JAVA:542)
at JAVA.lang.SecurityManager.checkPropertyAccess(SecurityManager.JAVA:1291)
at JAVA.lang.System.getProperty(System.JAVA:572)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.JAVA:120)

--
Visit my blog - http://blog.scalegen.com
Music, Programming, and More.

http://www.scalegen.com
Tyler's Scale Generator


From: Philip Shanks Date:   Monday, November 17, 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The JAVA Virtual Machine (JVM) is a sandbox environment, with an
internal security manager that maintains tight restrictions on threads
that attempt to access system resources external to the JVM (such as
file systems and network sockets, for example). In this case, the JVM
is reporting that a process (catalina.base) was attempting to read the
file system, but doesn't have permission to do so.

You did not mention what platform you are using, but the user account
that the JVM is run ning as may not have adequate permissions to read the
necessary files. Even if the JVM is running as "root" (from the looks of
it I'll assume UN*X), the JAVA security manager may not be allowing
the tomcat code base access to its own directories.

Perhaps you tried to launch tomcat using a non-root account? If you try
to run tomcat as a normal user, you pretty much have to install tomcat
in that user's home directory. And even so, there may be restrictions on
which port tomcat can bind to.

This link may have some helpful information for your situation:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.html

Good luck!

wrote in message:
| Hi - I'm trying to get tomcat working. I'm quite new to JAVA so I can not
| get much out the following from catalina.out
|
| Using CATALINA_BASE: /usr/share/tomcat4
| Using CATALINA_HOME: /usr/share/tomcat4
| Using CATALINA_TMPDIR: /usr/share/tomcat4/temp
| Using JAVA_HOME: /usr/lib/j2se/1.4
| Using Security Manager
| Process ID of spawned JVM: 28349
| Exception in thread "main" JAVA.security.AccessControlException:
access denied (JAVA.util.PropertyPermission catalina.base read)
| at
JAVA.security.AccessControlContext.checkPermission(AccessControlContext.JAVA:270)
| at
JAVA.security.AccessController.checkPermission(AccessController.JAVA:401)
| at
JAVA.lang.SecurityManager.checkPermission(SecurityManager.JAVA:542)
| at
JAVA.lang.SecurityManager.checkPropertyAccess(SecurityManager.JAVA:1291)
| at JAVA.lang.System.getProperty(System.JAVA:572)
| at org.apache.catalina.startup.Bootstrap.main(Bootstrap.JAVA:120)
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBP7hnEQU9/EwukGAhAQK1SQP/bhBU8XYTuOGFZewYmAMwNesqcvpnySZf
AAnnj2WrbadFxP00DF9E3IgdjIUcrReRu1/B+8NvptXb+dUP1bmPTSz1FEf8A3ry
wgj2uhYCzY3XL2m353NQ3ynRRixlzHrHgSu+wr1cCE/E/1P3dUxFWGD3lSswf8sA
MhcsuKHudRo=
=7Yg8
-----END PGP SIGNATURE-----



Next Message: urgent help needed - packages


Blogs related to Problem with Tomcat

Dev Shed Forums - Log4j and Tomcat problem
Date: August 21st, 2006 11:10 AM - stdunbar - Untitled Post: I'm not sure what is wrong as that is very similar to my configuration. I'd make sure that the user who runs Tomcat has permission to write to the log file. ...

path problem in tomcat
Summary: I got a problem with Tomcat. ... and using tomcat as container. ... My problem is if i start Tomcat in Eclipse, the default root path is ... And i need to debug the code under eclipse. ...

[jira] Created: (GERONIMO-2081) Concurrency problems in Daytrader ...
Concurrency problems in Daytrader or AMQ ... 1.1 Brian Noll found a bunch of ConcurrentModificationException problems when running daytrader PingServlet2MDBQueue ... processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net. ...

Problem with "resource /includes/js/scriptaculous/src/util.js not ...
What could be the problem when I get the following error in my tomcat log? INFO | jvm 2 | 2006/08/31 14:10:40 ... writeFile(ResourceStreamResolver.java:40) INFO | jvm 2 | 2006/08/31 14:10:40 | at com.atlassian.cache.servlet.resolver. ...

Tomcat virtual hosts, single-sign on, and Axis2 generated code
After all, some of the introductory articles on Tomcat configuration and ... server instance is a pretty well-understood problem, and is just a matter ... Java web applications, the server of choice is Tomcat, and Tomcat's way of ...

Finding out what ports are being used on your machine
Although I changed the port used to show the web stuff I hadn't changed the port used to shutdown Tomcat and this meant I had problems because Tomcat usually listens out on port 8005 for instructions to shutdown the Tomcat server. ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional