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.