-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Tutorial deployment fails with access denied on tomcat
PostPosted: Wed Feb 21, 2007 6:37 am 
Newbie

Joined: Wed Feb 21, 2007 6:14 am
Posts: 1
Hibernate 3.2.2, tomcat 5.5, Ubuntu Edgy.

I have been going through the excellent tutorial http://www.hibernate.org/hib_docs/v3/re ... orial.html and everything worked as expected, except the final deployment.

Initial SessionFactory creation failed.
java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
11:02:55,375 ERROR [Event Manager]:253 - Servlet.service() for servlet Event Manager threw exception
java.lang.ExceptionInInitializerError
at util.HibernateUtil.<clinit>(Unknown Source)
at events.EventManagerServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
...

All the mapping files etc. are as per the tutorial and I am using the HSQL database.

I finally managed to get the eventmanager app. to work by either turning off the Java Security Manager in /etc/init.d/tomcat5.5 or by changing the policy files noted in http://www.hibernate.org/294.html

My ISP for hosting is not going to allow me to hack around the tomcat security policy files or turn security off, so is there any way around this problem ?

It looks like hibernate could be a great solution for me but if there is not a workaround for this security issue then hibernate could be a non-starter.

Any ideas ?

Ian.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.