Re: Could not initialize main XWiki context

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Ludovic Dubost

The connection setting must be wrong in the WEB-INF/hibernate.cfg.xml file..
We must have left our own IP address instead of localhost..
What do you have in the file ?

Ludovic

John Rodriguez wrote:

>
> I have the same problem as Jonathan Chauncey posted on 01 Aug 2005.
>
> In you reply, you requested more wrapped exceptions to help determine
> the cause of the error.
>
> Did he provide such and if so, was the solution found?
>
>  
>
> Here is my stack trace:
>
>  
>
> javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
>         at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
>
> *root cause*
>
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
>         at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
>         at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>         at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
>  
>  
> Wrapped Exception:
>  
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>         at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>         at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>         at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>         at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>         at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>         at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>         at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
>  
>  
> Wrapped Exception:
>  
> org.hibernate.HibernateException: Could not create a DBCP pool
>         at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
>         at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>         at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>         at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>         at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>         at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>         at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>         at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>         at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>         at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>         at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>         at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception:
>  
> ** BEGIN NESTED EXCEPTION **
>  
> java.net.SocketException
> MESSAGE: java.net.ConnectException: Connection timed out
>  
> STACKTRACE:
>  
> java.net.SocketException: java.net.ConnectException: Connection timed out
>         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
>         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
>         at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
>         at com.mysql.jdbc.Connection.<init>(Connection.java:430)
>         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
>         at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>         at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>         at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>         at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>         at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>         at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>         at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>         at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>         at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>         at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>         at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>         at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>         at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>         at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
>  
>  
> ** END NESTED EXCEPTION **
>  
> )
>         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>         at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>         ... 55 more
> Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
>  
> ** BEGIN NESTED EXCEPTION **
>  
> java.net.SocketException
> MESSAGE: java.net.ConnectException: Connection timed out
>  
> STACKTRACE:
>  
> java.net.SocketException: java.net.ConnectException: Connection timed out
>         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
>         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
>         at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
>         at com.mysql.jdbc.Connection.<init>(Connection.java:430)
>         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
>         at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>         at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>         at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>         at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>         at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>         at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>         at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>         at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>         at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>         at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>         at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>         at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>         at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>         at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>         at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>         at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         at java.lang.Thread.run(Thread.java:534)
>  
>  
> ** END NESTED EXCEPTION **
>  
>  
>         at com.mysql.jdbc.Connection.createNewIO(Connection.java:1830)
>         at com.mysql.jdbc.Connection.<init>(Connection.java:430)
>         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
>         at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>         at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>         ... 57 more
>
>  
>

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Could not initialize main XWiki context

mabayona
Hi,

I?m having the same error messages as indicated in the archive in the mailing list and the content of the file  hibernate.cfg.xml, seems to be OK. However after researching, I have two hints on where the problem could be:

1) I?m using linux+tomcat5.5+J2SDK 1.5_04 and maybe that is the reason (install recomends to use java 1.4.2 and tomcat 4.1).

2) the file xwiki.cfg contains:

....
xwiki.authentication=form
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
xwiki.authentication.useip=false
....

what do you think?


Thanks in advance

   Miguel A. Bayona



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Could not initialize main XWiki context

mabayona
In reply to this post by Ludovic Dubost
the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?

Regards,

    Miguel A. Bayona

===== file hibernate.cfg.xml ======
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>

<property name="dbcp.defaultAutoCommit">false</property>
<property name="dbcp.maxActive">50</property>
<property name="dbcp.maxIdle">5</property>
<property name="dbcp.maxWait">30000</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxActive">20</property>
<property name="dbcp.ps.maxWait">120000</property>
<property name="dbcp.ps.maxIdle">20</property>

<property name="connection.url">jdbc:mysql://localhost/xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">50</property>
<property name="statement_cache.size">50</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files -->
<mapping resource="xwiki.hbm.xml"/>
</session-factory>
</hibernate-configuration>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Ludovic Dubost

I think it should.. We have done tests at least separatly of both tools.
There could be some conflicts with pool, dbcp and mysql libraries. Try
copying them in the common/lib directory of tomcat

Ludovic

[hidden email] wrote:

> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>
> Regards,
>
>     Miguel A. Bayona
>
> ===== file hibernate.cfg.xml ======
> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
>                                          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
> <hibernate-configuration>
> <session-factory>
> <property name="show_sql">false</property>
> <property name="use_outer_join">true</property>
>
> <property name="dbcp.defaultAutoCommit">false</property>
> <property name="dbcp.maxActive">50</property>
> <property name="dbcp.maxIdle">5</property>
> <property name="dbcp.maxWait">30000</property>
> <property name="dbcp.whenExhaustedAction">1</property>
> <property name="dbcp.ps.whenExhaustedAction">1</property>
> <property name="dbcp.ps.maxActive">20</property>
> <property name="dbcp.ps.maxWait">120000</property>
> <property name="dbcp.ps.maxIdle">20</property>
>
> <property name="connection.url">jdbc:mysql://localhost/xwiki</property>
> <property name="connection.username">xwiki</property>
> <property name="connection.password">xwiki</property>
> <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
> <property name="connection.pool_size">50</property>
> <property name="statement_cache.size">50</property>
> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
> <!-- Mapping files -->
> <mapping resource="xwiki.hbm.xml"/>
> </session-factory>
> </hibernate-configuration>
>
>  
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

mabayona
I have already done it (to copy thje three jar files in common/lib) as
recommended in the installation instructions. I have installed java
1.4.2_09 an I get the same message error. Now I?m trying to install
tomcat 4.1 an d to test it . I?ll let you know. By the way, what about
the contents of the xwiki.cfg file that i?ve identified in another
e-mail? I send then to you juast in case. Are these lines ok?

thanks in advance,

     Miguel Angel Bayona

============= xwiki.cfg =========
...
# This parameter will activate the exo integration
xwiki.exo=0

xwiki.authentication=form
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
xwiki.authentication.useip=false
===================


Ludovic Dubost escribi?:

>
> I think it should.. We have done tests at least separatly of both tools.
> There could be some conflicts with pool, dbcp and mysql libraries. Try
> copying them in the common/lib directory of tomcat
>
> Ludovic
>
> [hidden email] wrote:
>
>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>
>> Regards,
>>
>>     Miguel A. Bayona
>>
>> ===== file hibernate.cfg.xml ======
>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>> Configuration DTD//EN"
>>                                          
>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>> <hibernate-configuration>
>> <session-factory>
>> <property name="show_sql">false</property>
>> <property name="use_outer_join">true</property>
>>
>> <property name="dbcp.defaultAutoCommit">false</property>
>> <property name="dbcp.maxActive">50</property>
>> <property name="dbcp.maxIdle">5</property>
>> <property name="dbcp.maxWait">30000</property>
>> <property name="dbcp.whenExhaustedAction">1</property>
>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>> <property name="dbcp.ps.maxActive">20</property>
>> <property name="dbcp.ps.maxWait">120000</property>
>> <property name="dbcp.ps.maxIdle">20</property>
>>
>> <property name="connection.url">jdbc:mysql://localhost/xwiki</property>
>> <property name="connection.username">xwiki</property>
>> <property name="connection.password">xwiki</property>
>> <property
>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>> <property
>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>
>> <property name="connection.pool_size">50</property>
>> <property name="statement_cache.size">50</property>
>> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
>> <!-- Mapping files -->
>> <mapping resource="xwiki.hbm.xml"/>
>> </session-factory>
>> </hibernate-configuration>
>>
>>  
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  
>




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Ludovic Dubost

These lines have no problem.. Have you checked the rights of your mysql
installation ?

Ludovic

Miguel Angel Bayona Pérez wrote:

> I have already done it (to copy thje three jar files in common/lib) as
> recommended in the installation instructions. I have installed java
> 1.4.2_09 an I get the same message error. Now I´m trying to install
> tomcat 4.1 an d to test it . I´ll let you know. By the way, what about
> the contents of the xwiki.cfg file that i´ve identified in another
> e-mail? I send then to you juast in case. Are these lines ok?
>
> thanks in advance,
>
>     Miguel Angel Bayona
>
> ============= xwiki.cfg =========
> ...
> # This parameter will activate the exo integration
> xwiki.exo=0
>
> xwiki.authentication=form
> xwiki.authentication.validationKey=totototototototototototototototo
> xwiki.authentication.encryptionKey=titititititititititititititititi
> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
> xwiki.authentication.useip=false
> ===================
>
>
> Ludovic Dubost escribió:
>
>>
>> I think it should.. We have done tests at least separatly of both tools.
>> There could be some conflicts with pool, dbcp and mysql libraries.
>> Try copying them in the common/lib directory of tomcat
>>
>> Ludovic
>>
>> [hidden email] wrote:
>>
>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>>
>>> Regards,
>>>
>>>     Miguel A. Bayona
>>>
>>> ===== file hibernate.cfg.xml ======
>>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>>> Configuration DTD//EN"
>>>                                          
>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>> <hibernate-configuration>
>>> <session-factory>
>>> <property name="show_sql">false</property>
>>> <property name="use_outer_join">true</property>
>>>
>>> <property name="dbcp.defaultAutoCommit">false</property>
>>> <property name="dbcp.maxActive">50</property>
>>> <property name="dbcp.maxIdle">5</property>
>>> <property name="dbcp.maxWait">30000</property>
>>> <property name="dbcp.whenExhaustedAction">1</property>
>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>> <property name="dbcp.ps.maxActive">20</property>
>>> <property name="dbcp.ps.maxWait">120000</property>
>>> <property name="dbcp.ps.maxIdle">20</property>
>>>
>>> <property name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>> <property name="connection.username">xwiki</property>
>>> <property name="connection.password">xwiki</property>
>>> <property
>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>> <property
>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>
>>> <property name="connection.pool_size">50</property>
>>> <property name="statement_cache.size">50</property>
>>> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>> <!-- Mapping files -->
>>> <mapping resource="xwiki.hbm.xml"/>
>>> </session-factory>
>>> </hibernate-configuration>
>>>
>>>  
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>  
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

mabayona
Hi,

well, I?m a little bit lost. I have done the following: (one step at a
time):

test with java 1.4.2 and later with 1.5.
test with tomcat 5.5 and later 4.1
I use mysql 4.1 always.

I use linux Debian (v3.1) sarge

I have updated to the last available jars for pool, dbcp & driver:

commons-dbcp-1.2.1.jar
commons-pool-1.2.jar
mysql-connector-java-3.1.10-bin.jar

(I tried with the original ones as well)

I've moved the jar over to common/lib (without and with deleting them
from its original place WEB-INF/lib to avoid conflicts). By the way,
when I removed them all from WEB-INF/lib, the system complained about a
mssing collections jar. It was available in WEB-INF/lib and I moved it
to common/lib. It solved it but then the old message showed again
(i.e.Could not initialize main XWiki context/Could not create a DBCP pool).

I've also changed the hibernate.cfg.xml user and password and included a
user (i.e. root) and password with complete access rights on the
Database after testing with xwiki/xwiki/xwiki.

I include the log files of the last runs: They are runing on tomcat5.5,
mysql 4.1, java1.5.

I've got the feeling that it is something stupid, but I've run out of
ideas. Could you give me some hints on how to proceed?

Regards,

      Miguel A. Bayona




Ludovic Dubost escribi?:

>
> These lines have no problem.. Have you checked the rights of your
> mysql installation ?
>
> Ludovic
>
> Miguel Angel Bayona P?rez wrote:
>
>> I have already done it (to copy thje three jar files in common/lib)
>> as recommended in the installation instructions. I have installed
>> java 1.4.2_09 an I get the same message error. Now I?m trying to
>> install tomcat 4.1 an d to test it . I?ll let you know. By the way,
>> what about the contents of the xwiki.cfg file that i?ve identified in
>> another e-mail? I send then to you juast in case. Are these lines ok?
>>
>> thanks in advance,
>>
>>     Miguel Angel Bayona
>>
>> ============= xwiki.cfg =========
>> ...
>> # This parameter will activate the exo integration
>> xwiki.exo=0
>>
>> xwiki.authentication=form
>> xwiki.authentication.validationKey=totototototototototototototototo
>> xwiki.authentication.encryptionKey=titititititititititititititititi
>> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>> xwiki.authentication.useip=false
>> ===================
>>
>>
>> Ludovic Dubost escribi?:
>>
>>>
>>> I think it should.. We have done tests at least separatly of both
>>> tools.
>>> There could be some conflicts with pool, dbcp and mysql libraries.
>>> Try copying them in the common/lib directory of tomcat
>>>
>>> Ludovic
>>>
>>> [hidden email] wrote:
>>>
>>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>>>
>>>> Regards,
>>>>
>>>>     Miguel A. Bayona
>>>>
>>>> ===== file hibernate.cfg.xml ======
>>>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>>>> Configuration DTD//EN"
>>>>                                          
>>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>>> <hibernate-configuration>
>>>> <session-factory>
>>>> <property name="show_sql">false</property>
>>>> <property name="use_outer_join">true</property>
>>>>
>>>> <property name="dbcp.defaultAutoCommit">false</property>
>>>> <property name="dbcp.maxActive">50</property>
>>>> <property name="dbcp.maxIdle">5</property>
>>>> <property name="dbcp.maxWait">30000</property>
>>>> <property name="dbcp.whenExhaustedAction">1</property>
>>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>>> <property name="dbcp.ps.maxActive">20</property>
>>>> <property name="dbcp.ps.maxWait">120000</property>
>>>> <property name="dbcp.ps.maxIdle">20</property>
>>>>
>>>> <property
>>>> name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>>> <property name="connection.username">xwiki</property>
>>>> <property name="connection.password">xwiki</property>
>>>> <property
>>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>>> <property
>>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>>
>>>> <property name="connection.pool_size">50</property>
>>>> <property name="statement_cache.size">50</property>
>>>> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>>> <!-- Mapping files -->
>>>> <mapping resource="xwiki.hbm.xml"/>
>>>> </session-factory>
>>>> </hibernate-configuration>
>>>>
>>>>  
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
>>>> [hidden email] mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page:
>>>> http://www.objectweb.org/wws
>>>>  
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>  
>>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  
>

12:49:08,366  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
12:49:10,244 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 44 more
12:49:10,501 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
12:49:10,656 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
12:49:10,672  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
12:49:10,674 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


org.hibernate.HibernateException: Could not create a DBCP pool
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        ... 40 more
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
12:51:17,674  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
12:51:17,773 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 44 more
12:51:18,110 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
12:51:18,208 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
12:51:18,216  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
12:51:18,217 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


org.hibernate.HibernateException: Could not create a DBCP pool
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        ... 40 more
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more

Aug 16, 2005 12:48:49 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 16, 2005 12:48:49 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1103 ms
Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 16, 2005 12:48:50 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive xwiki.war
Aug 16, 2005 12:48:53 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 16, 2005 12:48:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 16, 2005 12:48:53 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/28  config=null
Aug 16, 2005 12:48:53 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 16, 2005 12:48:53 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4555 ms
12:49:08,366  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
12:49:10,244 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 44 more
12:49:10,501 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.j
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Ludovic Dubost

Hi Miguel,

"Host 'localhost.localdomain' is not allowed to connect to this MySQL server"

It's probably that your mysql instance only allows connections from 127.0.0.1
Try using 127.0.0.1 in your connect string in hibernate.cfg.xml

Ludovic

Miguel Angel Bayona Pérez wrote:

> Hi,
>
> well, I´m a little bit lost. I have done the following: (one step at a
> time):
>
> test with java 1.4.2 and later with 1.5.
> test with tomcat 5.5 and later 4.1
> I use mysql 4.1 always.
>
> I use linux Debian (v3.1) sarge
>
> I have updated to the last available jars for pool, dbcp & driver:
>
> commons-dbcp-1.2.1.jar
> commons-pool-1.2.jar
> mysql-connector-java-3.1.10-bin.jar
>
> (I tried with the original ones as well)
>
> I've moved the jar over to common/lib (without and with deleting them
> from its original place WEB-INF/lib to avoid conflicts). By the way,
> when I removed them all from WEB-INF/lib, the system complained about
> a mssing collections jar. It was available in WEB-INF/lib and I moved
> it to common/lib. It solved it but then the old message showed again
> (i.e.Could not initialize main XWiki context/Could not create a DBCP
> pool).
>
> I've also changed the hibernate.cfg.xml user and password and included
> a user (i.e. root) and password with complete access rights on the
> Database after testing with xwiki/xwiki/xwiki.
>
> I include the log files of the last runs: They are runing on
> tomcat5.5, mysql 4.1, java1.5.
>
> I've got the feeling that it is something stupid, but I've run out of
> ideas. Could you give me some hints on how to proceed?
>
> Regards,
>
>      Miguel A. Bayona
>
>
>
>
> Ludovic Dubost escribió:
>
>>
>> These lines have no problem.. Have you checked the rights of your
>> mysql installation ?
>>
>> Ludovic
>>
>> Miguel Angel Bayona Pérez wrote:
>>
>>> I have already done it (to copy thje three jar files in common/lib)
>>> as recommended in the installation instructions. I have installed
>>> java 1.4.2_09 an I get the same message error. Now I´m trying to
>>> install tomcat 4.1 an d to test it . I´ll let you know. By the way,
>>> what about the contents of the xwiki.cfg file that i´ve identified
>>> in another e-mail? I send then to you juast in case. Are these lines
>>> ok?
>>>
>>> thanks in advance,
>>>
>>>     Miguel Angel Bayona
>>>
>>> ============= xwiki.cfg =========
>>> ...
>>> # This parameter will activate the exo integration
>>> xwiki.exo=0
>>>
>>> xwiki.authentication=form
>>> xwiki.authentication.validationKey=totototototototototototototototo
>>> xwiki.authentication.encryptionKey=titititititititititititititititi
>>> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>>> xwiki.authentication.useip=false
>>> ===================
>>>
>>>
>>> Ludovic Dubost escribió:
>>>
>>>>
>>>> I think it should.. We have done tests at least separatly of both
>>>> tools.
>>>> There could be some conflicts with pool, dbcp and mysql libraries.
>>>> Try copying them in the common/lib directory of tomcat
>>>>
>>>> Ludovic
>>>>
>>>> [hidden email] wrote:
>>>>
>>>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>>>>
>>>>> Regards,
>>>>>
>>>>>     Miguel A. Bayona
>>>>>
>>>>> ===== file hibernate.cfg.xml ======
>>>>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>>>>> Configuration DTD//EN"
>>>>>                                          
>>>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>>>> <hibernate-configuration>
>>>>> <session-factory>
>>>>> <property name="show_sql">false</property>
>>>>> <property name="use_outer_join">true</property>
>>>>>
>>>>> <property name="dbcp.defaultAutoCommit">false</property>
>>>>> <property name="dbcp.maxActive">50</property>
>>>>> <property name="dbcp.maxIdle">5</property>
>>>>> <property name="dbcp.maxWait">30000</property>
>>>>> <property name="dbcp.whenExhaustedAction">1</property>
>>>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>>>> <property name="dbcp.ps.maxActive">20</property>
>>>>> <property name="dbcp.ps.maxWait">120000</property>
>>>>> <property name="dbcp.ps.maxIdle">20</property>
>>>>>
>>>>> <property
>>>>> name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>>>> <property name="connection.username">xwiki</property>
>>>>> <property name="connection.password">xwiki</property>
>>>>> <property
>>>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>>>> <property
>>>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>>>
>>>>> <property name="connection.pool_size">50</property>
>>>>> <property name="statement_cache.size">50</property>
>>>>> <property
>>>>> name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>>>> <!-- Mapping files -->
>>>>> <mapping resource="xwiki.hbm.xml"/>
>>>>> </session-factory>
>>>>> </hibernate-configuration>
>>>>>
>>>>>  
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the
>>>>> [hidden email] mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page:
>>>>> http://www.objectweb.org/wws
>>>>>  
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
>>>> [hidden email] mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page:
>>>> http://www.objectweb.org/wws
>>>>  
>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>  
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>  
>>
>
> ------------------------------------------------------------------------
>
> 12:49:08,366  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 12:49:10,244 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 44 more
> 12:49:10,501 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 12:49:10,656 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 12:49:10,672  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
> 12:49:10,674 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> org.hibernate.HibernateException: Could not create a DBCP pool
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> ... 40 more
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 12:51:17,674  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 12:51:17,773 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 44 more
> 12:51:18,110 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 12:51:18,208 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 12:51:18,216  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
> 12:51:18,217 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> org.hibernate.HibernateException: Could not create a DBCP pool
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> ... 40 more
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
>  
> ------------------------------------------------------------------------
>
> Aug 16, 2005 12:48:49 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Aug 16, 2005 12:48:49 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1103 ms
> Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
> Aug 16, 2005 12:48:49 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Aug 16, 2005 12:48:50 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive xwiki.war
> Aug 16, 2005 12:48:53 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Aug 16, 2005 12:48:53 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Aug 16, 2005 12:48:53 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/28  config=null
> Aug 16, 2005 12:48:53 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Aug 16, 2005 12:48:53 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 4555 ms
> 12:49:08,366  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 12:49:10,244 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilt
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

mabayona
I've changed localhost by 127.0.0.1 in the connection string in the file
hibernate.cfg.xml and I'm getting same result (see attached logs). As
you hint, it seems to be that MySQL does not allow connections from
xwiki. It is extrange because, I'm accesing MySQL with no problem using
phpMyAdmin and evetithing seems to be ok. xwiki user has grantes access
rights to all the databases in MySQL.

Any other idea?

Regards,

    Miguel A. Bayona

P.S. here is also my hibernate.cfg.xml

======== hibernate.cfg.xml =================
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
Configuration DTD//EN"
                                         
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>

<property name="dbcp.defaultAutoCommit">false</property>
<property name="dbcp.maxActive">50</property>
<property name="dbcp.maxIdle">5</property>
<property name="dbcp.maxWait">30000</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxActive">20</property>
<property name="dbcp.ps.maxWait">120000</property>
<property name="dbcp.ps.maxIdle">20</property>

<property name="connection.url">jdbc:mysql://127.0.0.1/xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property
name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">50</property>
<property name="statement_cache.size">50</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files -->
<mapping resource="xwiki.hbm.xml"/>
</session-factory>
</hibernate-configuration>
=======================================

Ludovic Dubost escribi?:

>
> Hi Miguel,
>
> "Host 'localhost.localdomain' is not allowed to connect to this MySQL
> server"
>
> It's probably that your mysql instance only allows connections from
> 127.0.0.1
> Try using 127.0.0.1 in your connect string in hibernate.cfg.xml
>
> Ludovic
>
> Miguel Angel Bayona P?rez wrote:
>
>> Hi,
>>
>> well, I?m a little bit lost. I have done the following: (one step at
>> a time):
>>
>> test with java 1.4.2 and later with 1.5.
>> test with tomcat 5.5 and later 4.1
>> I use mysql 4.1 always.
>>
>> I use linux Debian (v3.1) sarge
>>
>> I have updated to the last available jars for pool, dbcp & driver:
>>
>> commons-dbcp-1.2.1.jar
>> commons-pool-1.2.jar
>> mysql-connector-java-3.1.10-bin.jar
>>
>> (I tried with the original ones as well)
>>
>> I've moved the jar over to common/lib (without and with deleting them
>> from its original place WEB-INF/lib to avoid conflicts). By the way,
>> when I removed them all from WEB-INF/lib, the system complained about
>> a mssing collections jar. It was available in WEB-INF/lib and I moved
>> it to common/lib. It solved it but then the old message showed again
>> (i.e.Could not initialize main XWiki context/Could not create a DBCP
>> pool).
>>
>> I've also changed the hibernate.cfg.xml user and password and
>> included a user (i.e. root) and password with complete access rights
>> on the Database after testing with xwiki/xwiki/xwiki.
>>
>> I include the log files of the last runs: They are runing on
>> tomcat5.5, mysql 4.1, java1.5.
>>
>> I've got the feeling that it is something stupid, but I've run out of
>> ideas. Could you give me some hints on how to proceed?
>>
>> Regards,
>>
>>      Miguel A. Bayona
>>
>>
>>
>>
>> Ludovic Dubost escribi?:
>>
>>>
>>> These lines have no problem.. Have you checked the rights of your
>>> mysql installation ?
>>>
>>> Ludovic
>>>
>>> Miguel Angel Bayona P?rez wrote:
>>>
>>>> I have already done it (to copy thje three jar files in common/lib)
>>>> as recommended in the installation instructions. I have installed
>>>> java 1.4.2_09 an I get the same message error. Now I?m trying to
>>>> install tomcat 4.1 an d to test it . I?ll let you know. By the way,
>>>> what about the contents of the xwiki.cfg file that i?ve identified
>>>> in another e-mail? I send then to you juast in case. Are these
>>>> lines ok?
>>>>
>>>> thanks in advance,
>>>>
>>>>     Miguel Angel Bayona
>>>>
>>>> ============= xwiki.cfg =========
>>>> ...
>>>> # This parameter will activate the exo integration
>>>> xwiki.exo=0
>>>>
>>>> xwiki.authentication=form
>>>> xwiki.authentication.validationKey=totototototototototototototototo
>>>> xwiki.authentication.encryptionKey=titititititititititititititititi
>>>> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>>>> xwiki.authentication.useip=false
>>>> ===================
>>>>
>>>>
>>>> Ludovic Dubost escribi?:
>>>>
>>>>>
>>>>> I think it should.. We have done tests at least separatly of both
>>>>> tools.
>>>>> There could be some conflicts with pool, dbcp and mysql libraries.
>>>>> Try copying them in the common/lib directory of tomcat
>>>>>
>>>>> Ludovic
>>>>>
>>>>> [hidden email] wrote:
>>>>>
>>>>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>     Miguel A. Bayona
>>>>>>
>>>>>> ===== file hibernate.cfg.xml ======
>>>>>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>>>>>> Configuration DTD//EN"
>>>>>>                                          
>>>>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>>>>> <hibernate-configuration>
>>>>>> <session-factory>
>>>>>> <property name="show_sql">false</property>
>>>>>> <property name="use_outer_join">true</property>
>>>>>>
>>>>>> <property name="dbcp.defaultAutoCommit">false</property>
>>>>>> <property name="dbcp.maxActive">50</property>
>>>>>> <property name="dbcp.maxIdle">5</property>
>>>>>> <property name="dbcp.maxWait">30000</property>
>>>>>> <property name="dbcp.whenExhaustedAction">1</property>
>>>>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>>>>> <property name="dbcp.ps.maxActive">20</property>
>>>>>> <property name="dbcp.ps.maxWait">120000</property>
>>>>>> <property name="dbcp.ps.maxIdle">20</property>
>>>>>>
>>>>>> <property
>>>>>> name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>>>>> <property name="connection.username">xwiki</property>
>>>>>> <property name="connection.password">xwiki</property>
>>>>>> <property
>>>>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>>>>> <property
>>>>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>>>>
>>>>>> <property name="connection.pool_size">50</property>
>>>>>> <property name="statement_cache.size">50</property>
>>>>>> <property
>>>>>> name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>>>>> <!-- Mapping files -->
>>>>>> <mapping resource="xwiki.hbm.xml"/>
>>>>>> </session-factory>
>>>>>> </hibernate-configuration>
>>>>>>
>>>>>>  
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the
>>>>>> [hidden email] mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> ObjectWeb mailing lists service home page:
>>>>>> http://www.objectweb.org/wws
>>>>>>  
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the
>>>>> [hidden email] mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page:
>>>>> http://www.objectweb.org/wws
>>>>>  
>>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
>>>> [hidden email] mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page:
>>>> http://www.objectweb.org/wws
>>>>  
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>  
>>>
>>

Aug 16, 2005 3:35:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 16, 2005 3:35:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1110 ms
Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 16, 2005 3:35:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive xwiki.war
Aug 16, 2005 3:35:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 16, 2005 3:35:15 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 16, 2005 3:35:15 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/70  config=null
Aug 16, 2005 3:35:15 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 16, 2005 3:35:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5097 ms
15:35:49,246  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
15:35:51,284 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 44 more
15:35:51,528 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
15:35:51,645 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:

org.hibernate.HibernateException: Could not create a DBCP pool
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        ... 40 more
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
15:35:51,669  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
15:35:51,671 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


org.hibernate.HibernateException: Could not create a DBCP pool
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        ... 40 more
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more

15:35:49,246  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
15:35:51,284 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
        at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
        at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 44 more
15:35:51,528 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
        at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
        at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
15:35:51,645 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
        at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
        at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
        at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
        ... 42 more
15:35:51,669  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
15:35:51,671 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Could not create a DBCP pool
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
        at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
        at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
        at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
        at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
        at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
        at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
        at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
        at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)


Wrapped Exception:


org.hibernate.HibernateException: Could not create a DBCP pool
        at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
        at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
        at org.hibernate.c
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Ludovic Dubost

What do you have in /etc/hosts ?
I suspect some weird reverse DNS
You should make sure nslookup 127.0.0.1 returns 'localhost' and not
'localhost.localdomain' which might be unknown to your mysql instance.

You should have 127.0.0.1 localhost in your /etc/hosts (probably being
first)

Ludovic

Miguel Angel Bayona Pérez wrote:

> I've changed localhost by 127.0.0.1 in the connection string in the
> file hibernate.cfg.xml and I'm getting same result (see attached
> logs). As you hint, it seems to be that MySQL does not allow
> connections from xwiki. It is extrange because, I'm accesing MySQL
> with no problem using phpMyAdmin and evetithing seems to be ok. xwiki
> user has grantes access rights to all the databases in MySQL.
>
> Any other idea?
>
> Regards,
>
>    Miguel A. Bayona
>
> P.S. here is also my hibernate.cfg.xml
>
> ======== hibernate.cfg.xml =================
> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
> Configuration DTD//EN"
>                                        
> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
> <hibernate-configuration>
> <session-factory>
> <property name="show_sql">false</property>
> <property name="use_outer_join">true</property>
>
> <property name="dbcp.defaultAutoCommit">false</property>
> <property name="dbcp.maxActive">50</property>
> <property name="dbcp.maxIdle">5</property>
> <property name="dbcp.maxWait">30000</property>
> <property name="dbcp.whenExhaustedAction">1</property>
> <property name="dbcp.ps.whenExhaustedAction">1</property>
> <property name="dbcp.ps.maxActive">20</property>
> <property name="dbcp.ps.maxWait">120000</property>
> <property name="dbcp.ps.maxIdle">20</property>
>
> <property name="connection.url">jdbc:mysql://127.0.0.1/xwiki</property>
> <property name="connection.username">xwiki</property>
> <property name="connection.password">xwiki</property>
> <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
> <property
> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>
> <property name="connection.pool_size">50</property>
> <property name="statement_cache.size">50</property>
> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
> <!-- Mapping files -->
> <mapping resource="xwiki.hbm.xml"/>
> </session-factory>
> </hibernate-configuration>
> =======================================
>
> Ludovic Dubost escribió:
>
>>
>> Hi Miguel,
>>
>> "Host 'localhost.localdomain' is not allowed to connect to this MySQL
>> server"
>>
>> It's probably that your mysql instance only allows connections from
>> 127.0.0.1
>> Try using 127.0.0.1 in your connect string in hibernate.cfg.xml
>>
>> Ludovic
>>
>> Miguel Angel Bayona Pérez wrote:
>>
>>> Hi,
>>>
>>> well, I´m a little bit lost. I have done the following: (one step at
>>> a time):
>>>
>>> test with java 1.4.2 and later with 1.5.
>>> test with tomcat 5.5 and later 4.1
>>> I use mysql 4.1 always.
>>>
>>> I use linux Debian (v3.1) sarge
>>>
>>> I have updated to the last available jars for pool, dbcp & driver:
>>>
>>> commons-dbcp-1.2.1.jar
>>> commons-pool-1.2.jar
>>> mysql-connector-java-3.1.10-bin.jar
>>>
>>> (I tried with the original ones as well)
>>>
>>> I've moved the jar over to common/lib (without and with deleting
>>> them from its original place WEB-INF/lib to avoid conflicts). By the
>>> way, when I removed them all from WEB-INF/lib, the system complained
>>> about a mssing collections jar. It was available in WEB-INF/lib and
>>> I moved it to common/lib. It solved it but then the old message
>>> showed again (i.e.Could not initialize main XWiki context/Could not
>>> create a DBCP pool).
>>>
>>> I've also changed the hibernate.cfg.xml user and password and
>>> included a user (i.e. root) and password with complete access rights
>>> on the Database after testing with xwiki/xwiki/xwiki.
>>>
>>> I include the log files of the last runs: They are runing on
>>> tomcat5.5, mysql 4.1, java1.5.
>>>
>>> I've got the feeling that it is something stupid, but I've run out
>>> of ideas. Could you give me some hints on how to proceed?
>>>
>>> Regards,
>>>
>>>      Miguel A. Bayona
>>>
>>>
>>>
>>>
>>> Ludovic Dubost escribió:
>>>
>>>>
>>>> These lines have no problem.. Have you checked the rights of your
>>>> mysql installation ?
>>>>
>>>> Ludovic
>>>>
>>>> Miguel Angel Bayona Pérez wrote:
>>>>
>>>>> I have already done it (to copy thje three jar files in
>>>>> common/lib) as recommended in the installation instructions. I
>>>>> have installed java 1.4.2_09 an I get the same message error. Now
>>>>> I´m trying to install tomcat 4.1 an d to test it . I´ll let you
>>>>> know. By the way, what about the contents of the xwiki.cfg file
>>>>> that i´ve identified in another e-mail? I send then to you juast
>>>>> in case. Are these lines ok?
>>>>>
>>>>> thanks in advance,
>>>>>
>>>>>     Miguel Angel Bayona
>>>>>
>>>>> ============= xwiki.cfg =========
>>>>> ...
>>>>> # This parameter will activate the exo integration
>>>>> xwiki.exo=0
>>>>>
>>>>> xwiki.authentication=form
>>>>> xwiki.authentication.validationKey=totototototototototototototototo
>>>>> xwiki.authentication.encryptionKey=titititititititititititititititi
>>>>> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>>>>> xwiki.authentication.useip=false
>>>>> ===================
>>>>>
>>>>>
>>>>> Ludovic Dubost escribió:
>>>>>
>>>>>>
>>>>>> I think it should.. We have done tests at least separatly of both
>>>>>> tools.
>>>>>> There could be some conflicts with pool, dbcp and mysql
>>>>>> libraries. Try copying them in the common/lib directory of tomcat
>>>>>>
>>>>>> Ludovic
>>>>>>
>>>>>> [hidden email] wrote:
>>>>>>
>>>>>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat 5.5 ?
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>>     Miguel A. Bayona
>>>>>>>
>>>>>>> ===== file hibernate.cfg.xml ======
>>>>>>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>>>>>>> Configuration DTD//EN"
>>>>>>>                                          
>>>>>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>>>>>> <hibernate-configuration>
>>>>>>> <session-factory>
>>>>>>> <property name="show_sql">false</property>
>>>>>>> <property name="use_outer_join">true</property>
>>>>>>>
>>>>>>> <property name="dbcp.defaultAutoCommit">false</property>
>>>>>>> <property name="dbcp.maxActive">50</property>
>>>>>>> <property name="dbcp.maxIdle">5</property>
>>>>>>> <property name="dbcp.maxWait">30000</property>
>>>>>>> <property name="dbcp.whenExhaustedAction">1</property>
>>>>>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>>>>>> <property name="dbcp.ps.maxActive">20</property>
>>>>>>> <property name="dbcp.ps.maxWait">120000</property>
>>>>>>> <property name="dbcp.ps.maxIdle">20</property>
>>>>>>>
>>>>>>> <property
>>>>>>> name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>>>>>> <property name="connection.username">xwiki</property>
>>>>>>> <property name="connection.password">xwiki</property>
>>>>>>> <property
>>>>>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>>>>>> <property
>>>>>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>>>>>
>>>>>>> <property name="connection.pool_size">50</property>
>>>>>>> <property name="statement_cache.size">50</property>
>>>>>>> <property
>>>>>>> name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>>>>>> <!-- Mapping files -->
>>>>>>> <mapping resource="xwiki.hbm.xml"/>
>>>>>>> </session-factory>
>>>>>>> </hibernate-configuration>
>>>>>>>
>>>>>>>  
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You receive this message as a subscriber of the
>>>>>>> [hidden email] mailing list.
>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>> ObjectWeb mailing lists service home page:
>>>>>>> http://www.objectweb.org/wws
>>>>>>>  
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the
>>>>>> [hidden email] mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> ObjectWeb mailing lists service home page:
>>>>>> http://www.objectweb.org/wws
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the
>>>>> [hidden email] mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page:
>>>>> http://www.objectweb.org/wws
>>>>>  
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the
>>>> [hidden email] mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page:
>>>> http://www.objectweb.org/wws
>>>>  
>>>>
>>>
>
> ------------------------------------------------------------------------
>
> Aug 16, 2005 3:35:10 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Aug 16, 2005 3:35:10 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1110 ms
> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Aug 16, 2005 3:35:11 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive xwiki.war
> Aug 16, 2005 3:35:14 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Aug 16, 2005 3:35:15 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Aug 16, 2005 3:35:15 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/70  config=null
> Aug 16, 2005 3:35:15 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Aug 16, 2005 3:35:15 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 5097 ms
> 15:35:49,246  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 15:35:51,284 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 44 more
> 15:35:51,528 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 15:35:51,645 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
> org.hibernate.HibernateException: Could not create a DBCP pool
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> ... 40 more
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 15:35:51,669  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
> 15:35:51,671 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Wrapped Exception:
>
>
> org.hibernate.HibernateException: Could not create a DBCP pool
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> ... 40 more
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
>  
> ------------------------------------------------------------------------
>
> 15:35:49,246  WARN http-8080-Processor25  RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
> 15:35:51,284 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
> at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
> at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 44 more
> 15:35:51,528 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 15:35:51,645 FATAL http-8080-Processor25 http://pforge.org:8080/xwiki/bin/view/Main/WebHome DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
> org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server")
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> at com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
> at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
> at com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
> at com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
> at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
> at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.sql.SQLException: null,  message from server: "Host 'localhost.localdomain' is not allowed to connect to this MySQL server"
> at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
> at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
> at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
> at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
> at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
> ... 42 more
> 15:35:51,669  WARN http-8080-Processor25  RequestProcessor:processException:509 - Unhandled Exception thrown: class com.xpn.xwiki.XWikiException
> 15:35:51,671 ERROR http-8080-Processor25  [action]:invoke:253 - Servlet.service() for servlet action threw exception
> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
> Wrapped Exception: Could not create a DBCP pool
> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
> at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:7
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

Matthew Conway
In reply to this post by mabayona

On Aug 16, 2005, at 9:44 AM, Miguel Angel Bayona Pérez wrote:

> I've changed localhost by 127.0.0.1 in the connection string in the  
> file hibernate.cfg.xml and I'm getting same result (see attached  
> logs). As you hint, it seems to be that MySQL does not allow  
> connections from xwiki. It is extrange because, I'm accesing MySQL  
> with no problem using phpMyAdmin and evetithing seems to be ok.  
> xwiki user has grantes access rights to all the databases in MySQL.
>
> Any other idea?

Try granting privileges in mysql to localhost.localdomain as well as  
127.0.0.1

grant all privileges on xwiki.* to [hidden email]  
identified by 'xwiki' ;
grant all privileges on xwiki.* to xwiki@localhost identified by  
'xwiki' ;
grant all privileges on xwiki.* to xwiki@127.0.0.1 identified by  
'xwiki' ;

Matt





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Could not initialize main XWiki context

mabayona
In reply to this post by Ludovic Dubost
You are right. That was it. In my /etc/hosts (which was there as i got
the server) was the mapping

127.0.0.1    localhost.localdomain  localhost

well I did what you recommended and repalced the line by

127.0.0.1     localhost

and it worked!!

Thanks a lot.

Just for the records:

my configuration is:

Linux Debian Sarge
MySQL 4.1.11
tomcat 5.5.9
java 1.5.0_04
mysql-connector-java-3.1.10-bin.jar
commons-dbcp-1.2.1.jar
commons-pool-1.2.jar

Thanks again,

     Miguel A. Bayona

Ludovic Dubost escribi?:

>
> What do you have in /etc/hosts ?
> I suspect some weird reverse DNS
> You should make sure nslookup 127.0.0.1 returns 'localhost' and not
> 'localhost.localdomain' which might be unknown to your mysql instance.
>
> You should have 127.0.0.1 localhost in your /etc/hosts (probably being
> first)
>
> Ludovic
>
> Miguel Angel Bayona P?rez wrote:
>
>> I've changed localhost by 127.0.0.1 in the connection string in the
>> file hibernate.cfg.xml and I'm getting same result (see attached
>> logs). As you hint, it seems to be that MySQL does not allow
>> connections from xwiki. It is extrange because, I'm accesing MySQL
>> with no problem using phpMyAdmin and evetithing seems to be ok. xwiki
>> user has grantes access rights to all the databases in MySQL.
>>
>> Any other idea?
>>
>> Regards,
>>
>>    Miguel A. Bayona
>>
>> P.S. here is also my hibernate.cfg.xml
>>
>> ======== hibernate.cfg.xml =================
>> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
>> Configuration DTD//EN"
>>                                        
>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>> <hibernate-configuration>
>> <session-factory>
>> <property name="show_sql">false</property>
>> <property name="use_outer_join">true</property>
>>
>> <property name="dbcp.defaultAutoCommit">false</property>
>> <property name="dbcp.maxActive">50</property>
>> <property name="dbcp.maxIdle">5</property>
>> <property name="dbcp.maxWait">30000</property>
>> <property name="dbcp.whenExhaustedAction">1</property>
>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>> <property name="dbcp.ps.maxActive">20</property>
>> <property name="dbcp.ps.maxWait">120000</property>
>> <property name="dbcp.ps.maxIdle">20</property>
>>
>> <property name="connection.url">jdbc:mysql://127.0.0.1/xwiki</property>
>> <property name="connection.username">xwiki</property>
>> <property name="connection.password">xwiki</property>
>> <property
>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>> <property
>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>
>> <property name="connection.pool_size">50</property>
>> <property name="statement_cache.size">50</property>
>> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
>> <!-- Mapping files -->
>> <mapping resource="xwiki.hbm.xml"/>
>> </session-factory>
>> </hibernate-configuration>
>> =======================================
>>
>> Ludovic Dubost escribi?:
>>
>>>
>>> Hi Miguel,
>>>
>>> "Host 'localhost.localdomain' is not allowed to connect to this
>>> MySQL server"
>>>
>>> It's probably that your mysql instance only allows connections from
>>> 127.0.0.1
>>> Try using 127.0.0.1 in your connect string in hibernate.cfg.xml
>>>
>>> Ludovic
>>>
>>> Miguel Angel Bayona P?rez wrote:
>>>
>>>> Hi,
>>>>
>>>> well, I?m a little bit lost. I have done the following: (one step
>>>> at a time):
>>>>
>>>> test with java 1.4.2 and later with 1.5.
>>>> test with tomcat 5.5 and later 4.1
>>>> I use mysql 4.1 always.
>>>>
>>>> I use linux Debian (v3.1) sarge
>>>>
>>>> I have updated to the last available jars for pool, dbcp & driver:
>>>>
>>>> commons-dbcp-1.2.1.jar
>>>> commons-pool-1.2.jar
>>>> mysql-connector-java-3.1.10-bin.jar
>>>>
>>>> (I tried with the original ones as well)
>>>>
>>>> I've moved the jar over to common/lib (without and with deleting
>>>> them from its original place WEB-INF/lib to avoid conflicts). By
>>>> the way, when I removed them all from WEB-INF/lib, the system
>>>> complained about a mssing collections jar. It was available in
>>>> WEB-INF/lib and I moved it to common/lib. It solved it but then the
>>>> old message showed again (i.e.Could not initialize main XWiki
>>>> context/Could not create a DBCP pool).
>>>>
>>>> I've also changed the hibernate.cfg.xml user and password and
>>>> included a user (i.e. root) and password with complete access
>>>> rights on the Database after testing with xwiki/xwiki/xwiki.
>>>>
>>>> I include the log files of the last runs: They are runing on
>>>> tomcat5.5, mysql 4.1, java1.5.
>>>>
>>>> I've got the feeling that it is something stupid, but I've run out
>>>> of ideas. Could you give me some hints on how to proceed?
>>>>
>>>> Regards,
>>>>
>>>>      Miguel A. Bayona
>>>>
>>>>
>>>>
>>>>
>>>> Ludovic Dubost escribi?:
>>>>
>>>>>
>>>>> These lines have no problem.. Have you checked the rights of your
>>>>> mysql installation ?
>>>>>
>>>>> Ludovic
>>>>>
>>>>> Miguel Angel Bayona P?rez wrote:
>>>>>
>>>>>> I have already done it (to copy thje three jar files in
>>>>>> common/lib) as recommended in the installation instructions. I
>>>>>> have installed java 1.4.2_09 an I get the same message error. Now
>>>>>> I?m trying to install tomcat 4.1 an d to test it . I?ll let you
>>>>>> know. By the way, what about the contents of the xwiki.cfg file
>>>>>> that i?ve identified in another e-mail? I send then to you juast
>>>>>> in case. Are these lines ok?
>>>>>>
>>>>>> thanks in advance,
>>>>>>
>>>>>>     Miguel Angel Bayona
>>>>>>
>>>>>> ============= xwiki.cfg =========
>>>>>> ...
>>>>>> # This parameter will activate the exo integration
>>>>>> xwiki.exo=0
>>>>>>
>>>>>> xwiki.authentication=form
>>>>>> xwiki.authentication.validationKey=totototototototototototototototo
>>>>>> xwiki.authentication.encryptionKey=titititititititititititititititi
>>>>>> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>>>>>> xwiki.authentication.useip=false
>>>>>> ===================
>>>>>>
>>>>>>
>>>>>> Ludovic Dubost escribi?:
>>>>>>
>>>>>>>
>>>>>>> I think it should.. We have done tests at least separatly of
>>>>>>> both tools.
>>>>>>> There could be some conflicts with pool, dbcp and mysql
>>>>>>> libraries. Try copying them in the common/lib directory of tomcat
>>>>>>>
>>>>>>> Ludovic
>>>>>>>
>>>>>>> [hidden email] wrote:
>>>>>>>
>>>>>>>> the file looks OK. Does xwiki run with java 1.5_0x an dtomcat
>>>>>>>> 5.5 ?
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>>     Miguel A. Bayona
>>>>>>>>
>>>>>>>> ===== file hibernate.cfg.xml ======
>>>>>>>> <!DOCTYPE hibernate-configuration PUBLIC
>>>>>>>> "-//Hibernate/Hibernate Configuration DTD//EN"
>>>>>>>>                                          
>>>>>>>> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
>>>>>>>>
>>>>>>>> <hibernate-configuration>
>>>>>>>> <session-factory>
>>>>>>>> <property name="show_sql">false</property>
>>>>>>>> <property name="use_outer_join">true</property>
>>>>>>>>
>>>>>>>> <property name="dbcp.defaultAutoCommit">false</property>
>>>>>>>> <property name="dbcp.maxActive">50</property>
>>>>>>>> <property name="dbcp.maxIdle">5</property>
>>>>>>>> <property name="dbcp.maxWait">30000</property>
>>>>>>>> <property name="dbcp.whenExhaustedAction">1</property>
>>>>>>>> <property name="dbcp.ps.whenExhaustedAction">1</property>
>>>>>>>> <property name="dbcp.ps.maxActive">20</property>
>>>>>>>> <property name="dbcp.ps.maxWait">120000</property>
>>>>>>>> <property name="dbcp.ps.maxIdle">20</property>
>>>>>>>>
>>>>>>>> <property
>>>>>>>> name="connection.url">jdbc:mysql://localhost/xwiki</property>
>>>>>>>> <property name="connection.username">xwiki</property>
>>>>>>>> <property name="connection.password">xwiki</property>
>>>>>>>> <property
>>>>>>>> name="connection.driver_class">com.mysql.jdbc.Driver</property>
>>>>>>>> <property
>>>>>>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property>
>>>>>>>>
>>>>>>>> <property name="connection.pool_size">50</property>
>>>>>>>> <property name="statement_cache.size">50</property>
>>>>>>>> <property
>>>>>>>> name="dialect">org.hibernate.dialect.MySQLDialect</property>
>>>>>>>> <!-- Mapping files -->
>>>>>>>> <mapping resource="xwiki.hbm.xml"/>
>>>>>>>> </session-factory>
>>>>>>>> </hibernate-configuration>
>>>>>>>>
>>>>>>>>  
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You receive this message as a subscriber of the
>>>>>>>> [hidden email] mailing list.
>>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>>> ObjectWeb mailing lists service home page:
>>>>>>>> http://www.objectweb.org/wws
>>>>>>>>  
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You receive this message as a subscriber of the
>>>>>>> [hidden email] mailing list.
>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>> ObjectWeb mailing lists service home page:
>>>>>>> http://www.objectweb.org/wws
>>>>>>>  
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the
>>>>>> [hidden email] mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> ObjectWeb mailing lists service home page:
>>>>>> http://www.objectweb.org/wws
>>>>>>  
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the
>>>>> [hidden email] mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page:
>>>>> http://www.objectweb.org/wws
>>>>>  
>>>>>
>>>>
>>
>> ------------------------------------------------------------------------
>>
>> Aug 16, 2005 3:35:10 PM org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>> Aug 16, 2005 3:35:10 PM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 1110 ms
>> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardService start
>> INFO: Starting service Catalina
>> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
>> Aug 16, 2005 3:35:10 PM org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> Aug 16, 2005 3:35:11 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive xwiki.war
>> Aug 16, 2005 3:35:14 PM org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on http-8080
>> Aug 16, 2005 3:35:15 PM org.apache.jk.common.ChannelSocket init
>> INFO: JK: ajp13 listening on /0.0.0.0:8009
>> Aug 16, 2005 3:35:15 PM org.apache.jk.server.JkMain start
>> INFO: Jk running ID=0 time=0/70  config=null
>> Aug 16, 2005 3:35:15 PM org.apache.catalina.storeconfig.StoreLoader load
>> INFO: Find registry server-registry.xml at classpath resource
>> Aug 16, 2005 3:35:15 PM org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 5097 ms
>> 15:35:49,246  WARN http-8080-Processor25  
>> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
>> 15:35:51,284 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
>>
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
>>     at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
>>     at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
>>     at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 44 more
>> 15:35:51,528 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
>>
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 42 more
>> 15:35:51,645 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 42 more
>> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
>> saving document XWiki.XWikiPreferences
>> Wrapped Exception: Could not create a DBCP pool
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>>
>>
>> Wrapped Exception:
>>
>> org.hibernate.HibernateException: Could not create a DBCP pool
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     ... 40 more
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 42 more
>> 15:35:51,669  WARN http-8080-Processor25  
>> RequestProcessor:processException:509 - Unhandled Exception thrown:
>> class com.xpn.xwiki.XWikiException
>> 15:35:51,671 ERROR http-8080-Processor25  [action]:invoke:253 -
>> Servlet.service() for servlet action threw exception
>> com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not
>> initialize main XWiki context
>> Wrapped Exception: Error number 3201 in 3: Exception while saving
>> document XWiki.XWikiPreferences
>> Wrapped Exception: Could not create a DBCP pool
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:142)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>>
>>
>> Wrapped Exception:
>>
>>
>> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
>> saving document XWiki.XWikiPreferences
>> Wrapped Exception: Could not create a DBCP pool
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:540)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>>
>>
>> Wrapped Exception:
>>
>>
>> org.hibernate.HibernateException: Could not create a DBCP pool
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:211)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     ... 40 more
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 42 more
>>  
>> ------------------------------------------------------------------------
>>
>> 15:35:49,246  WARN http-8080-Processor25  
>> RequestUtils:createActionForm:177 - No FormBeanConfig found under 'view'
>> 15:35:51,284 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
>>
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
>>     at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1019)
>>     at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:1014)
>>     at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:422)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:397)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 44 more
>> 15:35:51,528 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:570)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
>>
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:565)
>>     at com.xpn.xwiki.XWiki.getDocument(XWiki.java:599)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1361)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>>     at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>>     at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>>     at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>>     at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>>     at java.lang.Thread.run(Unknown Source)
>> Caused by: java.sql.SQLException: null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server"
>>     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:990)
>>     at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
>>     at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
>>     at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
>>
>>     at
>> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
>>
>>     at
>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
>>
>>     ... 42 more
>> 15:35:51,645 FATAL http-8080-Processor25
>> http://pforge.org:8080/xwiki/bin/view/Main/WebHome 
>> DBCPConnectionProvider:configure:201 - Could not create a DBCP pool
>> org.apache.commons.dbcp.SQLNestedException: Cannot create
>> PoolableConnectionFactory (null,  message from server: "Host
>> 'localhost.localdomain' is not allowed to connect to this MySQL server")
>>     at
>> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
>>
>>     at
>> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
>>
>>     at
>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:193)
>>
>>     at
>> org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:349)
>>
>>     at
>> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:58)
>>     at
>> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509)
>>     at
>> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.initHibernate(XWikiHibernateStore.java:124)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.checkHibernate(XWikiHibernateStore.java:258)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:474)
>>
>>     at
>> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:557)
>>
>>     at
>> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:77)
>>
>>     at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:556)
>>     at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:1418)
>>     at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:405)
>>     at com.xpn.xwiki.XWiki.<init>(XWiki.java:343)
>>     at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:134)
>>     at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:202)
>>     at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:117)
>>     at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
>>
>>     at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
>>
>>     at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
>>     at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.