[opencms-dev] Re-initialization error
Supriya Patil
supriya at userich.com
Mon Jan 16 05:56:51 CET 2012
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
This is 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.(Socket.java:392)
at java.net.Socket.(Socket.java:235)
at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:271)
at
com.mysql.jdbc.Connection.createNewIO(Connection.java:2744)
at
com.mysql.jdbc.Connection.(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.(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.(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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120115/f5cedc8b/attachment.htm>
More information about the opencms-dev
mailing list