• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

addShutdownHook and security values

 
Mila
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolved.
Permission shutdownHooks was needed in server.policy file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic