This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes addShutdownHook and security values Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "addShutdownHook and security values" Watch "addShutdownHook and security values" New topic
Author

addShutdownHook and security values

Mila
Ranch Hand

Joined: Feb 14, 2002
Posts: 31
Hello,
I have a 3th party vendor's servlet that registers a new virtual-machine shutdown hook. Registration does not work because Servlet engine
throws java.security.AccessController.doPrivileged exception every time it tries to register the hook. Servlet is also a RMI client but exception comes after RMI's lookup.
Does anyone know if I'm missing some rights from java.policy or server.policy files and how to correct this problem?
My servlet engine is SunOne 6.0 and JDK is 1.3.
Br
Mikla
Mike Landis
Greenhorn

Joined: Jun 05, 2003
Posts: 21
Resolved.
Permission shutdownHooks was needed in server.policy file.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: addShutdownHook and security values
 
Similar Threads
Help, servelet compile
Jspengine and Servlet engine
WA #1.....word association
Why jsp compiler creates exception(jasperException)during compile time,but incase of javac its not?
Websphere Test Environment