Re: [xwiki-users] Could not initialize main XWiki context on Ubuntu
On Thu, Dec 13, 2012 at 9:49 AM, Hoang Tuan Viet vie...@vccloud.vn wrote: Hi, I have checked hibernate file's content before and did not find any problem. The problem is the file's permission: root@ubuntu:~# ll /etc/xwiki/ total 144 drwxr-xr-x 6 vietht vietht 4096 Dec 12 18:23 ./ drwxr-xr-x 94 root root4096 Dec 12 15:19 ../ drwxr-xr-x 5 vietht vietht 4096 Dec 12 11:01 cache/ drwxr-xr-x 3 vietht vietht 4096 Dec 12 11:01 classes/ drwxr-xr-x 2 vietht vietht 4096 Dec 12 11:01 fonts/ -rw-r- 1 root root 8804 Dec 12 18:23 hibernate.cfg.xml -rw-r--r-- 1 vietht vietht 2022 Nov 26 22:12 jboss-deployment-structure.xml drwxr-xr-x 3 vietht vietht 4096 Dec 12 11:01 observation/ -rw-r--r-- 1 vietht vietht 1181 Nov 26 22:12 portlet.xml -rw-r--r-- 1 vietht vietht 14720 Nov 26 22:12 struts-config.xml -rw-r--r-- 1 vietht vietht 435 Nov 26 22:12 sun-web.xml -rw-r--r-- 1 vietht vietht12 Nov 26 22:12 version.properties -rw-r--r-- 1 vietht vietht 13793 Nov 26 22:12 web.xml -rw-r--r-- 1 vietht vietht 30532 Nov 26 22:12 xwiki.cfg -rw-r--r-- 1 vietht vietht 22514 Nov 26 22:12 xwiki.properties -rw-r--r-- 1 root root1257 Nov 26 22:13 xwiki-tomcat.xml I chmod 644 hibernate.cfg.xml file and the problem is solved. I installed XWiki from deb http://maven.xwiki.org stable/ on a fresh Ubuntu server so that there is a mistake on that repository. See http://jira.xwiki.org/browse/XE-1255. Thank you for your support, Viet On 12/13/2012 02:07 PM, Vincent Massol wrote: Hi, On Dec 13, 2012, at 5:52 AM, Hoang Tuan Viet vie...@vccloud.vn wrote: Hi all, I have installed XWiki on a fresh Ubuntu 12.04 server followed this guide http://platform.xwiki.org/**xwiki/bin/view/AdminGuide/** InstallationViaAPThttp://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT My installation: XWiki 4.3, Postgres 9.1, tomcat6. When I tried to navigate to XWiki from other LAN desktop, this error is displayed: HTTP Status 500 - --**--** *type* Exception report [snip] org.hibernate.**HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.**DefaultHibernateSessionFactory** $1.**getConfigurationInputStream(**DefaultHibernateSessionFactory** .java:143) org.hibernate.cfg.**Configuration.configure(** Configuration.java:2157) The error is pretty clear: XWiki (Hibernate) cannot find the Hibernate configuration file. If you can't figure out why you'll need to show us how you start xwiki and where you've setup the files. Thanks -Vincent I tried: - Check the installation followed http://platform.xwiki.org/** xwiki/bin/view/AdminGuide/**InstallationPostgreSQLhttp://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationPostgreSQL xwiki database is created already by dbconfig - Connect to Postgres DB as xwiki user successfully. I see that there are no relations (I think it is correct). Do you have any idea? -- Viet Hoang __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users __**_ users mailing list users@xwiki.org http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Could not initialize main XWiki context on Ubuntu
Hi all, I have installed XWiki on a fresh Ubuntu 12.04 server followed this guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT My installation: XWiki 4.3, Postgres 9.1, tomcat6. When I tried to navigate to XWiki from other LAN desktop, this error is displayed: 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 [xwiki:XWiki.TagClass] 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:120) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) *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 [xwiki:XWiki.TagClass] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:414) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:483) 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:120) org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) *root cause* com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.TagClass] Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:870) com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447) com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:824) com.xpn.xwiki.XWiki.initXWiki(XWiki.java:794) com.xpn.xwiki.XWiki.init(XWiki.java:735) com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:394) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:483) 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:120)
Re: [xwiki-users] Could not initialize main XWiki context on Ubuntu
Hi, On Dec 13, 2012, at 5:52 AM, Hoang Tuan Viet vie...@vccloud.vn wrote: Hi all, I have installed XWiki on a fresh Ubuntu 12.04 server followed this guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT My installation: XWiki 4.3, Postgres 9.1, tomcat6. When I tried to navigate to XWiki from other LAN desktop, this error is displayed: HTTP Status 500 - *type* Exception report [snip] org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:143) org.hibernate.cfg.Configuration.configure(Configuration.java:2157) The error is pretty clear: XWiki (Hibernate) cannot find the Hibernate configuration file. If you can't figure out why you'll need to show us how you start xwiki and where you've setup the files. Thanks -Vincent I tried: - Check the installation followed http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationPostgreSQL xwiki database is created already by dbconfig - Connect to Postgres DB as xwiki user successfully. I see that there are no relations (I think it is correct). Do you have any idea? -- Viet Hoang ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Could not initialize main XWiki context - Xwiki 2.4
I recently switched to a new server and upgraded to the Xwiki Enterprise 2.4. I was able to get the installation working, but after an update to Tomcat6 from the Ubuntu repository, Xwiki stopped working. (I'm not completely sure that the tomcat update was the problem) I tried re-installing Xwiki using the same procedure as before (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheXWikiWARmanually) but it still doesn't work. Tomcat works; at least the default test page. So, I then tried reinstalling tomcat6. Then I copied the previously expanded xwiki WAR contents back into webapps. Same thing. Tomcat appears to work just fine, but xwiki crashes. Details about my setup: Running Ubuntu 64-bit Lucid Lynx 10.04 Tomcat6.0.24 MySQL 5.1.41-3ubuntu12.6 (Ubuntu) The error seems to be complaining about my hibernate file. I have tried following the instructions from the link above by just editing the xml to match to lines in the instructions. I have also tried uncommenting the setup for MySQL in the hibernate file. Both ways produce the same results. Can anyone help, please? I'm pretty desperate. Thanks, travis Here is my hibernate file: ?xml version='1.0' encoding='utf-8'? !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; hibernate-configuration session-factory !-- Please refer to the installation guide on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for configuring your database. You'll need to do 2 things: 1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory 2) Uncomment the properties below for your specific DB (and comment the default database configuration if it doesn't match your DB) -- !-- Generic parameters common to all Databases -- property name=show_sqlfalse/property property name=use_outer_jointrue/property property name=dbcp.defaultAutoCommitfalse/property property name=dbcp.maxActive50/property property name=dbcp.maxIdle5/property property name=dbcp.maxWait3/property property name=dbcp.whenExhaustedAction1/property property name=dbcp.ps.whenExhaustedAction1/property property name=dbcp.ps.maxActive20/property property name=dbcp.ps.maxWait12/property property name=dbcp.ps.maxIdle20/property !-- Without it, some queries fail in MS SQL. XWiki doesn't need scrollable result sets, anyway. -- property name=jdbc.use_scrollable_resultsetfalse/property !-- Configuration for the default database. Comment out this section and uncomment other sections below if you want to use another database. Note that the database tables will be created automatically if they don't already exist. -- property name=connection.urljdbc:myql://localhost/xwiki/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/ !-- MySQL configuration. Uncomment if you want to use MySQL and comment out other database configurations. We need to set the sql_mode to a less strict value, see XWIKI-1945 property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/ -- !-- HSQLDB configuration. Uncomment if you want to use HSQLDB and comment out other database configurations. property name=connection.urljdbc:hsqldb:file:/some/path/xwikidb;shutdown=true/property property name=connection.usernamesa/property property name=connection.password/property property name=connection.driver_classorg.hsqldb.jdbcDriver/property property name=dialectorg.hibernate.dialect.HSQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property
[xwiki-users] Could not initialize main XWiki context when installing version 2.1.1
I just installed a fresh install of xwiki 2.1.1 I had previously used v2.0 without any problems. I did the following to install 2.1.1 - Got a backup of the mysql database folder and the tomcat webapps/xwiki folder to backup the v2.0 - delete the database - Created the database as shown below mysql show databases; ++ | Database | ++ | information_schema | | mysql | ++ 2 rows in set (0.13 sec) mysql create database xwiki - ; Query OK, 1 row affected (0.08 sec) mysql grant all privileges on xwiki.* to xw...@127.0.0.1 identified by 'xwiki' - ; Query OK, 0 rows affected (0.34 sec) mysql - I then updated the hibernate.cfg.xml file. All i did in this file is comment out the hsqldb configuration and uncommented the mysql configuration. Here is my hibernate.cfg.xml file --- ?xml version='1.0' encoding='utf-8'? !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; hibernate-configuration session-factory !-- Please refer to the installation guide on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installationfor configuring your database. You'll need to do 2 things: 1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory 2) Uncomment the properties below for your specific DB (and comment the default database configuration if it doesn't match your DB) -- !-- Generic parameters common to all Databases -- property name=show_sqlfalse/property property name=use_outer_jointrue/property property name=dbcp.defaultAutoCommitfalse/property property name=dbcp.maxActive50/property property name=dbcp.maxIdle5/property property name=dbcp.maxWait3/property property name=dbcp.whenExhaustedAction1/property property name=dbcp.ps.whenExhaustedAction1/property property name=dbcp.ps.maxActive20/property property name=dbcp.ps.maxWait12/property property name=dbcp.ps.maxIdle20/property !-- Without it, some queries fail in MS SQL. XWiki doesn't need scrollable result sets, anyway. -- property name=jdbc.use_scrollable_resultsetfalse/property !-- Configuration for the default database. Comment out this section and uncomment other sections below if you want to use another database. Note that the database tables will be created automatically if they don't already exist. property name=connection.urljdbc:hsqldb:file:database/xwiki_db;shutdown=true/property property name=connection.usernamesa/property property name=connection.password/property property name=connection.driver_classorg.hsqldb.jdbcDriver/property property name=dialectorg.hibernate.dialect.HSQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/-- !-- MySQL configuration. Uncomment if you want to use MySQL and comment out other database configurations. We need to set the sql_mode to a less strict value, see XWIKI-1945-- property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/ !-- HSQLDB configuration. Uncomment if you want to use HSQLDB and comment out other database configurations. property name=connection.urljdbc:hsqldb:file:/some/path/xwikidb;shutdown=true/property property name=connection.usernamesa/property property name=connection.password/property property name=connection.driver_classorg.hsqldb.jdbcDriver/property property name=dialectorg.hibernate.dialect.HSQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/ -- !-- PostgreSQL configuration. Uncomment if you want to use PostgreSQL and comment out other database
Re: [xwiki-users] Could not initialize main XWiki context when installing version 2.1.1
I forgot to mention that to install xwiki, i extracted the zip file and copied it to webapps/ On Thu, Jan 7, 2010 at 6:31 PM, Ziggy zigg...@gmail.com wrote: I just installed a fresh install of xwiki 2.1.1 I had previously used v2.0 without any problems. I did the following to install 2.1.1 - Got a backup of the mysql database folder and the tomcat webapps/xwiki folder to backup the v2.0 - delete the database - Created the database as shown below mysql show databases; ++ | Database | ++ | information_schema | | mysql | ++ 2 rows in set (0.13 sec) mysql create database xwiki - ; Query OK, 1 row affected (0.08 sec) mysql grant all privileges on xwiki.* to xw...@127.0.0.1 identified by 'xwiki' - ; Query OK, 0 rows affected (0.34 sec) mysql - I then updated the hibernate.cfg.xml file. All i did in this file is comment out the hsqldb configuration and uncommented the mysql configuration. Here is my hibernate.cfg.xml file --- ?xml version='1.0' encoding='utf-8'? !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; hibernate-configuration session-factory !-- Please refer to the installation guide on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installationfor configuring your database. You'll need to do 2 things: 1) Copy your database driver JAR in WEB-INF/lib or in some shared lib directory 2) Uncomment the properties below for your specific DB (and comment the default database configuration if it doesn't match your DB) -- !-- Generic parameters common to all Databases -- property name=show_sqlfalse/property property name=use_outer_jointrue/property property name=dbcp.defaultAutoCommitfalse/property property name=dbcp.maxActive50/property property name=dbcp.maxIdle5/property property name=dbcp.maxWait3/property property name=dbcp.whenExhaustedAction1/property property name=dbcp.ps.whenExhaustedAction1/property property name=dbcp.ps.maxActive20/property property name=dbcp.ps.maxWait12/property property name=dbcp.ps.maxIdle20/property !-- Without it, some queries fail in MS SQL. XWiki doesn't need scrollable result sets, anyway. -- property name=jdbc.use_scrollable_resultsetfalse/property !-- Configuration for the default database. Comment out this section and uncomment other sections below if you want to use another database. Note that the database tables will be created automatically if they don't already exist. property name=connection.urljdbc:hsqldb:file:database/xwiki_db;shutdown=true/property property name=connection.usernamesa/property property name=connection.password/property property name=connection.driver_classorg.hsqldb.jdbcDriver/property property name=dialectorg.hibernate.dialect.HSQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/-- !-- MySQL configuration. Uncomment if you want to use MySQL and comment out other database configurations. We need to set the sql_mode to a less strict value, see XWIKI-1945-- property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property name=statement_cache.size2/property mapping resource=xwiki.hbm.xml/ mapping resource=feeds.hbm.xml/ mapping resource=activitystream.hbm.xml/ !-- HSQLDB configuration. Uncomment if you want to use HSQLDB and comment out other database configurations. property name=connection.urljdbc:hsqldb:file:/some/path/xwikidb;shutdown=true/property property name=connection.usernamesa/property property name=connection.password/property property name=connection.driver_classorg.hsqldb.jdbcDriver/property property name=dialectorg.hibernate.dialect.HSQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.pool_size2/property property
Re: [xwiki-users] Could not initialize main XWiki context when installing version 2.1.1
Ok, i found the log file.. i found these errors in the log file 2010-01-07 18:05:42,972 [http://localhost:8080/xwiki/bin/view/Main/] WARN util.JDBCExceptionReporter - SQL Error: 1146, SQLState: 42S02 2010-01-07 18:05:42,972 [http://localhost:8080/xwiki/bin/view/Main/] ERROR util.JDBCExceptionReporter - Table 'xwiki.xwikidbversion' doesn't exist 2010-01-07 18:05:42,988 [http://localhost:8080/xwiki/bin/view/Main/] WARN action.RequestProcessor - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 2010-01-07 18:05:56,691 [http://localhost:8080/xwiki/bin/view/Main/] WARN rnal.DefaultObservationManager - The [com.xpn.xwiki.store.XWikiCacheStore] listener has overwritten a previously registered listener [com.xpn.xwiki.store.XWikiCacheStore] since they both are registered under the same id [XWikiCacheStore]. In the future consider removing a Listener first if you really want to register it again. 2010-01-07 18:05:56,707 [http://localhost:8080/xwiki/bin/view/Main/] WARN util.JDBCExceptionReporter - SQL Error: 1146, SQLState: 42S02 2010-01-07 18:05:56,707 [http://localhost:8080/xwiki/bin/view/Main/] ERROR util.JDBCExceptionReporter - Table 'xwiki.xwikidbversion' doesn't exist 2010-01-07 18:05:56,707 [http://localhost:8080/xwiki/bin/view/Main/] WARN action.RequestProcessor - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 2010-01-07 18:06:24,144 [http://localhost:8080/xwiki/bin/view/Main/] WARN rnal.DefaultObservationManager - The [com.xpn.xwiki.store.XWikiCacheStore] listener has overwritten a previously registered listener [com.xpn.xwiki.store.XWikiCacheStore] since they both are registered under the same id [XWikiCacheStore]. In the future consider removing a Listener first if you really want to register it again. 2010-01-07 18:06:24,144 [http://localhost:8080/xwiki/bin/view/Main/] WARN util.JDBCExceptionReporter - SQL Error: 1146, SQLState: 42S02 2010-01-07 18:06:24,144 [http://localhost:8080/xwiki/bin/view/Main/] ERROR util.JDBCExceptionReporter - Table 'xwiki.xwikidbversion' doesn't exist 2010-01-07 18:06:24,160 [http://localhost:8080/xwiki/bin/view/Main/] WARN action.RequestProcessor - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException 2010-01-07 18:20:38,041 [http://localhost:8080/xwiki/bin/view/Main/] 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))] com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'feeds_aggregatorgroup' already exists at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1564) at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1485) at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:225) at org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingStatement.java:225) at com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernateBaseStore.java:494) at com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernateBaseStore.java:310) at com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernateBaseStore.java:256) at com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:565) at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1026) at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1070) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:68) at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.init(AbstractXWikiMigrationManager.java:68) at com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.init(XWikiHibernateMigrationManager.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[xwiki-users] Could not initialize main XWiki context
I have installed the enterprise xwiki.war completed all intructions for Tomcat Servlet and MySQL Database configuration. When I try to connect from my browser the error occurs below. The Wiki is running on a hosted tomcat webserver. I've found the general error alot but not with the following line code: Wrapped Exception: Could not parse mapping document from resource xwiki.hbm.xml I thought the error might be related to some mistakes in the hibernate.cfg.xml Name of database: 24_xwiki Password: xwiki123 property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=false/property property name=connection.username24_xwiki/property property name=connection.passwordxwiki123/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_class I'm a newbie concerning web hosting so thanks for any help as I' ve got stuck since Saturday :( javax.servlet.ServletException: 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 parse mapping document from resource xwiki.hbm.xml 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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) root cause 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 parse mapping document from resource xwiki.hbm.xml com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) 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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) -- View this message in context: http://n2.nabble.com/Could-not-initialize-main-XWiki-context-tp4051328p4051328.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Could not initialize main XWiki context
Hi, Faubi wrote: I have installed the enterprise xwiki.war completed all intructions for Tomcat Servlet and MySQL Database configuration. When I try to connect from my browser the error occurs below. The Wiki is running on a hosted tomcat webserver. I've found the general error alot but not with the following line code: Wrapped Exception: Could not parse mapping document from resource xwiki.hbm.xml I thought the error might be related to some mistakes in the hibernate.cfg.xml Name of database: 24_xwiki Is this the user name or the database schema name? Password: xwiki123 property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=false/property The connection URL shows that xwiki is the database name, not 24_xwiki. Hope this helps, Marius property name=connection.username24_xwiki/property property name=connection.passwordxwiki123/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_class I'm a newbie concerning web hosting so thanks for any help as I' ve got stuck since Saturday :( javax.servlet.ServletException: 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 parse mapping document from resource xwiki.hbm.xml 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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) root cause 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 parse mapping document from resource xwiki.hbm.xml com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:339) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:400) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) 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.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Could not initialize main XWiki context
I got it to work as a service with Tomcat and MySQL. I accidentally installed two jar files for the db connectors. Duh. On 10/3/07, John Coleman [EMAIL PROTECTED] wrote: We use the embedded Jetty server and database, I just use a JSWrapper to provide the NT Service. This only took an hour or so to set up. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sheila Hobeck Sent: 02 October 2007 18:09 To: XWiki Users Subject: [xwiki-users] Could not initialize main XWiki context I had to install Tomcat with MySQL so that I can set the wiki up as a windows service. I tried to set it up with just Jetty - with no luck. I have been struggling with this for hours now. I read old emails regarding hibernate.cg.xml setup - and I have tried many possible combinations: property name=connection.urljdbc:mysql://127.0.0.1 /xwiki?useServerPrepStmts=false/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name= connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/p roperty property name=connection.urljdbc:mysql:// localhost/xwiki?useServerPrepStmts=false/property property name=connection.usernamexwiki/property property name=connection.password xwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi der/property All of which give me the same error. 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 XWiki.XWikiPreferences Wrapped Exception: Unknown entity: com.xpn.xwiki.doc.XWikiDocument org.apache.struts.action.RequestProcessor.processException(RequestProces sor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.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 :690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi ngFilter.java:117) Please help. If I don't get this installed as a windows service (which IMHO should not be difficult), I will have to resort to another wiki. Sheila Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Mothers of little boys work from son up til son down! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Could not initialize main XWiki context
I had to install Tomcat with MySQL so that I can set the wiki up as a windows service. I tried to set it up with just Jetty - with no luck. I have been struggling with this for hours now. I read old emails regarding hibernate.cg.xml setup - and I have tried many possible combinations: property name=connection.urljdbc:mysql://127.0.0.1/xwiki?useServerPrepStmts=false/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property property name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=false/property property name=connection.usernamexwiki/property property name=connection.passwordxwiki/property property name=connection.driver_classcom.mysql.jdbc.Driver/property property name=dialectorg.hibernate.dialect.MySQLDialect/property property name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property All of which give me the same error. 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 XWiki.XWikiPreferences Wrapped Exception: Unknown entity: com.xpn.xwiki.doc.XWikiDocument 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:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) Please help. If I don't get this installed as a windows service (which IMHO should not be difficult), I will have to resort to another wiki. Sheila ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users