please attach the jar as well the created bundle (drophins) On Tue, Jan 3, 2012 at 2:21 PM, Ajith Vitharana <aji...@wso2.com> wrote:
> > Hi All, > > I have dropped MySql driver to repository/components/lib but it didn't > deploy. > I'm getting following exception when start the server using > ./wso2server.sh -Dsetup. > The OSGI bundle that is relevant to the MySql diver has created inside > the dropins. > > > [2012-01-03 13:51:01,152] FATAL > {org.wso2.carbon.utils.dbcreator.DatabaseCreator} - Failed to create > database tables for registry resource store. Cannot load JDBC driver class > 'com.mysql.jdbc.Driver' > org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class > 'com.mysql.jdbc.Driver' > at > org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429) > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) > at > org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:288) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:87) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:121) > at > org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:66) > at > org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:54) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711) > at java.security.AccessController.doPrivileged(Native Method) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) > at > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) > at > org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389) > at > org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) > at > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) > Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) > at > org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at > org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420) > ... 23 more > [2012-01-03 13:51:01,154] ERROR > {org.wso2.carbon.user.core.internal.Activator} - Cannot start User Manager > Core bundle > java.lang.Exception: Error in creating the database > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:294) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:87) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:121) > at > org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:66) > at > org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:54) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711) > at java.security.AccessController.doPrivileged(Native Method) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702) > at > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) > at > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) > at > org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389) > at > org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) > at > org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) > at > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) > at > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) > Caused by: java.lang.Exception: Failed to create database tables for > registry resource store. Cannot load JDBC driver class > 'com.mysql.jdbc.Driver' > at > org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:69) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeDatabase(DefaultRealmService.java:288) > ... 19 more > Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC > driver class 'com.mysql.jdbc.Driver' > at > org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429) > at > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371) > at > org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) > at > org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:58) > ... 20 more > Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) > at > org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > at > org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420) > ... 23 more > > Thanks > Ajith > > -- > Ajith Vitharana. > WSO2 Inc. - http://wso2.org > Email : aji...@wso2.com > Mobile : +94714631794 > > > -- Pradeep Fernando Software Engineer WSO2 Inc; http://wso2.com/ blog: http://pradeepfernando.blogspot.com/ m: +94776603662
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev