Did you run the database scripts at server startup? This happens when the relevant tables are not found in the UM database.
Thanks, Hasini. On Thu, Jul 26, 2012 at 4:46 PM, Pradeep Fernando <prad...@wso2.com> wrote: > Hi, > > Im in the process of adding web-app mode support to carbon. Right now im > facing the below error. Appreciate any help. > > > > > > Listening on port 0.0.0.0/0.0.0.0:19444 ... > [2012-07-26 16:35:59,927] INFO > {org.wso2.carbon.coordination.core.services.impl.ZKCoordinationService} - > Coordination service disabled. > [2012-07-26 16:36:00,241] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 > Carbon... > [2012-07-26 16:36:00,242] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : > Linux 3.2.0-23-generic, amd64 > [2012-07-26 16:36:00,242] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : > /home/pradeep/installations/jdk1.6.0_33/jre > [2012-07-26 16:36:00,243] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : > 1.6.0_33 > [2012-07-26 16:36:00,243] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : > Java HotSpot(TM) 64-Bit Server VM 20.8-b03,Sun Microsystems Inc. > [2012-07-26 16:36:00,243] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : > /home/pradeep/carbon-repo > [2012-07-26 16:36:00,243] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : > /home/pradeep/installations/apache-tomcat-7.0.28/temp > [2012-07-26 16:36:00,243] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : > pradeep, en-US, Asia/Colombo > [2012-07-26 16:36:00,581] INFO > {org.wso2.carbon.server.admin.internal.PrivilegedActionExtensionComponent} > - Privileged Actions Extension bundle activated successfuly. > [2012-07-26 16:36:01,618] ERROR > {org.wso2.carbon.user.core.util.DatabaseUtil} - Database Error - Table > "UM_DIALECT" not found; SQL statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > org.h2.jdbc.JdbcSQLException: Table "UM_DIALECT" not found; SQL statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) > at org.h2.message.DbException.get(DbException.java:167) > at org.h2.message.DbException.get(DbException.java:144) > at org.h2.command.Parser.readTableOrView(Parser.java:4498) > at org.h2.command.Parser.readTableFilter(Parser.java:1011) > at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1577) > at org.h2.command.Parser.parseSelectSimple(Parser.java:1682) > at org.h2.command.Parser.parseSelectSub(Parser.java:1571) > at org.h2.command.Parser.parseSelectUnion(Parser.java:1416) > at org.h2.command.Parser.parseSelect(Parser.java:1404) > at org.h2.command.Parser.parsePrepared(Parser.java:392) > at org.h2.command.Parser.parse(Parser.java:275) > at org.h2.command.Parser.parse(Parser.java:247) > at org.h2.command.Parser.prepare(Parser.java:201) > at org.h2.command.Parser.prepareCommand(Parser.java:214) > at org.h2.engine.Session.prepareLocal(Session.java:434) > at org.h2.engine.Session.prepareCommand(Session.java:384) > at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071) > at > org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71) > at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:63) > at $Proxy14.prepareStatement(Unknown Source) > at > org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:161) > at > org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:278) > at > org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:109) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:233) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:118) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:131) > 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) > [2012-07-26 16:36:01,626] ERROR > {org.wso2.carbon.user.core.common.DefaultRealmService} - Cannot initialize > the realm. > org.wso2.carbon.user.core.UserStoreException: Database Error - Table > "UM_DIALECT" not found; SQL statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > at > org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:169) > at > org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:278) > at > org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:109) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:233) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:118) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:131) > 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: org.h2.jdbc.JdbcSQLException: Table "UM_DIALECT" not found; SQL > statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) > at org.h2.message.DbException.get(DbException.java:167) > at org.h2.message.DbException.get(DbException.java:144) > at org.h2.command.Parser.readTableOrView(Parser.java:4498) > at org.h2.command.Parser.readTableFilter(Parser.java:1011) > at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1577) > at org.h2.command.Parser.parseSelectSimple(Parser.java:1682) > at org.h2.command.Parser.parseSelectSub(Parser.java:1571) > at org.h2.command.Parser.parseSelectUnion(Parser.java:1416) > at org.h2.command.Parser.parseSelect(Parser.java:1404) > at org.h2.command.Parser.parsePrepared(Parser.java:392) > at org.h2.command.Parser.parse(Parser.java:275) > at org.h2.command.Parser.parse(Parser.java:247) > at org.h2.command.Parser.prepare(Parser.java:201) > at org.h2.command.Parser.prepareCommand(Parser.java:214) > at org.h2.engine.Session.prepareLocal(Session.java:434) > at org.h2.engine.Session.prepareCommand(Session.java:384) > at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071) > at > org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71) > at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:63) > at $Proxy14.prepareStatement(Unknown Source) > at > org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:161) > ... 22 more > [2012-07-26 16:36:01,628] ERROR > {org.wso2.carbon.user.core.internal.Activator} - Cannot start User Manager > Core bundle > org.wso2.carbon.user.core.UserStoreException: Cannot initialize the realm. > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:237) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:118) > at > org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:131) > 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: org.wso2.carbon.user.core.UserStoreException: Database Error - > Table "UM_DIALECT" not found; SQL statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > at > org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:169) > at > org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:278) > at > org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:109) > at > org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:233) > ... 19 more > Caused by: org.h2.jdbc.JdbcSQLException: Table "UM_DIALECT" not found; SQL > statement: > SELECT COUNT(UM_ID) FROM UM_DIALECT WHERE UM_TENANT_ID=? [42102-140] > at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) > at org.h2.message.DbException.get(DbException.java:167) > at org.h2.message.DbException.get(DbException.java:144) > at org.h2.command.Parser.readTableOrView(Parser.java:4498) > at org.h2.command.Parser.readTableFilter(Parser.java:1011) > at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1577) > at org.h2.command.Parser.parseSelectSimple(Parser.java:1682) > at org.h2.command.Parser.parseSelectSub(Parser.java:1571) > at org.h2.command.Parser.parseSelectUnion(Parser.java:1416) > at org.h2.command.Parser.parseSelect(Parser.java:1404) > at org.h2.command.Parser.parsePrepared(Parser.java:392) > at org.h2.command.Parser.parse(Parser.java:275) > at org.h2.command.Parser.parse(Parser.java:247) > at org.h2.command.Parser.prepare(Parser.java:201) > at org.h2.command.Parser.prepareCommand(Parser.java:214) > at org.h2.engine.Session.prepareLocal(Session.java:434) > at org.h2.engine.Session.prepareCommand(Session.java:384) > at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071) > at > org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71) > at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) > at > org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:99) > at > org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:63) > at $Proxy14.prepareStatement(Unknown Source) > at > org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:161) > ... 22 more > > > > > thanks, > --Pradeep > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev