Vittorio Torroni wrote:
Hi all,
when I try to go to
http://localhost:8080/xwiki/bin/view/Main/, Tomcat
throws an exception:
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not execute query
Looking at the Tomcat logs, I find 2 errors in Catalina.out:
1)
2009-06-07 10:28:04,363 [
http://localhost:8080/xwiki/bin/view/Main/]
[http-8080-1] ERROR store.XWikiHibernateBaseStore - Failed updating
schema while executing query [create table feeds_aggregatorgroup
(agg_id integer not null, agg_name text, primary key (agg_id))]
java.sql.SQLException: Can't create table 'feeds_aggregatorgroup' (errno: 13)
This looks like a database rights issue. Please make sure the database
user has the right to modify the database, including creating and
altering tables. If you don't want to give these rights for long, you
can just temporarily grant them (or use a user with these rights) for
the first time XWiki starts.
[...]
2)
2009-06-07 10:28:04,420 [
http://localhost:8080/xwiki/bin/view/Main/]
[http-8080-1] WARN util.JDBCExceptionReporter - SQL Error: 1017,
SQLState: HY000
2009-06-07 10:28:04,420 [
http://localhost:8080/xwiki/bin/view/Main/]
[http-8080-1] ERROR util.JDBCExceptionReporter - Can't find file:
'./xwiki/xwikidbversion.frm' (errno: 13)
com.xpn.xwiki.XWikiException: Error number 3001 in 3: Cannot load
class com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
This might be a filesystem rights issue, make sure the user running the
container has write access to the folder containing the database.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/