Hi,
On May 15, 2007, at 1:48 PM, chux wrote:
Hi Guys,
I have deployed xwiki and modified the hibernate.cfg.xml file to
use HSQL.
However when I try and access the main page
/xwiki/bin/view/Main/WebHome
it gives me the following error:
javax.servlet.ServletException: Error number 3 in 0: Could not
initialize
main XWiki context
Wrapped Exception: access denied (java.io.FilePermission \WEB-INF
\xwiki.cfg
read)
org.apache.struts.action.RequestProcessor.processException
(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor2335.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:
243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute
(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:161)
java.security.AccessController.doPrivileged(Native Method)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter
(SetCharacterEncodingFilter.java:118)
sun.reflect.GeneratedMethodAccessor2334.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:
243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute
(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:217)
Has anyone come across this? I have verified that the /WEB-INF/
xwiki.cfg
file exists. It is the default file and it has read and write
permissions
I am running on Apache Tomcat/5.5.15 with JVM version 1.6.0-b105
First, XWiki won't currently run on JDK 1.6. You'll need a JDK 1.5.
But there error you're getting is for another reason. As you suspect
there's a permission issue.
I'm pretty sure you're on some unix.
Verify that the user under which you have started your tomcat has
read permission for this file.
Thanks
-Vincent