• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot use Axis due to Tomcat Security Settings  RSS feed

 
Sandeep Joseph
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I use Apache Axis with a Tomcat 5.0.27. The Tomcat runs with Security Manager switched on -> this causes the Axis runtime to crash with the following Error:

------------------------------------------------------------------------------------
java.lang.ExceptionInInitializerError at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33) at org.apache.axis.description.TypeDesc.(TypeDesc.java:61)
------------------------------------------------------------------------------------

However when I assign java.security.AllPermission to axis.jar and common-discovery.jar in the Tomcat catalina poliy file everything works. Unfortunately this is not a solution, my application runs on a shared Tomcat hosting account, so the policy settings cannot be changed there. Is there any way to get around this problem with out changing the policy settings?

Thanks,
Sandeep
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!