Re: [xwiki-users] Initial set-up error

2008-09-24 Thread Evan Pease
Hi Sergiu,

I checked the logs. I see an access denied error that I didn't see on
the error page. I'll go straight to the log files from now on.

Thanks!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sergiu Dumitriu
Sent: Tuesday, September 23, 2008 5:16 PM
To: XWiki Users
Subject: Re: [xwiki-users] Initial set-up error

Evan Pease wrote:
 I cannot find any problems in the hibernate.cfg.xml file despite the
 error message. Would I receive this error if it cannot connect to the
 database or because there is something wrong with the configuration
file
 itself?
 
 Here is my hibernate.cfg.xml file, we are using MySQL. I've replaced
 usernames and passwords. Thank you so much for your help.
 

The configuration file looks good. Are you sure you placed the 
mysql-connector jar in the lib folder? If yes, then there should be a 
deeper error in that stacktrace, can you get it from the logs?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Vincent Massol
Hi Evan,

The answer is in your exception. Check the stack trace. It says:


Wrapped Exception: Could not create a DBCP pool. There is an error in
the hibernate configuration file, please review it.


So all you have to do is fix the hibernate.cfg.xml file.

You should also read 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

Thanks
-Vincent

On Sep 23, 2008, at 7:04 AM, Evan Pease wrote:

 Hi everyone,



 This is my first post. We're trying to set-up xwiki on Tomcat with
 MySQL. We believe everything is configured properly according to the
 documentation but we keep receiving the following error.



 Any ideas where we should start troubleshooting?



 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 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 create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.


 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:617)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


 com 
 .xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.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 create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.

com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:322)

com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)


 org 
 .apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.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.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.java:112)

 note The full stack trace of the root cause is available in the Apache
 Tomcat/6.0.18 logs.

 

 Apache Tomcat/6.0.18
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Evan Pease
/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
property
name=hibernate.connection.SetBigStringTryClobtrue/property
property name=hibernate.jdbc.batch_size0/property
mapping resource=xwiki.oracle.hbm.xml/
mapping resource=feeds.oracle.hbm.xml/
--

!-- Derby configuration.
 Uncomment if you want to use Derby and comment out other
database configurations.
 Note that the database will be created automatically if it
doesn't already exist.
property
name=connection.urljdbc:derby:/some/path/xwikidb;create=true/propert
y
property
name=connection.driver_classorg.apache.derby.jdbc.EmbeddedDriver/pro
perty
property
name=dialectorg.hibernate.dialect.DerbyDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvi
der/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.derby.hbm.xml/
mapping resource=feeds.hbm.xml/
--

  /session-factory
/hibernate-configuration




===


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Vincent Massol
Sent: Tuesday, September 23, 2008 12:24 AM
To: XWiki Users
Subject: Re: [xwiki-users] Initial set-up error

Hi Evan,

The answer is in your exception. Check the stack trace. It says:


Wrapped Exception: Could not create a DBCP pool. There is an error in
the hibernate configuration file, please review it.


So all you have to do is fix the hibernate.cfg.xml file.

You should also read
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

Thanks
-Vincent

On Sep 23, 2008, at 7:04 AM, Evan Pease wrote:

 Hi everyone,



 This is my first post. We're trying to set-up xwiki on Tomcat with
 MySQL. We believe everything is configured properly according to the
 documentation but we keep receiving the following error.



 Any ideas where we should start troubleshooting?



 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 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 create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.


 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:617)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


 com 
 .xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.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 create a DBCP pool. There is an error in
 the hibernate configuration file, please review it.

com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:322)

com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)

com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)


 org 
 .apache.struts.action.RequestProcessor.processActionPerform(RequestPr
 ocessor.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.SavedRequestRestorerFilter.doFilter(SavedRequestRestor
 erFilter.java:287)


 com 
 .xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi
 ngFilter.java:112)

 note The full stack trace of the root

Re: [xwiki-users] Initial set-up error

2008-09-23 Thread Sergiu Dumitriu
Evan Pease wrote:
 I cannot find any problems in the hibernate.cfg.xml file despite the
 error message. Would I receive this error if it cannot connect to the
 database or because there is something wrong with the configuration file
 itself?
 
 Here is my hibernate.cfg.xml file, we are using MySQL. I've replaced
 usernames and passwords. Thank you so much for your help.
 

The configuration file looks good. Are you sure you placed the 
mysql-connector jar in the lib folder? If yes, then there should be a 
deeper error in that stacktrace, can you get it from the logs?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users