Richard Rafalski just reported the same bug in another mail, looks
like installing 3.5 from scratch fail to generate the hibernate file
from the template. I'm looking at it but I don't know why yet.
See
On Tue, Feb 28, 2012 at 9:00 PM, Arnaud bourree
<arnaud.bourree(a)gmail.com> wrote:
Hello,
After try to migrate from 3.4-rc-1 to 3.5, I finally purge 3.4-rc-1
install and try fresh installation but I get following error:
- during installation:
$sudo aptitude install xwiki-enterprise-tomcat6-mysql
The following NEW packages will be installed:
xwiki-enterprise-common{a} xwiki-enterprise-mysql-common{a}
xwiki-enterprise-tomcat-common{a} xwiki-enterprise-tomcat6-mysql
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/140 MB of archives. After unpacking 212 MB will be used.
Do you want to continue? [Y/n/?]
Selecting previously deselected package xwiki-enterprise-common.
(Reading database ... 265905 files and directories currently installed.)
Unpacking xwiki-enterprise-common (from
.../xwiki-enterprise-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-mysql-common.
Unpacking xwiki-enterprise-mysql-common (from
.../xwiki-enterprise-mysql-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-tomcat-common.
Unpacking xwiki-enterprise-tomcat-common (from
.../xwiki-enterprise-tomcat-common_3.5_all.deb) ...
Selecting previously deselected package xwiki-enterprise-tomcat6-mysql.
Unpacking xwiki-enterprise-tomcat6-mysql (from
.../xwiki-enterprise-tomcat6-mysql_3.5_all.deb) ...
Setting up xwiki-enterprise-common (3.5) ...
Setting up xwiki-enterprise-mysql-common (3.5) ...
dbconfig-common: writing config to /etc/dbconfig-common/xwiki.conf
Creating config file /etc/dbconfig-common/xwiki.conf with new version
Not replacing deleted config file /etc/xwiki/hibernate.cfg.xml
chown: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or directory
chmod: cannot access `/etc/xwiki/hibernate.cfg.xml': No such file or directory
granting access to database xwiki for xwiki@localhost: already exists.
creating database xwiki: already exists.
dbconfig-common: flushing administrative password
Setting up xwiki-enterprise-tomcat-common (3.5) ...
Setting up xwiki-enterprise-tomcat6-mysql (3.5) ...
* Stopping Tomcat servlet engine tomcat6
[ OK ]
* Starting Tomcat servlet engine tomcat6
[ OK ]
- when accessing web page:
$curl "http://localhost:8080/xwiki/bin/view/Main/"
<html><head><title>Apache Tomcat/6.0.32 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color :
#525D76;}--></style> </head><body><h1>HTTP Status 500 -
</h1><HR
size="1" noshade="noshade"><p><b>type</b>
Exception
report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The
server encountered an internal error () that prevented it from
fulfilling this request.</u></p><p><b>exception</b>
<pre>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)
</pre></p><p><b>root cause</b>
<pre>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)
</pre></p><p><b>root cause</b>
<pre>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)
</pre></p><p><b>root cause</b>
<pre>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)
</pre></p><p><b>note</b> <u>The full stack trace of
the root cause is
available in the Apache Tomcat/6.0.32 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/6.0.32</h3></body></html>
And there is no /etc/xwiki/hibernate.cfg.xml and
/usr/lib/xwiki/WEB-INF/hibernate.cfg.xml link to
/etc/xwiki/hibernate.cfg.xml
$ll /etc/xwiki/
total 292
drwxr-xr-x 6 root root 4096 2012-02-28 20:41 ./
drwxr-xr-x 170 root root 12288 2012-02-28 20:41 ../
drwxr-xr-x 5 root root 4096 2012-02-28 20:41 cache/
drwxr-xr-x 3 root root 4096 2012-02-28 20:41 classes/
drwxr-xr-x 2 root root 4096 2012-02-28 20:41 fonts/
drwxr-xr-x 3 root root 4096 2012-02-28 20:41 observation/
-rw-r--r-- 1 root root 1181 2012-02-27 17:49 portlet.xml
-rw-r--r-- 1 root root 7754 2012-02-27 17:49 struts-bean.tld
-rw-r--r-- 1 root root 14433 2012-02-27 17:49 struts-config.xml
-rw-r--r-- 1 root root 36370 2012-02-27 17:49 struts-form.tld
-rw-r--r-- 1 root root 46429 2012-02-27 17:49 struts-html.tld
-rw-r--r-- 1 root root 12077 2012-02-27 17:49 struts-logic.tld
-rw-r--r-- 1 root root 1564 2012-02-27 17:49 struts-template.tld
-rw-r--r-- 1 root root 51057 2012-02-27 17:49 struts.tld
-rw-r--r-- 1 root root 435 2012-02-27 17:49 sun-web.xml
-rw-r--r-- 1 root root 12 2012-02-27 17:49 version.properties
-rw-r--r-- 1 root root 14312 2012-02-27 17:49 web.xml
-rw-r--r-- 1 root root 30208 2012-02-27 17:49 xwiki.cfg
-rw-r--r-- 1 root root 20397 2012-02-27 17:49 xwiki.properties
-rw-r--r-- 1 root root 325 2012-02-27 17:49 xwiki-tomcat.xml
Regards,
Arnaud.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users