[opencms-dev] Critical error during OpenCms initialization:

Georgi Naplatanov gosho at oles.biz
Fri Jan 13 13:45:23 CET 2012


Hi Supriya

OpenCms can not connect to your database server.

The exception is java.net.ConnectException: Connection refused.

Check database user's permissions and firewall.

Best regards
Georgi

On 01/13/2012 02:39 PM, Supriya Patil wrote:
> hello,
>
> this is the error log
>
> 3 Jan 2012 15:03:02,805 INFO [rg.opencms.db.CmsDriverManager:5297] .
> Driver init : ok, finished
> 13 Jan 2012 15:03:02,806 INFO [rg.opencms.db.CmsDriverManager:4658] .
> Driver manager init : phase 4 - connecting to the database
> 13 Jan 2012 15:03:02,818 ERROR [encms.db.generic.CmsUserDriver:2084] .
> User Driver : System roles creation failed
> org.opencms.db.CmsDbSqlException: An SQL error occurred when executing
> the following query: .
> at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:708)
> at
> org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2053)
> at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)
> at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)
> at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)
> at
> org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)
> at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)
> at
> org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
> at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: com.mysql.jdbc.CommunicationsException: Communications link
> failure due to underlying exception:
>
> ** BEGIN NESTED EXCEPTION **
>
> java.net.ConnectException
> MESSAGE: Connection refused
>
> STACKTRACE:
>
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
> at java.net.Socket.connect(Socket.java:546)
> at java.net.Socket.connect(Socket.java:495)
> at java.net.Socket.<init>(Socket.java:392)
> at java.net.Socket.<init>(Socket.java:235)
> at
> com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
> at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2744)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
> at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
> at java.sql.DriverManager.getConnection(DriverManager.java:620)
> at java.sql.DriverManager.getConnection(DriverManager.java:200)
> at
> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)
> at
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
> at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
> at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)
> at java.sql.DriverManager.getConnection(DriverManager.java:620)
> at java.sql.DriverManager.getConnection(DriverManager.java:222)
> at org.opencms.db.CmsSqlManager.getConnectionByUrl(CmsSqlManager.java:104)
> at
> org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java:232)
> at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:690)
> at
> org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2053)
> at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)
> at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)
> at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)
> at
> org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)
> at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)
> at
> org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
> at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>
>
> ** END NESTED EXCEPTION **
>
>
>
> Last packet sent to the server was 1 ms ago.
> at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)
> at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
> at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
> at java.sql.DriverManager.getConnection(DriverManager.java:620)
> at java.sql.DriverManager.getConnection(DriverManager.java:200)
> at
> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)
> at
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
> at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
> at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)
> at java.sql.DriverManager.getConnection(DriverManager.java:620)
> at java.sql.DriverManager.getConnection(DriverManager.java:222)
> at org.opencms.db.CmsSqlManager.getConnectionByUrl(CmsSqlManager.java:104)
> at
> org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java:232)
> at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:690)
> ... 33 more
> 13 Jan 2012 15:03:02,820 ERROR [ org.opencms.main.OpenCmsCore: 320]
> Critical error during OpenCms initialization: Unable to initialize the
> user driver.
> org.opencms.main.CmsException: Critical error during OpenCms
> initialization: Unable to initialize the user driver.
> at org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:320)
> at
> org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:121)
> at org.opencms.main.CmsInitException.<init>(CmsInitException.java:92)
> at
> org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2086)
> at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)
> at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)
> at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)
> at
> org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)
> at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)
> at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)
> at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)
> at
> org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
> at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
>
> On Fri, 13 Jan 2012 12:24:01 +0100, Tobias Herrmann
> <t.herrmann at alkacon.com> wrote:
>
>> Hi Supriya Patil,
>>
>> please provide the complete start up log. From this short excerpt it's
>> hard to see what went wrong.
>>
>> Greetings, Tobias
>> --
>>
>> Alkacon Software GmbH - The OpenCms Experts
>>
>> http://www.alkacon.com   --http://www.opencms.org
>>
>>
>> Am 13.01.2012 11:53, schrieb Supriya Patil:
>>>
>>> hello,
>>>
>>> I got this error when I stop my apache and than again started
>>> it...plz give me the solution ...
>>>
>>> I am using opencms 7.5.3, Apache tomcat 5.5.33 ,java 1.5, Mysql 4.5
>>>
>>> org.opencms.main.CmsInitException: Critical error during OpenCms initialization: Unable to initialize the user driver.
>>> 	org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:290)
>>> 	org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:128)
>>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>>
>>>
>>>
>>>
>>> Thanx
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please visit
>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>>
>>>
>>>
> --
>
> Regards,
> Supriya Patil
>
> [+91 9999993104]
> UseRich Technologies Limited
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>


More information about the opencms-dev mailing list