com.atlassian.config.ConfigurationException: Cannot update schema

Atlassian JIRA | Agnes Ro | 10 years ago
  1. 0

    When upgrading to 2.3 with MySQL, the following error occurs: 2007-01-06 18:43:28,115 WARN [main] [sf.hibernate.cfg.SettingsFactory] buildSettings No dialect set - using GenericDialect: Dialect class not found: bucket.dialect.MySQLDialect 2007-01-06 18:43:31,965 FATAL [main] [com.atlassian.upgrade.AbstractUpgradeManager] upgradeSchema Could not update schema. com.atlassian.config.ConfigurationException: Cannot update schema at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:159) at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:142) at com.atlassian.upgrade.AbstractUpgradeManager.upgradeSchema(AbstractUpgradeManager.java:137) at com.atlassian.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:46) at com.atlassian.confluence.upgrade.impl.DefaultUpgradeManager.upgrade(DefaultUpgradeManager.java:57) at com.atlassian.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:26) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: net.sf.hibernate.HibernateException: Dialect class not found: bucket.dialect.MySQLDialect at net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:396) at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:40) at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:35) at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:155) ... 29 more 2007-01-06 18:43:32,000 WARN [main] [core.persistence.hibernate.HibernateVersionHistoryDao] getLatestBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Table 'confluence.CONFVERSION' doesn't exist 2007-01-06 18:43:32,291 ERROR [main] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Table 'confluence.BANDANA' doesn't exist

    Atlassian JIRA | 10 years ago | Agnes Ro
    com.atlassian.config.ConfigurationException: Cannot update schema
  2. 0

    When upgrading to 2.3 with MySQL, the following error occurs: 2007-01-06 18:43:28,115 WARN [main] [sf.hibernate.cfg.SettingsFactory] buildSettings No dialect set - using GenericDialect: Dialect class not found: bucket.dialect.MySQLDialect 2007-01-06 18:43:31,965 FATAL [main] [com.atlassian.upgrade.AbstractUpgradeManager] upgradeSchema Could not update schema. com.atlassian.config.ConfigurationException: Cannot update schema at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:159) at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:142) at com.atlassian.upgrade.AbstractUpgradeManager.upgradeSchema(AbstractUpgradeManager.java:137) at com.atlassian.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:46) at com.atlassian.confluence.upgrade.impl.DefaultUpgradeManager.upgrade(DefaultUpgradeManager.java:57) at com.atlassian.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:26) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: net.sf.hibernate.HibernateException: Dialect class not found: bucket.dialect.MySQLDialect at net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:396) at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:40) at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:35) at bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:155) ... 29 more 2007-01-06 18:43:32,000 WARN [main] [core.persistence.hibernate.HibernateVersionHistoryDao] getLatestBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Table 'confluence.CONFVERSION' doesn't exist 2007-01-06 18:43:32,291 ERROR [main] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Table 'confluence.BANDANA' doesn't exist

    Atlassian JIRA | 10 years ago | Agnes Ro
    com.atlassian.config.ConfigurationException: Cannot update schema
  3. 0

    hibernate-2.0.1.zip @ 07/17/2003 doesn't have hsqldb.jar thought the build.xml refers to it. As a result "build junit" command fails as in [junit] INFO: Hibernate connection pool size: 1 [junit] Jul 18, 2003 10:45:24 AM net.sf.hibernate.connection.DriverManagerConnectionProvider configure [junit] SEVERE: JDBC Driver class not found: org.hsqldb.jdbcDriver [junit] net.sf.hibernate.HibernateException: JDBC Driver class not found: org.hsqldb.jdbcDriver [junit] at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnecti onProvider.java:57) [junit] at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProvi derFactory.java:83) [junit] at net.sf.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:109) [junit] at net.sf.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:78) [junit] at net.sf.hibernate.test.TestCase.exportSchema(TestCase.java:32) [junit] at net.sf.hibernate.test.SQLFunctionsTest.suite(SQLFunctionsTest.java:277) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:324) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:25 7) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:21 0) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:532) [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] Jul 18, 2003 10:45:24 AM net.sf.hibernate.connection.DriverManagerConnectionProvider close [junit] INFO: cleaning up connection pool: null [junit] TEST net.sf.hibernate.test.SQLFunctionsTest FAILED

    Hibernate JIRA | 1 decade ago | Slava Imeshev
    net.sf.hibernate.HibernateException: JDBC Driver class not found: org.hsqldb.jdbcDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    dotCMS Users Group - DotCMS isnt starting: Whats wrong?

    dotcms.com | 11 months ago
    net.sf.hibernate.HibernateException: /hibernate.cfg.xml not found
  6. 0

    Tomcat/Hibernate servlet hibernate.cfg.xml not found

    Google Groups | 1 decade ago | Mark Wuest
    java.lang.RuntimeException: Exception building SessionFactory: /hibernate.cfg.xml not found

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sf.hibernate.HibernateException

      Dialect class not found: bucket.dialect.MySQLDialect

      at net.sf.hibernate.dialect.Dialect.getDialect()
    2. net.sf.hibernate
      SchemaUpdate.<init>
      1. net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:396)
      2. net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:40)
      3. net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.<init>(SchemaUpdate.java:35)
      3 frames
    3. bucket.core.persistence
      SchemaHelper.updateSchemaIfNeeded
      1. bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:155)
      2. bucket.core.persistence.hibernate.schema.SchemaHelper.updateSchemaIfNeeded(SchemaHelper.java:142)
      2 frames
    4. com.atlassian.upgrade
      AbstractUpgradeManager.upgrade
      1. com.atlassian.upgrade.AbstractUpgradeManager.upgradeSchema(AbstractUpgradeManager.java:137)
      2. com.atlassian.upgrade.AbstractUpgradeManager.upgrade(AbstractUpgradeManager.java:46)
      2 frames
    5. com.atlassian.confluence
      DefaultUpgradeManager.upgrade
      1. com.atlassian.confluence.upgrade.impl.DefaultUpgradeManager.upgrade(DefaultUpgradeManager.java:57)
      1 frame
    6. com.atlassian.upgrade
      UpgradeLauncherServletContextListener.contextInitialized
      1. com.atlassian.upgrade.UpgradeLauncherServletContextListener.contextInitialized(UpgradeLauncherServletContextListener.java:26)
      1 frame
    7. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      6. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
      7. org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
      8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
      9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
      10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
      13. org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
      15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
      16. org.apache.catalina.core.StandardService.start(StandardService.java:450)
      17. org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
      18. org.apache.catalina.startup.Catalina.start(Catalina.java:551)
      18 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    9. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
      2 frames