<p>hello,</p>
<p>  I got this error when I stop my apache and than again started         it...plz give me the solution ...</p>
<p> </p>
<p>I am using opencms 7.5.3, Apache tomcat 5.5.33 ,java  1.5,         Mysql 4.5</p>
<div>
<p> </p>
<p>This is error log: </p>
<p> </p>
3 Jan 2012 15:03:02,805  INFO [rg.opencms.db.CmsDriverManager:5297] . Driver init          : ok, finished<br />13  Jan 2012 15:03:02,806  INFO [rg.opencms.db.CmsDriverManager:4658] .  Driver manager init  : phase 4 - connecting to the database<br />13 Jan 2012 15:03:02,818 ERROR [encms.db.generic.CmsUserDriver:2084] . User Driver          : System roles creation failed<br />org.opencms.db.CmsDbSqlException: An SQL error occurred when executing the following query: . <br />    at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:708)<br />    at org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2053)<br />    at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)<br />    at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)<br />    at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)<br />    at org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)<br />    at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)<br />    at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)<br />    at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)<br />    at org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)<br />    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)<br />    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)<br />    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)<br />    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br />    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br />    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)<br />    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)<br />    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)<br />    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)<br />    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)<br />    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br />    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)<br />    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)<br />    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)<br />    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />    at org.apache.catalina.core.StandardService.start(StandardService.java:448)<br />    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)<br />    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br />    at java.lang.reflect.Method.invoke(Method.java:616)<br />    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)<br />    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)<br />Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: <br /><br />** BEGIN NESTED EXCEPTION ** <br /><br />java.net.ConnectException<br />MESSAGE: Connection refused<br /><br />STACKTRACE:<br /><br />java.net.ConnectException: Connection refused<br />    at java.net.PlainSocketImpl.socketConnect(Native Method)<br />    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)<br />    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)<br />    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)<br />    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)<br />    at java.net.Socket.connect(Socket.java:546)<br />    at java.net.Socket.connect(Socket.java:495)<br />    at java.net.Socket.<init>(Socket.java:392)<br />    at java.net.Socket.<init>(Socket.java:235)<br />    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)<br />    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)<br />    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2744)<br />    at com.mysql.jdbc.Connection.<init>(Connection.java:1553)<br />    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:620)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:200)<br />    at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)<br />    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)<br />    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)<br />    at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:620)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:222)<br />    at org.opencms.db.CmsSqlManager.getConnectionByUrl(CmsSqlManager.java:104)<br />    at org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java:232)<br />    at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:690)<br />    at org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2053)<br />    at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)<br />    at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)<br />    at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)<br />    at org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)<br />    at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)<br />    at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)<br />    at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)<br />    at org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)<br />    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)<br />    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)<br />    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)<br />    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br />    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br />    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)<br />    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)<br />    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)<br />    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)<br />    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)<br />    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br />    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)<br />    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)<br />    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)<br />    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />    at org.apache.catalina.core.StandardService.start(StandardService.java:448)<br />    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)<br />    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br />    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br />    at java.lang.reflect.Method.invoke(Method.java:616)<br />    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)<br />    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)<br /><br /><br />** END NESTED EXCEPTION **<br /><br /><br /><br />Last packet sent to the server was 1 ms ago.<br />    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)<br />    at com.mysql.jdbc.Connection.<init>(Connection.java:1553)<br />    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:620)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:200)<br />    at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:65)<br />    at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)<br />    at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)<br />    at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:176)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:620)<br />    at java.sql.DriverManager.getConnection(DriverManager.java:222)<br />    at org.opencms.db.CmsSqlManager.getConnectionByUrl(CmsSqlManager.java:104)<br />    at org.opencms.db.generic.CmsSqlManager.getConnection(CmsSqlManager.java:232)<br />    at org.opencms.db.generic.CmsUserDriver.existsGroup(CmsUserDriver.java:690)<br />    ... 33 more<br />13  Jan 2012 15:03:02,820 ERROR [  org.opencms.main.OpenCmsCore: 320]  Critical error during OpenCms initialization: Unable to initialize the  user driver. <br />org.opencms.main.CmsException: Critical error during OpenCms initialization: Unable to initialize the user driver. <br />    at org.opencms.main.OpenCmsCore.setErrorCondition(OpenCmsCore.java:320)<br />    at org.opencms.main.CmsInitException.setErrorCondition(CmsInitException.java:121)<br />    at org.opencms.main.CmsInitException.<init>(CmsInitException.java:92)<br />    at org.opencms.db.generic.CmsUserDriver.internalCreateDefaultGroups(CmsUserDriver.java:2086)<br />    at org.opencms.db.generic.CmsUserDriver.fillDefaults(CmsUserDriver.java:761)<br />    at org.opencms.db.CmsDriverManager.init(CmsDriverManager.java:4673)<br />    at org.opencms.db.CmsSecurityManager.init(CmsSecurityManager.java:2742)<br />    at org.opencms.db.CmsSecurityManager.newInstance(CmsSecurityManager.java:157)<br />    at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:1126)<br />    at org.opencms.main.OpenCmsCore.initContext(OpenCmsCore.java:1290)<br />    at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1740)<br />    at org.opencms.main.OpenCmsListener.contextInitialized(OpenCmsListener.java:87)<br />    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)<br />    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)<br />    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)<br />    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)<br />    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)<br />    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)<br />    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
<p> </p>
</div>