I deploy the H2 database with my web application which all works fine.
I would also like to deploy the H2 console for easy management, but I
have the problem that my home directory is not accessible from the web
application due to the security policy in use. So I get the following
error:

java.security.AccessControlException: access denied
(java.io.FilePermission /webs/web1179/.h2.server.properties read)
        
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
        java.security.AccessController.checkPermission(AccessController.java:
546)
        java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        java.lang.SecurityManager.checkRead(SecurityManager.java:871)
        java.io.File.exists(File.java:731)
        org.h2.store.fs.FileSystemDisk.exists(FileSystemDisk.java:134)
        org.h2.util.FileUtils.exists(FileUtils.java:132)
        org.h2.util.SortedProperties.loadProperties(SortedProperties.java:87)
        org.h2.server.web.WebServer.loadProperties(WebServer.java:510)
        org.h2.server.web.WebServer.init(WebServer.java:223)
        org.h2.server.web.WebServlet.init(WebServlet.java:53)
        javax.servlet.GenericServlet.init(GenericServlet.java:212)

After having looked at the source code, I understand that I must
somehow set to SysProperites.USER_HOME to a directory accessible from
my web application. I also understand that in a non web application, I
simply could pass "-Duser.home=/mydir" to the application, but is
there a way to achieve the same for a web application running in
Tomcat?

Thanks,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to