[xwiki-users] Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
Hi, i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration What to do now? Thanks for help Here is the full error text: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs. Apache Tomcat/6.0.35
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related; Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Tue, Feb 28, 2012 at 8:10 PM, Thomas Mortagne <[email protected]> wrote:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
See http://jira.xwiki.org/browse/XE-1120
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile? Richard
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Richard
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now. The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
Richard
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Hi Thomas, thank you for the last modifications on the deb packages. I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great! But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message. A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem. Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure. Richard Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
Richard
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote:
Hi,
i have installed xwiki form the deb package xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the hostname where xwiki is running). No page came up. I got this error:
Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
Richard
Thanks for help
Here is the full error text:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent = [null]]]] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) root cause
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) com.xpn.xwiki.XWiki.<init>(XWiki.java:739) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) 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:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
Apache Tomcat/6.0.35 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne:
On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski <[email protected]> wrote: > Hi, > > i have installed xwiki form the deb package > xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the > new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the > hostname where xwiki is running). No page came up. I got this error: > > Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration > > What to do now?
Looks like there is something wrong with the potgre packages actually, xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's supposed to contain the version of tomcat now). But that's not related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml template file ? I think there is an issue with the generation of the /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
Richard
> > Thanks for help > > Here is the full error text: > > HTTP Status 500 - > > type Exception report > > message > > description The server encountered an internal error () that prevented > it from fulfilling this request. > > exception > > javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error > number 3 in 0: Could not initialize main XWiki context > Wrapped Exception: Error number 3202 in 3: Exception while reading > document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = > [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent > = [null]]]] > Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate > configuration > 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:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) > root cause > > com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize > main XWiki context > Wrapped Exception: Error number 3202 in 3: Exception while reading > document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = > [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent > = [null]]]] > Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate > configuration > com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) > com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) > 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:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) > root cause > > com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while > reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = > [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = > [WIKI], parent = [null]]]] > Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate > configuration > com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) > com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) > com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) > com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) > com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) > com.xpn.xwiki.XWiki.<init>(XWiki.java:739) > com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) > com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) > 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:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) > root cause > > org.hibernate.HibernateException: Can't find > [/WEB-INF/hibernate.cfg.xml] for hibernate configuration > com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) > org.hibernate.cfg.Configuration.configure(Configuration.java:2157) > com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) > com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) > com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) > com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) > com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) > com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) > com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) > com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) > com.xpn.xwiki.XWiki.<init>(XWiki.java:739) > com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) > com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) > 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:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) > note The full stack trace of the root cause is available in the Apache > Tomcat/6.0.35 logs. > > Apache Tomcat/6.0.35 > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report !
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote:
Am 28.02.2012 20:10, schrieb Thomas Mortagne: > On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski > <[email protected]> wrote: >> Hi, >> >> i have installed xwiki form the deb package >> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >> hostname where xwiki is running). No page came up. I got this error: >> >> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >> >> What to do now? > > Looks like there is something wrong with the potgre packages actually, > xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's > supposed to contain the version of tomcat now). But that's not > related;
Do you mean something like xwiki-enterprise-tomcat6-pgsql, xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
> > Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml > template file ? I think there is an issue with the generation of the > /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at > it.
I tried a new install on a completely fresh debian system. The problem does not appear now. I think my old system was broken due to old failed installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
Richard
> >> >> Thanks for help >> >> Here is the full error text: >> >> HTTP Status 500 - >> >> type Exception report >> >> message >> >> description The server encountered an internal error () that prevented >> it from fulfilling this request. >> >> exception >> >> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >> number 3 in 0: Could not initialize main XWiki context >> Wrapped Exception: Error number 3202 in 3: Exception while reading >> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >> = [null]]]] >> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >> configuration >> 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:617) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >> root cause >> >> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >> main XWiki context >> Wrapped Exception: Error number 3202 in 3: Exception while reading >> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >> = [null]]]] >> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >> configuration >> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >> 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:617) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >> root cause >> >> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >> [WIKI], parent = [null]]]] >> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >> configuration >> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >> 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:617) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >> root cause >> >> org.hibernate.HibernateException: Can't find >> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >> 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:617) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >> note The full stack trace of the root cause is available in the Apache >> Tomcat/6.0.35 logs. >> >> Apache Tomcat/6.0.35 >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users > > > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
Richard
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote:
On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski <[email protected]> wrote: > > Am 28.02.2012 20:10, schrieb Thomas Mortagne: >> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >> <[email protected]> wrote: >>> Hi, >>> >>> i have installed xwiki form the deb package >>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>> hostname where xwiki is running). No page came up. I got this error: >>> >>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>> >>> What to do now? >> >> Looks like there is something wrong with the potgre packages actually, >> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >> supposed to contain the version of tomcat now). But that's not >> related; > > Do you mean something like xwiki-enterprise-tomcat6-pgsql, > xwiki-enterprise-tomcat7-pgsql ? That would be nice.
Yes, see you can see how it's done for mysql but for postgre they are all there but with the same xwiki-enterprise-tomcat-pgsql name... I forgot to change it during the refactoring and I mostly test mysql. Sorry about that.
> >> >> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >> template file ? I think there is an issue with the generation of the >> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >> it. > > I tried a new install on a completely fresh debian system. The problem > does not appear now. I think my old system was broken due to old failed > installations. Or did you change something meanwhile?
Nop I did not change anything but I actually suspect that the issue is not fresh install but that the purge is wrong. That's what I plan to look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
> > Richard > >> >>> >>> Thanks for help >>> >>> Here is the full error text: >>> >>> HTTP Status 500 - >>> >>> type Exception report >>> >>> message >>> >>> description The server encountered an internal error () that prevented >>> it from fulfilling this request. >>> >>> exception >>> >>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>> number 3 in 0: Could not initialize main XWiki context >>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>> = [null]]]] >>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>> configuration >>> 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:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>> root cause >>> >>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>> main XWiki context >>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>> = [null]]]] >>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>> configuration >>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>> 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:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>> root cause >>> >>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>> [WIKI], parent = [null]]]] >>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>> configuration >>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>> 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:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>> root cause >>> >>> org.hibernate.HibernateException: Can't find >>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>> 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:617) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>> note The full stack trace of the root cause is available in the Apache >>> Tomcat/6.0.35 logs. >>> >>> Apache Tomcat/6.0.35 >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/users >> >> >> > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Richard
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne:
On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne <[email protected]> wrote: > On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski > <[email protected]> wrote: >> >> Am 28.02.2012 20:10, schrieb Thomas Mortagne: >>> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >>> <[email protected]> wrote: >>>> Hi, >>>> >>>> i have installed xwiki form the deb package >>>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>>> hostname where xwiki is running). No page came up. I got this error: >>>> >>>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>> >>>> What to do now? >>> >>> Looks like there is something wrong with the potgre packages actually, >>> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >>> supposed to contain the version of tomcat now). But that's not >>> related; >> >> Do you mean something like xwiki-enterprise-tomcat6-pgsql, >> xwiki-enterprise-tomcat7-pgsql ? That would be nice. > > Yes, see you can see how it's done for mysql but for postgre they are > all there but with the same xwiki-enterprise-tomcat-pgsql name... I > forgot to change it during the refactoring and I mostly test mysql. > Sorry about that. > >> >>> >>> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >>> template file ? I think there is an issue with the generation of the >>> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >>> it. >> >> I tried a new install on a completely fresh debian system. The problem >> does not appear now. I think my old system was broken due to old failed >> installations. Or did you change something meanwhile? > > Nop I did not change anything but I actually suspect that the issue is > not fresh install but that the purge is wrong. That's what I plan to > look at, thanks for the confirmation.
Should be OK now.
The issue was indeed in the purge script. This mean that you might still have an issue with install, in that case you will need to do install/remove --purge/install to cleanup everything.
> >> >> Richard >> >>> >>>> >>>> Thanks for help >>>> >>>> Here is the full error text: >>>> >>>> HTTP Status 500 - >>>> >>>> type Exception report >>>> >>>> message >>>> >>>> description The server encountered an internal error () that prevented >>>> it from fulfilling this request. >>>> >>>> exception >>>> >>>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>>> number 3 in 0: Could not initialize main XWiki context >>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>> = [null]]]] >>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>> configuration >>>> 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:617) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>> root cause >>>> >>>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>>> main XWiki context >>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>> = [null]]]] >>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>> configuration >>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>> 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:617) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>> root cause >>>> >>>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>>> [WIKI], parent = [null]]]] >>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>> configuration >>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>> 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:617) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>> root cause >>>> >>>> org.hibernate.HibernateException: Can't find >>>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>> 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:617) >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>> note The full stack trace of the root cause is available in the Apache >>>> Tomcat/6.0.35 logs. >>>> >>>> Apache Tomcat/6.0.35 >>>> _______________________________________________ >>>> users mailing list >>>> [email protected] >>>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >>> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users > > > > -- > Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote:
Hi Thomas,
thank you for the last modifications on the deb packages.
I've installed the package xwiki-enterprise-tomcat7-pgsql. The installation ran without probelms. Great!
But I'am sorry to inform you that after pointing the webbrowser to http://xwikipg:8080/xwiki/ I got the well known "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" message.
A quik look into /etc/xwiki showed -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml
Changing group from root to tomcat7 and restarting the tomcat7 service solved the problem.
Maybe there is still a problem with setting group/rights on hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner. Does this sounds right to you ?
Richard
Richard
Am 29.02.2012 18:02, schrieb Thomas Mortagne: > On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne > <[email protected]> wrote: >> On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski >> <[email protected]> wrote: >>> >>> Am 28.02.2012 20:10, schrieb Thomas Mortagne: >>>> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >>>> <[email protected]> wrote: >>>>> Hi, >>>>> >>>>> i have installed xwiki form the deb package >>>>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>>>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>>>> hostname where xwiki is running). No page came up. I got this error: >>>>> >>>>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>> >>>>> What to do now? >>>> >>>> Looks like there is something wrong with the potgre packages actually, >>>> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >>>> supposed to contain the version of tomcat now). But that's not >>>> related; >>> >>> Do you mean something like xwiki-enterprise-tomcat6-pgsql, >>> xwiki-enterprise-tomcat7-pgsql ? That would be nice. >> >> Yes, see you can see how it's done for mysql but for postgre they are >> all there but with the same xwiki-enterprise-tomcat-pgsql name... I >> forgot to change it during the refactoring and I mostly test mysql. >> Sorry about that. >> >>> >>>> >>>> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >>>> template file ? I think there is an issue with the generation of the >>>> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >>>> it. >>> >>> I tried a new install on a completely fresh debian system. The problem >>> does not appear now. I think my old system was broken due to old failed >>> installations. Or did you change something meanwhile? >> >> Nop I did not change anything but I actually suspect that the issue is >> not fresh install but that the purge is wrong. That's what I plan to >> look at, thanks for the confirmation. > > Should be OK now. > > The issue was indeed in the purge script. This mean that you might > still have an issue with install, in that case you will need to do > install/remove --purge/install to cleanup everything. > >> >>> >>> Richard >>> >>>> >>>>> >>>>> Thanks for help >>>>> >>>>> Here is the full error text: >>>>> >>>>> HTTP Status 500 - >>>>> >>>>> type Exception report >>>>> >>>>> message >>>>> >>>>> description The server encountered an internal error () that prevented >>>>> it from fulfilling this request. >>>>> >>>>> exception >>>>> >>>>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>>>> number 3 in 0: Could not initialize main XWiki context >>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>> = [null]]]] >>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>> configuration >>>>> 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:617) >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>> root cause >>>>> >>>>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>>>> main XWiki context >>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>> = [null]]]] >>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>> configuration >>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>> 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:617) >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>> root cause >>>>> >>>>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>>>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>>>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>>>> [WIKI], parent = [null]]]] >>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>> configuration >>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>> 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:617) >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>> root cause >>>>> >>>>> org.hibernate.HibernateException: Can't find >>>>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>>>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>> 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:617) >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>> note The full stack trace of the root cause is available in the Apache >>>>> Tomcat/6.0.35 logs. >>>>> >>>>> Apache Tomcat/6.0.35 >>>>> _______________________________________________ >>>>> users mailing list >>>>> [email protected] >>>>> http://lists.xwiki.org/mailman/listinfo/users >>>> >>>> >>>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/users >> >> >> >> -- >> Thomas Mortagne > > > _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski <[email protected]> wrote: > Hi Thomas, > > thank you for the last modifications on the deb packages. > > I've installed the package xwiki-enterprise-tomcat7-pgsql. The > installation ran without probelms. > Great! > > But I'am sorry to inform you that after pointing the webbrowser to > http://xwikipg:8080/xwiki/ I got the well known > "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" > message. > > A quik look into /etc/xwiki showed > -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml > > Changing group from root to tomcat7 and restarting the tomcat7 service > solved the problem. > > Maybe there is still a problem with setting group/rights on > hibernate.cfg.xml. I'am not shure.
That's weird I was sure I changed the right for it to be 644, will checking this, maybe I modified it only in the mysql package. Should be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki). Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server). But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems. Your opinion?
Richard
> > Richard > > Am 29.02.2012 18:02, schrieb Thomas Mortagne: >> On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne >> <[email protected]> wrote: >>> On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski >>> <[email protected]> wrote: >>>> >>>> Am 28.02.2012 20:10, schrieb Thomas Mortagne: >>>>> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >>>>> <[email protected]> wrote: >>>>>> Hi, >>>>>> >>>>>> i have installed xwiki form the deb package >>>>>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>>>>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>>>>> hostname where xwiki is running). No page came up. I got this error: >>>>>> >>>>>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>> >>>>>> What to do now? >>>>> >>>>> Looks like there is something wrong with the potgre packages actually, >>>>> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >>>>> supposed to contain the version of tomcat now). But that's not >>>>> related; >>>> >>>> Do you mean something like xwiki-enterprise-tomcat6-pgsql, >>>> xwiki-enterprise-tomcat7-pgsql ? That would be nice. >>> >>> Yes, see you can see how it's done for mysql but for postgre they are >>> all there but with the same xwiki-enterprise-tomcat-pgsql name... I >>> forgot to change it during the refactoring and I mostly test mysql. >>> Sorry about that. >>> >>>> >>>>> >>>>> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >>>>> template file ? I think there is an issue with the generation of the >>>>> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >>>>> it. >>>> >>>> I tried a new install on a completely fresh debian system. The problem >>>> does not appear now. I think my old system was broken due to old failed >>>> installations. Or did you change something meanwhile? >>> >>> Nop I did not change anything but I actually suspect that the issue is >>> not fresh install but that the purge is wrong. That's what I plan to >>> look at, thanks for the confirmation. >> >> Should be OK now. >> >> The issue was indeed in the purge script. This mean that you might >> still have an issue with install, in that case you will need to do >> install/remove --purge/install to cleanup everything. >> >>> >>>> >>>> Richard >>>> >>>>> >>>>>> >>>>>> Thanks for help >>>>>> >>>>>> Here is the full error text: >>>>>> >>>>>> HTTP Status 500 - >>>>>> >>>>>> type Exception report >>>>>> >>>>>> message >>>>>> >>>>>> description The server encountered an internal error () that prevented >>>>>> it from fulfilling this request. >>>>>> >>>>>> exception >>>>>> >>>>>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>>>>> number 3 in 0: Could not initialize main XWiki context >>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>> = [null]]]] >>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>> configuration >>>>>> 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:617) >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>> root cause >>>>>> >>>>>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>>>>> main XWiki context >>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>> = [null]]]] >>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>> configuration >>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>> 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:617) >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>> root cause >>>>>> >>>>>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>>>>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>>>>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>>>>> [WIKI], parent = [null]]]] >>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>> configuration >>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>> 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:617) >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>> root cause >>>>>> >>>>>> org.hibernate.HibernateException: Can't find >>>>>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>>>>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>> 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:617) >>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>> note The full stack trace of the root cause is available in the Apache >>>>>> Tomcat/6.0.35 logs. >>>>>> >>>>>> Apache Tomcat/6.0.35 >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> [email protected] >>>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> users mailing list >>>> [email protected] >>>> http://lists.xwiki.org/mailman/listinfo/users >>> >>> >>> >>> -- >>> Thomas Mortagne >> >> >> > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote:
On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne <[email protected]> wrote: > On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski > <[email protected]> wrote: >> Hi Thomas, >> >> thank you for the last modifications on the deb packages. >> >> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >> installation ran without probelms. >> Great! >> >> But I'am sorry to inform you that after pointing the webbrowser to >> http://xwikipg:8080/xwiki/ I got the well known >> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >> message. >> >> A quik look into /etc/xwiki showed >> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >> >> Changing group from root to tomcat7 and restarting the tomcat7 service >> solved the problem. >> >> Maybe there is still a problem with setting group/rights on >> hibernate.cfg.xml. I'am not shure. > > That's weird I was sure I changed the right for it to be 644, will > checking this, maybe I modified it only in the mysql package. Should > be quickly fixed.
I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Richard
> >> >> Richard >> >> Am 29.02.2012 18:02, schrieb Thomas Mortagne: >>> On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne >>> <[email protected]> wrote: >>>> On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski >>>> <[email protected]> wrote: >>>>> >>>>> Am 28.02.2012 20:10, schrieb Thomas Mortagne: >>>>>> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >>>>>> <[email protected]> wrote: >>>>>>> Hi, >>>>>>> >>>>>>> i have installed xwiki form the deb package >>>>>>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>>>>>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>>>>>> hostname where xwiki is running). No page came up. I got this error: >>>>>>> >>>>>>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>>> >>>>>>> What to do now? >>>>>> >>>>>> Looks like there is something wrong with the potgre packages actually, >>>>>> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >>>>>> supposed to contain the version of tomcat now). But that's not >>>>>> related; >>>>> >>>>> Do you mean something like xwiki-enterprise-tomcat6-pgsql, >>>>> xwiki-enterprise-tomcat7-pgsql ? That would be nice. >>>> >>>> Yes, see you can see how it's done for mysql but for postgre they are >>>> all there but with the same xwiki-enterprise-tomcat-pgsql name... I >>>> forgot to change it during the refactoring and I mostly test mysql. >>>> Sorry about that. >>>> >>>>> >>>>>> >>>>>> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >>>>>> template file ? I think there is an issue with the generation of the >>>>>> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >>>>>> it. >>>>> >>>>> I tried a new install on a completely fresh debian system. The problem >>>>> does not appear now. I think my old system was broken due to old failed >>>>> installations. Or did you change something meanwhile? >>>> >>>> Nop I did not change anything but I actually suspect that the issue is >>>> not fresh install but that the purge is wrong. That's what I plan to >>>> look at, thanks for the confirmation. >>> >>> Should be OK now. >>> >>> The issue was indeed in the purge script. This mean that you might >>> still have an issue with install, in that case you will need to do >>> install/remove --purge/install to cleanup everything. >>> >>>> >>>>> >>>>> Richard >>>>> >>>>>> >>>>>>> >>>>>>> Thanks for help >>>>>>> >>>>>>> Here is the full error text: >>>>>>> >>>>>>> HTTP Status 500 - >>>>>>> >>>>>>> type Exception report >>>>>>> >>>>>>> message >>>>>>> >>>>>>> description The server encountered an internal error () that prevented >>>>>>> it from fulfilling this request. >>>>>>> >>>>>>> exception >>>>>>> >>>>>>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>>>>>> number 3 in 0: Could not initialize main XWiki context >>>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>>> = [null]]]] >>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>> configuration >>>>>>> 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:617) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>> root cause >>>>>>> >>>>>>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>>>>>> main XWiki context >>>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>>> = [null]]]] >>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>> configuration >>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>> 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:617) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>> root cause >>>>>>> >>>>>>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>>>>>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>>>>>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>>>>>> [WIKI], parent = [null]]]] >>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>> configuration >>>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>> 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:617) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>> root cause >>>>>>> >>>>>>> org.hibernate.HibernateException: Can't find >>>>>>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>>>>>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>> 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:617) >>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>> note The full stack trace of the root cause is available in the Apache >>>>>>> Tomcat/6.0.35 logs. >>>>>>> >>>>>>> Apache Tomcat/6.0.35 >>>>>>> _______________________________________________ >>>>>>> users mailing list >>>>>>> [email protected] >>>>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> users mailing list >>>>> [email protected] >>>>> http://lists.xwiki.org/mailman/listinfo/users >>>> >>>> >>>> >>>> -- >>>> Thomas Mortagne >>> >>> >>> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users > > > > -- > Thomas Mortagne
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne:
On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne <[email protected]> wrote: > On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne > <[email protected]> wrote: >> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >> <[email protected]> wrote: >>> Hi Thomas, >>> >>> thank you for the last modifications on the deb packages. >>> >>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>> installation ran without probelms. >>> Great! >>> >>> But I'am sorry to inform you that after pointing the webbrowser to >>> http://xwikipg:8080/xwiki/ I got the well known >>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>> message. >>> >>> A quik look into /etc/xwiki showed >>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>> >>> Changing group from root to tomcat7 and restarting the tomcat7 service >>> solved the problem. >>> >>> Maybe there is still a problem with setting group/rights on >>> hibernate.cfg.xml. I'am not shure. >> >> That's weird I was sure I changed the right for it to be 644, will >> checking this, maybe I modified it only in the mysql package. Should >> be quickly fixed. > > I did fixed it but forgot to backport it on 3.5 actually...
Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Richard
> >> >>> >>> Richard >>> >>> Am 29.02.2012 18:02, schrieb Thomas Mortagne: >>>> On Wed, Feb 29, 2012 at 10:35 AM, Thomas Mortagne >>>> <[email protected]> wrote: >>>>> On Wed, Feb 29, 2012 at 9:24 AM, Richard Rafalski >>>>> <[email protected]> wrote: >>>>>> >>>>>> Am 28.02.2012 20:10, schrieb Thomas Mortagne: >>>>>>> On Tue, Feb 28, 2012 at 7:43 PM, Richard Rafalski >>>>>>> <[email protected]> wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> i have installed xwiki form the deb package >>>>>>>> xwiki-enterprise-tomcat-pgsql version 3.5. Then tried to contact the >>>>>>>> new wiki through the URL http://xwikipg:8080/xwiki (xwikipg is the >>>>>>>> hostname where xwiki is running). No page came up. I got this error: >>>>>>>> >>>>>>>> Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>>>> >>>>>>>> What to do now? >>>>>>> >>>>>>> Looks like there is something wrong with the potgre packages actually, >>>>>>> xwiki-enterprise-tomcat-pgsql should not even exist for 3.5 (it's >>>>>>> supposed to contain the version of tomcat now). But that's not >>>>>>> related; >>>>>> >>>>>> Do you mean something like xwiki-enterprise-tomcat6-pgsql, >>>>>> xwiki-enterprise-tomcat7-pgsql ? That would be nice. >>>>> >>>>> Yes, see you can see how it's done for mysql but for postgre they are >>>>> all there but with the same xwiki-enterprise-tomcat-pgsql name... I >>>>> forgot to change it during the refactoring and I mostly test mysql. >>>>> Sorry about that. >>>>> >>>>>> >>>>>>> >>>>>>> Do you have the /usr/share/xwiki/templates/pgsql/hibernate.cfg.xml >>>>>>> template file ? I think there is an issue with the generation of the >>>>>>> /etc/xwiki/hibernate.cfg.xml file in some condition, I'm looking at >>>>>>> it. >>>>>> >>>>>> I tried a new install on a completely fresh debian system. The problem >>>>>> does not appear now. I think my old system was broken due to old failed >>>>>> installations. Or did you change something meanwhile? >>>>> >>>>> Nop I did not change anything but I actually suspect that the issue is >>>>> not fresh install but that the purge is wrong. That's what I plan to >>>>> look at, thanks for the confirmation. >>>> >>>> Should be OK now. >>>> >>>> The issue was indeed in the purge script. This mean that you might >>>> still have an issue with install, in that case you will need to do >>>> install/remove --purge/install to cleanup everything. >>>> >>>>> >>>>>> >>>>>> Richard >>>>>> >>>>>>> >>>>>>>> >>>>>>>> Thanks for help >>>>>>>> >>>>>>>> Here is the full error text: >>>>>>>> >>>>>>>> HTTP Status 500 - >>>>>>>> >>>>>>>> type Exception report >>>>>>>> >>>>>>>> message >>>>>>>> >>>>>>>> description The server encountered an internal error () that prevented >>>>>>>> it from fulfilling this request. >>>>>>>> >>>>>>>> exception >>>>>>>> >>>>>>>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error >>>>>>>> number 3 in 0: Could not initialize main XWiki context >>>>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>>>> = [null]]]] >>>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>>> configuration >>>>>>>> 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:617) >>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>>> root cause >>>>>>>> >>>>>>>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize >>>>>>>> main XWiki context >>>>>>>> Wrapped Exception: Error number 3202 in 3: Exception while reading >>>>>>>> document [name = [XWikiPreferences], type = [DOCUMENT], parent = [name = >>>>>>>> [XWiki], type = [SPACE], parent = [name = [xwiki], type = [WIKI], parent >>>>>>>> = [null]]]] >>>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>>> configuration >>>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:418) >>>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>>> 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:617) >>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>>> root cause >>>>>>>> >>>>>>>> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while >>>>>>>> reading document [name = [XWikiPreferences], type = [DOCUMENT], parent = >>>>>>>> [name = [XWiki], type = [SPACE], parent = [name = [xwiki], type = >>>>>>>> [WIKI], parent = [null]]]] >>>>>>>> Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate >>>>>>>> configuration >>>>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) >>>>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>>> 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:617) >>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>>> root cause >>>>>>>> >>>>>>>> org.hibernate.HibernateException: Can't find >>>>>>>> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration >>>>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:118) >>>>>>>> org.hibernate.cfg.Configuration.configure(Configuration.java:2157) >>>>>>>> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:80) >>>>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:167) >>>>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:550) >>>>>>>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:728) >>>>>>>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:283) >>>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1427) >>>>>>>> com.xpn.xwiki.XWiki.getDocument(XWiki.java:1470) >>>>>>>> com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:3104) >>>>>>>> com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:821) >>>>>>>> com.xpn.xwiki.XWiki.initXWiki(XWiki.java:796) >>>>>>>> com.xpn.xwiki.XWiki.<init>(XWiki.java:739) >>>>>>>> com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:401) >>>>>>>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:487) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136) >>>>>>>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) >>>>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) >>>>>>>> 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:617) >>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >>>>>>>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) >>>>>>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) >>>>>>>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) >>>>>>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) >>>>>>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) >>>>>>>> note The full stack trace of the root cause is available in the Apache >>>>>>>> Tomcat/6.0.35 logs. >>>>>>>> >>>>>>>> Apache Tomcat/6.0.35 >>>>>>>> _______________________________________________ >>>>>>>> users mailing list >>>>>>>> [email protected] >>>>>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> [email protected] >>>>>> http://lists.xwiki.org/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> -- >>>>> Thomas Mortagne >>>> >>>> >>>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.xwiki.org/mailman/listinfo/users >> >> >> >> -- >> Thomas Mortagne > > > > -- > Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote:
Am 02.03.2012 19:47, schrieb Thomas Mortagne: > On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne > <[email protected]> wrote: >> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >> <[email protected]> wrote: >>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>> <[email protected]> wrote: >>>> Hi Thomas, >>>> >>>> thank you for the last modifications on the deb packages. >>>> >>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>> installation ran without probelms. >>>> Great! >>>> >>>> But I'am sorry to inform you that after pointing the webbrowser to >>>> http://xwikipg:8080/xwiki/ I got the well known >>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>> message. >>>> >>>> A quik look into /etc/xwiki showed >>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>> >>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>> solved the problem. >>>> >>>> Maybe there is still a problem with setting group/rights on >>>> hibernate.cfg.xml. I'am not shure. >>> >>> That's weird I was sure I changed the right for it to be 644, will >>> checking this, maybe I modified it only in the mysql package. Should >>> be quickly fixed. >> >> I did fixed it but forgot to backport it on 3.5 actually... > > Should be better now. Thanks for the report ! I think it is very dangerous to make hibernate.cfg.xml readable for evryone. If you can not avoid it you should mention this fact in the installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :) Richard
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote:
On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski <[email protected]> wrote: > > > Am 02.03.2012 19:47, schrieb Thomas Mortagne: >> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >> <[email protected]> wrote: >>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>> <[email protected]> wrote: >>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>> <[email protected]> wrote: >>>>> Hi Thomas, >>>>> >>>>> thank you for the last modifications on the deb packages. >>>>> >>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>> installation ran without probelms. >>>>> Great! >>>>> >>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>> message. >>>>> >>>>> A quik look into /etc/xwiki showed >>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>> >>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>> solved the problem. >>>>> >>>>> Maybe there is still a problem with setting group/rights on >>>>> hibernate.cfg.xml. I'am not shure. >>>> >>>> That's weird I was sure I changed the right for it to be 644, will >>>> checking this, maybe I modified it only in the mysql package. Should >>>> be quickly fixed. >>> >>> I did fixed it but forgot to backport it on 3.5 actually... >> >> Should be better now. Thanks for the report ! > I think it is very dangerous to make hibernate.cfg.xml readable for > evryone. If you can not avoid it you should mention this fact in the > installation documentation.
I can probably change the owner to tomcat and remove the readright for all in the xwiki-enterprise-tomcat*-pgsql and xwiki-enterprise-tomcat*-mysql (my problem was that the install script does not know the aplication server in xwiki-enterprise-pgsql-common and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On Mon, Mar 5, 2012 at 12:09 PM, Thomas Mortagne <[email protected]> wrote:
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote: > On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski > <[email protected]> wrote: >> >> >> Am 02.03.2012 19:47, schrieb Thomas Mortagne: >>> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >>> <[email protected]> wrote: >>>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>>> <[email protected]> wrote: >>>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>>> <[email protected]> wrote: >>>>>> Hi Thomas, >>>>>> >>>>>> thank you for the last modifications on the deb packages. >>>>>> >>>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>>> installation ran without probelms. >>>>>> Great! >>>>>> >>>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>>> message. >>>>>> >>>>>> A quik look into /etc/xwiki showed >>>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>>> >>>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>>> solved the problem. >>>>>> >>>>>> Maybe there is still a problem with setting group/rights on >>>>>> hibernate.cfg.xml. I'am not shure. >>>>> >>>>> That's weird I was sure I changed the right for it to be 644, will >>>>> checking this, maybe I modified it only in the mysql package. Should >>>>> be quickly fixed. >>>> >>>> I did fixed it but forgot to backport it on 3.5 actually... >>> >>> Should be better now. Thanks for the report ! >> I think it is very dangerous to make hibernate.cfg.xml readable for >> evryone. If you can not avoid it you should mention this fact in the >> installation documentation. > > I can probably change the owner to tomcat and remove the readright for > all in the xwiki-enterprise-tomcat*-pgsql and > xwiki-enterprise-tomcat*-mysql (my problem was that the install script > does not know the aplication server in xwiki-enterprise-pgsql-common > and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
Done.
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
Hey Thomas, regression on xwiki-enterprise-tomcat-common: dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters) Richard Am 05.03.2012 12:09, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne:
On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne <[email protected]> wrote: > On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski > <[email protected]> wrote: >> >> >> Am 02.03.2012 19:47, schrieb Thomas Mortagne: >>> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >>> <[email protected]> wrote: >>>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>>> <[email protected]> wrote: >>>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>>> <[email protected]> wrote: >>>>>> Hi Thomas, >>>>>> >>>>>> thank you for the last modifications on the deb packages. >>>>>> >>>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>>> installation ran without probelms. >>>>>> Great! >>>>>> >>>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>>> message. >>>>>> >>>>>> A quik look into /etc/xwiki showed >>>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>>> >>>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>>> solved the problem. >>>>>> >>>>>> Maybe there is still a problem with setting group/rights on >>>>>> hibernate.cfg.xml. I'am not shure. >>>>> >>>>> That's weird I was sure I changed the right for it to be 644, will >>>>> checking this, maybe I modified it only in the mysql package. Should >>>>> be quickly fixed. >>>> >>>> I did fixed it but forgot to backport it on 3.5 actually... >>> >>> Should be better now. Thanks for the report ! >> I think it is very dangerous to make hibernate.cfg.xml readable for >> evryone. If you can not avoid it you should mention this fact in the >> installation documentation. > > I can probably change the owner to tomcat and remove the readright for > all in the xwiki-enterprise-tomcat*-pgsql and > xwiki-enterprise-tomcat*-mysql (my problem was that the install script > does not know the aplication server in xwiki-enterprise-pgsql-common > and xwiki-enterprise-mysql-common).
Yes I see.
Done, the right of the hibernate conf file is now 640 and the whole /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as owner.
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Mon, Mar 5, 2012 at 12:46 PM, Richard Rafalski <[email protected]> wrote:
Hey Thomas,
regression on xwiki-enterprise-tomcat-common:
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
Missing backport again, or why it's bad to modify already released packages... Should be ok now.
Richard
Am 05.03.2012 12:09, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote:
Am 03.03.2012 13:07, schrieb Thomas Mortagne: > On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne > <[email protected]> wrote: >> On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski >> <[email protected]> wrote: >>> >>> >>> Am 02.03.2012 19:47, schrieb Thomas Mortagne: >>>> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >>>> <[email protected]> wrote: >>>>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>>>> <[email protected]> wrote: >>>>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>>>> <[email protected]> wrote: >>>>>>> Hi Thomas, >>>>>>> >>>>>>> thank you for the last modifications on the deb packages. >>>>>>> >>>>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>>>> installation ran without probelms. >>>>>>> Great! >>>>>>> >>>>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>>>> message. >>>>>>> >>>>>>> A quik look into /etc/xwiki showed >>>>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>>>> >>>>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>>>> solved the problem. >>>>>>> >>>>>>> Maybe there is still a problem with setting group/rights on >>>>>>> hibernate.cfg.xml. I'am not shure. >>>>>> >>>>>> That's weird I was sure I changed the right for it to be 644, will >>>>>> checking this, maybe I modified it only in the mysql package. Should >>>>>> be quickly fixed. >>>>> >>>>> I did fixed it but forgot to backport it on 3.5 actually... >>>> >>>> Should be better now. Thanks for the report ! >>> I think it is very dangerous to make hibernate.cfg.xml readable for >>> evryone. If you can not avoid it you should mention this fact in the >>> installation documentation. >> >> I can probably change the owner to tomcat and remove the readright for >> all in the xwiki-enterprise-tomcat*-pgsql and >> xwiki-enterprise-tomcat*-mysql (my problem was that the install script >> does not know the aplication server in xwiki-enterprise-pgsql-common >> and xwiki-enterprise-mysql-common).
Yes I see.
> > Done, the right of the hibernate conf file is now 640 and the whole > /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as > owner. >
While installing the new package xwiki-enterprise-tomcat7-pgsql I ran into this regression bug
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 characters) ... dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
> Does this sounds right to you ?
From a technical point of view this should work.
But what are you thinking about the idea to introduce a user and group xwiki, set the needed rights for the user xwiki and group xwiki in the packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common (so the install script does not to have to know the application server) and let the package xwiki-enterprise-<application server>-common add the user of the application server to the group xwiki (e.g. addgroup tomcat7 xwiki).
Adding and removing users to or form the group xwiki instead of fiddleling around with file permissions will make the live of the system administrator more convenient (e.g. if one want to try out a different application server).
But i think more important is the fact that a group based right management will lead to more flexibility and so to fewer future preblems.
Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Am 05.03.2012 13:55, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 12:46 PM, Richard Rafalski <[email protected]> wrote:
Hey Thomas,
regression on xwiki-enterprise-tomcat-common:
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
Missing backport again, or why it's bad to modify already released packages...
Should be ok now.
Could install xwiki-enterprise-tomcat7-pgsql from deb packages. Puuh ... Thank you for the support.
Richard
Am 05.03.2012 12:09, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote:
On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski <[email protected]> wrote: > > Am 03.03.2012 13:07, schrieb Thomas Mortagne: >> On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne >> <[email protected]> wrote: >>> On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski >>> <[email protected]> wrote: >>>> >>>> >>>> Am 02.03.2012 19:47, schrieb Thomas Mortagne: >>>>> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >>>>> <[email protected]> wrote: >>>>>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>>>>> <[email protected]> wrote: >>>>>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>>>>> <[email protected]> wrote: >>>>>>>> Hi Thomas, >>>>>>>> >>>>>>>> thank you for the last modifications on the deb packages. >>>>>>>> >>>>>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>>>>> installation ran without probelms. >>>>>>>> Great! >>>>>>>> >>>>>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>>>>> message. >>>>>>>> >>>>>>>> A quik look into /etc/xwiki showed >>>>>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>>>>> >>>>>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>>>>> solved the problem. >>>>>>>> >>>>>>>> Maybe there is still a problem with setting group/rights on >>>>>>>> hibernate.cfg.xml. I'am not shure. >>>>>>> >>>>>>> That's weird I was sure I changed the right for it to be 644, will >>>>>>> checking this, maybe I modified it only in the mysql package. Should >>>>>>> be quickly fixed. >>>>>> >>>>>> I did fixed it but forgot to backport it on 3.5 actually... >>>>> >>>>> Should be better now. Thanks for the report ! >>>> I think it is very dangerous to make hibernate.cfg.xml readable for >>>> evryone. If you can not avoid it you should mention this fact in the >>>> installation documentation. >>> >>> I can probably change the owner to tomcat and remove the readright for >>> all in the xwiki-enterprise-tomcat*-pgsql and >>> xwiki-enterprise-tomcat*-mysql (my problem was that the install script >>> does not know the aplication server in xwiki-enterprise-pgsql-common >>> and xwiki-enterprise-mysql-common). > > Yes I see. > >> >> Done, the right of the hibernate conf file is now 640 and the whole >> /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as >> owner. >> > > While installing the new package xwiki-enterprise-tomcat7-pgsql I ran > into this regression bug > > dpkg: error processing > /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): > name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 > characters) > ... > dpkg: error processing > /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb > (--unpack): > name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long > (>1000 characters)
I probably forgot to re-apply the ending new line (restarted from the tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
> >> Does this sounds right to you ? > > From a technical point of view this should work. > > But what are you thinking about the idea to introduce a user and group > xwiki, set the needed rights for the user xwiki and group xwiki in the > packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common > (so the install script does not to have to know the application server) > and let the package xwiki-enterprise-<application server>-common add the > user of the application server to the group xwiki (e.g. addgroup tomcat7 > xwiki). > > Adding and removing users to or form the group xwiki instead of > fiddleling around with file permissions will make the live of the system > administrator more convenient (e.g. if one want to try out a different > application server). > > But i think more important is the fact that a group based right > management will lead to more flexibility and so to fewer future preblems. > > Your opinion?
Sounds like a good idea. Could you create a jira issue for it ? I will not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Mon, Mar 5, 2012 at 6:53 PM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 13:55, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 12:46 PM, Richard Rafalski <[email protected]> wrote:
Hey Thomas,
regression on xwiki-enterprise-tomcat-common:
dpkg: error processing /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb (--unpack): name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long (>1000 characters)
Missing backport again, or why it's bad to modify already released packages...
Should be ok now.
Could install xwiki-enterprise-tomcat7-pgsql from deb packages. Puuh ...
Thank you for the support.
Thanks you for the tests and suggestions. I'm pretty new to Debian package creation ;)
Richard
Am 05.03.2012 12:09, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 11:23 AM, Richard Rafalski <[email protected]> wrote:
Am 05.03.2012 08:41, schrieb Thomas Mortagne:
On Mon, Mar 5, 2012 at 8:36 AM, Thomas Mortagne <[email protected]> wrote: > On Sun, Mar 4, 2012 at 2:08 PM, Richard Rafalski > <[email protected]> wrote: >> >> Am 03.03.2012 13:07, schrieb Thomas Mortagne: >>> On Sat, Mar 3, 2012 at 11:56 AM, Thomas Mortagne >>> <[email protected]> wrote: >>>> On Sat, Mar 3, 2012 at 12:46 AM, Richard Rafalski >>>> <[email protected]> wrote: >>>>> >>>>> >>>>> Am 02.03.2012 19:47, schrieb Thomas Mortagne: >>>>>> On Fri, Mar 2, 2012 at 7:36 PM, Thomas Mortagne >>>>>> <[email protected]> wrote: >>>>>>> On Fri, Mar 2, 2012 at 7:34 PM, Thomas Mortagne >>>>>>> <[email protected]> wrote: >>>>>>>> On Fri, Mar 2, 2012 at 5:33 PM, Richard Rafalski >>>>>>>> <[email protected]> wrote: >>>>>>>>> Hi Thomas, >>>>>>>>> >>>>>>>>> thank you for the last modifications on the deb packages. >>>>>>>>> >>>>>>>>> I've installed the package xwiki-enterprise-tomcat7-pgsql. The >>>>>>>>> installation ran without probelms. >>>>>>>>> Great! >>>>>>>>> >>>>>>>>> But I'am sorry to inform you that after pointing the webbrowser to >>>>>>>>> http://xwikipg:8080/xwiki/ I got the well known >>>>>>>>> "Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration" >>>>>>>>> message. >>>>>>>>> >>>>>>>>> A quik look into /etc/xwiki showed >>>>>>>>> -rw-r----- 1 root root 8.1K Mar 2 16:08 hibernate.cfg.xml >>>>>>>>> >>>>>>>>> Changing group from root to tomcat7 and restarting the tomcat7 service >>>>>>>>> solved the problem. >>>>>>>>> >>>>>>>>> Maybe there is still a problem with setting group/rights on >>>>>>>>> hibernate.cfg.xml. I'am not shure. >>>>>>>> >>>>>>>> That's weird I was sure I changed the right for it to be 644, will >>>>>>>> checking this, maybe I modified it only in the mysql package. Should >>>>>>>> be quickly fixed. >>>>>>> >>>>>>> I did fixed it but forgot to backport it on 3.5 actually... >>>>>> >>>>>> Should be better now. Thanks for the report ! >>>>> I think it is very dangerous to make hibernate.cfg.xml readable for >>>>> evryone. If you can not avoid it you should mention this fact in the >>>>> installation documentation. >>>> >>>> I can probably change the owner to tomcat and remove the readright for >>>> all in the xwiki-enterprise-tomcat*-pgsql and >>>> xwiki-enterprise-tomcat*-mysql (my problem was that the install script >>>> does not know the aplication server in xwiki-enterprise-pgsql-common >>>> and xwiki-enterprise-mysql-common). >> >> Yes I see. >> >>> >>> Done, the right of the hibernate conf file is now 640 and the whole >>> /etc/xwiki folder has the proper tomcat5/tomcat6/tomcat7 user as >>> owner. >>> >> >> While installing the new package xwiki-enterprise-tomcat7-pgsql I ran >> into this regression bug >> >> dpkg: error processing >> /var/cache/apt/archives/xwiki-enterprise-common_3.5_all.deb (--unpack): >> name of conffile (starting `/etc/xwiki/web.xml') is too long (>1000 >> characters) >> ... >> dpkg: error processing >> /var/cache/apt/archives/xwiki-enterprise-tomcat-common_3.5_all.deb >> (--unpack): >> name of conffile (starting `/etc/xwiki/xwiki-tomcat.xml') is too long >> (>1000 characters) > > I probably forgot to re-apply the ending new line (restarted from the > tag). Checking.
Should ok now.
Get the following errer during installation
E: Failed to fetch http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-instal...: Size mismatch
I think the cron did not updated the debian repository index yet. I will force it.
> >> >>> Does this sounds right to you ? >> >> From a technical point of view this should work. >> >> But what are you thinking about the idea to introduce a user and group >> xwiki, set the needed rights for the user xwiki and group xwiki in the >> packages xwiki-enterprise-common and xwiki-enterprise-<data base>-common >> (so the install script does not to have to know the application server) >> and let the package xwiki-enterprise-<application server>-common add the >> user of the application server to the group xwiki (e.g. addgroup tomcat7 >> xwiki). >> >> Adding and removing users to or form the group xwiki instead of >> fiddleling around with file permissions will make the live of the system >> administrator more convenient (e.g. if one want to try out a different >> application server). >> >> But i think more important is the fact that a group based right >> management will lead to more flexibility and so to fewer future preblems. >> >> Your opinion? > > Sounds like a good idea. Could you create a jira issue for it ? I will > not have time to work on it right now.
Done. You have allready seen it :)
Richard
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (2)
-
Richard Rafalski -
Thomas Mortagne