Sorry, I forgot to mention that Tomcat is provided by my ISP and I do
not have the possibility to change theses.
So I was looking for a way to change this on the level of the web
application or on the level of H2.

On 22 Mrz., 22:06, Thomas Kellerer <[email protected]>
wrote:
> You have two easy options:
>
> Create a global environment variable named JAVA_OPTS and the contents
> "-Duser.home=/path/to/your/home/dir"
>
> or create a script setenv.bat (or setenv.sh) in $CATALINA_HOME/bin
> that contains the above environment variable.
>
> Thomas
>
> On Mar 22, 9:15 pm, Thomas Mauch <[email protected]> wrote:
>
> > 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