Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-3477

H2 Driver not found when starting enterprise console

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0 GA
    • Component/s: Spoon / User Interface
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Browser:
      Mozilla Firefox 3.5
    • Operating System/s:
      RedHat Enterprise Linux 4

      Description

      FATAL DriverManagerConnectionProvider - JDBC Driver class not found: org.h2.Driver
      java.lang.ClassNotFoundException: org.h2.Driver
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
      at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:61)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
      at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
      at com.pentaho.mgmt.core.repository.Repository.initialize(Repository.java:92)
      at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(ManagedPlatformRepository.java:47)
      at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.<init>(ManagedPlatformRepository.java:24)
      at com.pentaho.pac.server.PacProServiceImpl.initialze(PacProServiceImpl.java:158)
      at com.pentaho.pac.server.PacProServiceImpl.init(PacProServiceImpl.java:147)
      at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
      at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:222)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:152)
      at org.pentaho.pac.server.JettyServer.<init>(JettyServer.java:89)
      at com.pentaho.pac.server.ProJettyServer.<init>(ProJettyServer.java:31)
      at com.pentaho.pac.server.ProJettyServer.main(ProJettyServer.java:115)
      ERROR Repository - Repository.ERROR_0006 - Building SessionFactory failed.
      org.hibernate.HibernateException: JDBC Driver class not found: org.h2.Driver
      at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:66)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
      at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
      at com.pentaho.mgmt.core.repository.Repository.initialize(Repository.java:92)
      at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(ManagedPlatformRepository.java:47)
      at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.<init>(ManagedPlatformRepository.java:24)
      at com.pentaho.pac.server.PacProServiceImpl.initialze(PacProServiceImpl.java:158)
      at com.pentaho.pac.server.PacProServiceImpl.init(PacProServiceImpl.java:147)
      at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
      at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:222)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:152)
      at org.pentaho.pac.server.JettyServer.<init>(JettyServer.java:89)
      at com.pentaho.pac.server.ProJettyServer.<init>(ProJettyServer.java:31)
      at com.pentaho.pac.server.ProJettyServer.main(ProJettyServer.java:115)
      Caused by: java.lang.ClassNotFoundException: org.h2.Driver
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
      at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:61)

        Activity

        Hide
        arodriguez Angelo Rodriguez (Inactive) added a comment -

        Added the h2 jar to the pec install. You can find it at enterprise-console/jdbc. There should be no more h2 exceptions at startup.

        Show
        arodriguez Angelo Rodriguez (Inactive) added a comment - Added the h2 jar to the pec install. You can find it at enterprise-console/jdbc. There should be no more h2 exceptions at startup.
        Hide
        gdavid Golda Thomas added a comment -

        Tested this issue using the ci build 960 and this does not occur any more.

        Show
        gdavid Golda Thomas added a comment - Tested this issue using the ci build 960 and this does not occur any more.
        Hide
        gdavid Golda Thomas added a comment -

        Validated using the CI build using the 960

        Show
        gdavid Golda Thomas added a comment - Validated using the CI build using the 960

          People

          • Assignee:
            gdavid Golda Thomas
            Reporter:
            rmansoor Ramaiz Mansoor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: