-
1. Re: Cannot load JDBC driver class
gertv May 17, 2010 3:04 PM (in response to timcoat_tim)L.S.,
It's a bit hard to tell without seeing the actual stack trace, but I suspect it is the commons-dbcp bundle that is trying to load the JDBC driver class and is unable to find it.
One thing you can try to make that this is the actual problem, is using dev:dynamic-import for the commons-dbcp bundle to enable dynamic imports so the bundle can access any class in any bundle.
Another thing to try, would be using our commons-dbcp bundle implementations instead of the springsource one:
- mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_2
- mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_5
The first one has the dynamic imports active by default, the second one tries to use a more intelligent way of getting to the right package for the JDBC driver class.
Does any of these options fix the issue? If not, could you paste us the full stacktrace?
Regards,
Gert
-
2. Re: Cannot load JDBC driver class
timcoat_tim May 17, 2010 3:58 PM (in response to gertv)It appears that the second dbcp you listed was already activated in my setup. Thanks for the help. Below is the debug info: Let me know if you need anything else to track this down.
13:50:35,968 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:35,968 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:35,968 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:35,968 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:35,984 | DEBUG | tiveMQ Scheduler | Queue | che.activemq.broker.region.Queue 610 | Expiring messages ..
13:50:35,984 | DEBUG | tiveMQ Scheduler | Queue | che.activemq.broker.region.Queue 1427 | org.apache.servicemix.jbi.cluster toPageIn: 0, Inflight: 0, pagedInMessages.size 0, enqueueSize: 0
13:50:39,921 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 961 | Checkpoint started.
13:50:39,921 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 1047 | Checkpoint done.
13:50:43,171 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:43,171 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:43,171 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:43,171 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:43,296 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:43,296 | DEBUG | onitor ReadCheck | InactivityMonitor | mq.transport.InactivityMonitor$1 79 | 30000 ms elapsed since last read check.
13:50:43,296 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:43,296 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:43,890 | DEBUG | l Console Thread | ServiceRecipe | lueprint.container.ServiceRecipe 225 | Retrieving service for bundle org.apache.felix.gogo.runtime_0.2.2 and service registration {org.osgi.service.command.Function, org.apache.felix.karaf.shell.console.CompletableFunction}={osgi.command.function=start, osgi.command.scope=osgi, service.id=91}
13:50:43,890 | DEBUG | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 680 | Instantiating component shell-55
13:50:43,890 | DEBUG | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 680 | Instantiating component blueprintBundleContext
13:50:43,906 | DEBUG | l Console Thread | BlueprintExtender | rint.container.BlueprintExtender 178 | Scanning bundle simplehibernatebundle for blueprint application
13:50:43,906 | DEBUG | l Console Thread | BlueprintExtender | rint.container.BlueprintExtender 224 | No blueprint application found in bundle simplehibernatebundle
13:50:43,906 | DEBUG | l Console Thread | ContextLoaderListener | .activator.ContextLoaderListener 681 | Scanning bundle for configurations...
13:50:43,906 | DEBUG | l Console Thread | ContextLoaderListener | .activator.ContextLoaderListener 687 | Creating an application context for bundle
13:50:43,906 | INFO | l Console Thread | ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator 67 | Discovered configurations in bundle
13:50:43,906 | DEBUG | l Console Thread | ContextLoaderListener | .activator.ContextLoaderListener 743 | Asynchronous context creation for bundle
13:50:43,906 | DEBUG | l Console Thread | ContextLoaderListener | .activator.ContextLoaderListener 765 | Setting globally defined wait-for-dependencies timeout value=300000 ms, for bundle
13:50:43,906 | DEBUG | l Console Thread | Deployer | cemix.jbi.deployer.impl.Deployer 299 | Checking bundle: 'simplehibernatebundle (simplehibernatebundle)'
13:50:43,906 | DEBUG | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 169 | Starting first stage of refresh for OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:43,906 | DEBUG | l Console Thread | Deployer | cemix.jbi.deployer.impl.Deployer 302 | Bundle 'simplehibernatebundle (simplehibernatebundle)' does not contain any JBI descriptor.
13:50:43,906 | DEBUG | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 209 | Calling preRefresh on OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:43,906 | DEBUG | l Console Thread | Activator | org.apache.camel.osgi.Activator 83 | Bundle started: simplehibernatebundle
13:50:43,906 | INFO | xtenderThread-63 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 411 | Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1f4b610: display name OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml); startup date ; root of context hierarchy
13:50:43,906 | INFO | xtenderThread-63 | OsgiBundleXmlApplicationContext | ractOsgiBundleApplicationContext 359 | Unpublishing application context OSGi service for bundle simplehibernatebundle (simplehibernatebundle)
13:50:43,906 | DEBUG | l Console Thread | BundleWatcher | .swissbox.extender.BundleWatcher 176 | Scanning bundle
13:50:43,906 | DEBUG | Event Dispatcher | simplehibernatebundle | ? ? | BundleEvent STARTED
13:50:43,906 | INFO | xtenderThread-63 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from URL bundleentry://195.fwk27334345/META-INF/spring/bundle-context-osgi.xml
13:50:43,906 | DEBUG | xtenderThread-63 | DefaultDocumentLoader | actory.xml.DefaultDocumentLoader 72 | Using JAXP provider
13:50:43,906 | DEBUG | xtenderThread-63 | PluggableSchemaResolver | tory.xml.PluggableSchemaResolver 125 | Loading schema mappings from
13:50:43,906 | DEBUG | xtenderThread-63 | PluggableSchemaResolver | tory.xml.PluggableSchemaResolver 131 | Loaded schema mappings: {}
13:50:43,906 | DEBUG | xtenderThread-63 | NamespacePlugins | nternal.support.NamespacePlugins 191 | Trying to resolving entity for null|http://www.springframework.org/schema/beans/spring-beans.xsd
13:50:43,906 | DEBUG | xtenderThread-63 | PluggableSchemaResolver | tory.xml.PluggableSchemaResolver 114 | Found XML schema http://www.springframework.org/schema/beans/spring-beans.xsd in classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
13:50:43,906 | DEBUG | xtenderThread-63 | NamespacePlugins | nternal.support.NamespacePlugins 201 | XML schema for null|http://www.springframework.org/schema/beans/spring-beans.xsd found inside Spring Beans (org.springframework.beans)
13:50:43,921 | DEBUG | xtenderThread-63 | aultBeanDefinitionDocumentReader | aultBeanDefinitionDocumentReader 86 | Loading bean definitions
13:50:43,921 | INFO | xtenderThread-63 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from URL bundleentry://195.fwk27334345/META-INF/spring/bundle-context.xml
13:50:43,921 | DEBUG | xtenderThread-63 | DefaultDocumentLoader | actory.xml.DefaultDocumentLoader 72 | Using JAXP provider
13:50:43,921 | DEBUG | xtenderThread-63 | NamespacePlugins | nternal.support.NamespacePlugins 191 | Trying to resolving entity for null|http://www.springframework.org/schema/beans/spring-beans.xsd
13:50:43,921 | DEBUG | xtenderThread-63 | PluggableSchemaResolver | tory.xml.PluggableSchemaResolver 114 | Found XML schema http://www.springframework.org/schema/beans/spring-beans.xsd in classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
13:50:43,921 | DEBUG | xtenderThread-63 | NamespacePlugins | nternal.support.NamespacePlugins 201 | XML schema for null|http://www.springframework.org/schema/beans/spring-beans.xsd found inside Spring Beans (org.springframework.beans)
13:50:43,937 | DEBUG | xtenderThread-63 | aultBeanDefinitionDocumentReader | aultBeanDefinitionDocumentReader 86 | Loading bean definitions
13:50:43,937 | INFO | xtenderThread-63 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from URL bundleentry://195.fwk27334345/META-INF/spring/hibernate.cfg.xml
13:50:43,937 | DEBUG | xtenderThread-63 | DefaultDocumentLoader | actory.xml.DefaultDocumentLoader 72 | Using JAXP provider
13:50:43,937 | DEBUG | xtenderThread-63 | NamespacePlugins | nternal.support.NamespacePlugins 191 | Trying to resolving entity for -//Hibernate/Hibernate Configuration DTD 3.0//EN|http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
13:50:44,078 | DEBUG | xtenderThread-63 | aultBeanDefinitionDocumentReader | aultBeanDefinitionDocumentReader 86 | Loading bean definitions
13:50:44,078 | DEBUG | xtenderThread-63 | XmlBeanDefinitionReader | ort.AbstractBeanDefinitionReader 185 | Loaded 4 bean definitions from location pattern osgibundle:/META-INF/spring/*.xml
13:50:44,078 | INFO | xtenderThread-63 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 426 | Bean factory for application context : org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2e2f4
13:50:44,078 | DEBUG | xtenderThread-63 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 430 | 4 beans defined in org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@1f4b610: display name OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml); startup date ; root of context hierarchy
13:50:44,078 | DEBUG | xtenderThread-63 | OsgiBundleXmlApplicationContext | ractOsgiBundleApplicationContext 250 | Registering BundleContext as a bean named bundleContext
13:50:44,078 | DEBUG | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 225 | Pre-refresh completed; determining dependencies...
13:50:44,078 | DEBUG | xtenderThread-63 | DependencyServiceManager | startup.DependencyServiceManager 253 | Discovered local dependency factories: []
13:50:44,078 | DEBUG | xtenderThread-63 | DependencyServiceManager | startup.DependencyServiceManager 226 | 0 OSGi service dependencies, 0 unsatisfied (for beans []) in OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:44,093 | INFO | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 252 | No outstanding OSGi service dependencies, completing initialization for OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:44,093 | DEBUG | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 296 | Starting stage two for OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:44,093 | DEBUG | xtenderThread-63 | WaiterApplicationContextExecutor | WaiterApplicationContextExecutor 502 | Cancelled dependency watchdog...
13:50:44,093 | DEBUG | xtenderThread-64 | WaiterApplicationContextExecutor | textExecutor$CompleteRefreshTask 125 | Completing refresh for OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml)
13:50:44,093 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 648 | Unable to locate MessageSource with name 'messageSource': using default
13:50:44,093 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 672 | Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default
13:50:44,093 | INFO | xtenderThread-64 | DefaultListableBeanFactory | pport.DefaultListableBeanFactory 414 | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2e2f4: defining beans ; root of factory hierarchy
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 214 | Creating shared instance of singleton bean 'dataSource'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 383 | Creating instance of bean 'dataSource'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'dataSource' to allow for resolving potential circular references
13:50:44,093 | DEBUG | xtenderThread-64 | CachedIntrospectionResults | beans.CachedIntrospectionResults 151 | Not strongly caching class because it is not cache-safe
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean 'dataSource'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 214 | Creating shared instance of singleton bean 'factory'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 383 | Creating instance of bean 'factory'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'factory' to allow for resolving potential circular references
13:50:44,093 | DEBUG | xtenderThread-64 | CachedIntrospectionResults | beans.CachedIntrospectionResults 151 | Not strongly caching class because it is not cache-safe
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | tory.support.AbstractBeanFactory 214 | Returning cached instance of singleton bean 'dataSource'
13:50:44,093 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 1367 | Invoking afterPropertiesSet() on bean with name 'factory'
13:50:44,093 | DEBUG | xtenderThread-64 | DTDEntityResolver | hibernate.util.DTDEntityResolver 64 | trying to resolve system-id http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
13:50:44,093 | DEBUG | xtenderThread-64 | DTDEntityResolver | hibernate.util.DTDEntityResolver 66 | recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
13:50:44,093 | DEBUG | xtenderThread-64 | DTDEntityResolver | hibernate.util.DTDEntityResolver 76 | located http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
13:50:44,109 | INFO | xtenderThread-64 | HbmBinder | org.hibernate.cfg.HbmBinder 322 | Mapping class: com.me.icp.simplehibernatebundle.internal.Event -> events
13:50:44,109 | DEBUG | xtenderThread-64 | HbmBinder | org.hibernate.cfg.HbmBinder 1289 | Mapped property: id -> uid
13:50:44,109 | DEBUG | xtenderThread-64 | HbmBinder | org.hibernate.cfg.HbmBinder 1289 | Mapped property: name -> name
13:50:44,109 | DEBUG | xtenderThread-64 | HbmBinder | org.hibernate.cfg.HbmBinder 1289 | Mapped property: startDate -> start_date
13:50:44,109 | DEBUG | xtenderThread-64 | HbmBinder | org.hibernate.cfg.HbmBinder 1289 | Mapped property: duration -> duration
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1167 | processing extends queue
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1171 | processing collection mappings
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1182 | processing native query and ResultSetMapping mappings
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1190 | processing association property references
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1212 | processing foreign key constraints
13:50:44,109 | INFO | xtenderThread-64 | LocalSessionFactoryBean | bernate3.LocalSessionFactoryBean 730 | Building new Hibernate SessionFactory
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1332 | Preparing to build session factory with filters : {}
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1167 | processing extends queue
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1171 | processing collection mappings
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1182 | processing native query and ResultSetMapping mappings
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1190 | processing association property references
13:50:44,109 | DEBUG | xtenderThread-64 | Configuration | org.hibernate.cfg.Configuration 1212 | processing foreign key constraints
13:50:44,109 | INFO | xtenderThread-64 | ConnectionProviderFactory | ection.ConnectionProviderFactory 95 | Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
13:50:44,109 | DEBUG | xtenderThread-64 | JDBCExceptionReporter | rnate.util.JDBCExceptionReporter 92 | SQL Exception
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1142)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:881)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver not found from bundle
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1135)
... 28 more
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
... 31 more
13:50:44,109 | WARN | xtenderThread-64 | JDBCExceptionReporter | rnate.util.JDBCExceptionReporter 100 | SQL Error: 0, SQLState: null
13:50:44,109 | ERROR | xtenderThread-64 | JDBCExceptionReporter | rnate.util.JDBCExceptionReporter 101 | Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
13:50:44,109 | WARN | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 133 | Could not obtain connection to query metadata
org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1142)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:881)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver not found from bundle
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1135)
... 28 more
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
... 31 more
13:50:44,125 | INFO | xtenderThread-64 | Dialect | org.hibernate.dialect.Dialect 175 | Using dialect: org.hibernate.dialect.HSQLDialect
13:50:44,125 | INFO | xtenderThread-64 | TransactionFactoryFactory | action.TransactionFactoryFactory 62 | Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
13:50:44,125 | INFO | xtenderThread-64 | TransactionManagerLookupFactory | .TransactionManagerLookupFactory 80 | No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 161 | Automatic flush during beforeCompletion(): disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 165 | Automatic session close at end of transaction: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 180 | Scrollable result sets: disabled
13:50:44,125 | DEBUG | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 184 | Wrap result sets: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 188 | JDBC3 getGeneratedKeys(): disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 196 | Connection release mode: auto
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 223 | Default batch fetch size: 1
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 227 | Generate SQL with comments: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 231 | Order SQL updates by primary key: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 235 | Order SQL inserts for batching: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 397 | Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
13:50:44,125 | INFO | xtenderThread-64 | ASTQueryTranslatorFactory | ql.ast.ASTQueryTranslatorFactory 47 | Using ASTQueryTranslatorFactory
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 243 | Query language substitutions: {}
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 248 | JPA-QL strict compliance: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 253 | Second-level cache: enabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 257 | Query cache: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 382 | Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 267 | Optimize cache for minimal puts: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 276 | Structured second-level cache entries: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 305 | Statistics: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 309 | Deleted entity synthetic identifier rollback: disabled
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 324 | Default entity-mode: pojo
13:50:44,125 | INFO | xtenderThread-64 | SettingsFactory | rg.hibernate.cfg.SettingsFactory 328 | Named query checking : enabled
13:50:44,125 | INFO | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 193 | building session factory
13:50:44,125 | DEBUG | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 211 | Session factory constructed with filter configurations : {}
13:50:44,125 | DEBUG | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 215 | instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., org.osgi.service.http.port=8181, sun.java.launcher=SUN_STANDARD, sun.management.compiler=HotSpot Server Compiler, os.name=Windows XP, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_12\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_12\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_12\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_12\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_12\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_12\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_12\jre\classes, java.util.logging.config.file=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\etc\java.util.logging.properties, hibernate.current_session_context_class=org.springframework.orm.hibernate3.SpringSessionContext, sun.desktop=windows, com.sun.management.jmxremote=, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_12-b04, user.name=tim, derby.storage.fileSyncTransactionLog=true, karaf.startLocalConsole=true, karaf.home=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00, user.language=en, derby.system.home=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\data\derby, sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_12\jre\bin, java.version=1.5.0_12, user.timezone=America/Denver, sun.arch.data.model=32, java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_12\jre\lib\endorsed, java.rmi.server.randomIDs=true, sun.cpu.isalist=, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=49.0, user.country=US, java.home=C:\Program Files\Java\jdk1.5.0_12\jre, java.vm.info=mixed mode, os.version=5.1, storage.location=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\instances, hibernate.transaction.factory_class=org.springframework.orm.hibernate3.SpringTransactionFactory, path.separator=;, java.vm.version=1.5.0_12-b04, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, karaf.base=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00, awt.toolkit=sun.awt.windows.WToolkit, user.home=C:\Documents and Settings\tim, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\PC Connectivity Solution\;C:\Program Files\Java\jdk1.5.0_12\bin;C:\php\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;c:\apache-maven-2.0.8\bin;C:\Program Files\QuickTime\QTSystem\;C:\GlassFishESB\netbeans\java2\ant\bin;C:\IHE\opensso\glassfish\glassfish\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\NHINC\ThirdPartyTools\OpenSSO\ssoAdminTools\opensso\bin;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\db-derby-10.5.1.1-bin\bin;C:\Program Files\Java\jdk1.5.0_12\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\GlassFishESB\netbeans\java2\ant\bin;C:\Program Files\CVSNT\;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib, java.vendor.url=http://java.sun.com/, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=c:\;C:\Program Files\Java\jre1.6.0_04\lib\ext\QTJava.zip;C:\Program Files\Java\jdk1.5.0_12;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\conf;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib\karaf-client.jar;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib\karaf-jaas-boot.jar;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib\karaf.jar;D:\projects\me\apache-servicemix-4.2.0-fuse-01-00\bin\..\lib\servicemix-version.jar, hibernate.bytecode.use_reflection_optimizer=false, karaf.default.repository=system, java.vm.specification.name=Java Virtual Machine Specification, karaf.startRemoteShell=true, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=Service Pack 3, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, java.io.tmpdir=C:\DOCUME1\tim\LOCALS1\Temp\, xml.catalog.files=, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, org.ops4j.pax.logging.DefaultServiceLog.level=ERROR, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_12\jre\lib\ext, karaf.name=root, user.dir=D:\projects\me\apache-servicemix-4.2.0-fuse-01-00, line.separator=
, java.vm.name=Java HotSpot(TM) Server VM, file.encoding=Cp1252, java.specification.version=1.5, hibernate.show_sql=false}
13:50:44,125 | ERROR | xtenderThread-64 | BasicLazyInitializer | vassist.JavassistLazyInitializer 165 | Javassist Enhancement failed: com.me.icp.simplehibernatebundle.internal.Event
java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:344)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.(SessionFactoryImpl.java:267)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:344)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
... 39 more
Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:169)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:339)
... 42 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
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 javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:163)
... 43 more
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2756 | Static SQL for entity: com.me.icp.simplehibernatebundle.internal.Event
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2761 | Version select: select uid from events where uid =?
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2764 | Snapshot select: select event_.uid, event_.name as name6_, event_.start_date as start3_6_, event_.duration as duration6_ from events event_ where event_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2767 | Insert 0: insert into events (name, start_date, duration, uid) values (?, ?, ?, ?)
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2768 | Update 0: update events set name=?, start_date=?, duration=? where uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | AbstractEntityPersister | r.entity.AbstractEntityPersister 2769 | Delete 0: delete from events where uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | rnate.loader.entity.EntityLoader 102 | Static select for entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | rnate.loader.entity.EntityLoader 102 | Static select for entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | rnate.loader.entity.EntityLoader 102 | Static select for entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | rnate.loader.entity.EntityLoader 102 | Static select for entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | rnate.loader.entity.EntityLoader 102 | Static select for entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | oader.entity.CascadeEntityLoader 57 | Static select for action ACTION_MERGE on entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | EntityLoader | oader.entity.CascadeEntityLoader 57 | Static select for action ACTION_REFRESH on entity com.me.icp.simplehibernatebundle.internal.Event: select event0_.uid as uid6_0_, event0_.name as name6_0_, event0_.start_date as start3_6_0_, event0_.duration as duration6_0_ from events event0_ where event0_.uid=?
13:50:44,140 | DEBUG | xtenderThread-64 | SessionFactoryObjectFactory | impl.SessionFactoryObjectFactory 99 | registered: 4028828328a7cc850128a7d17eac0002 (unnamed)
13:50:44,140 | INFO | xtenderThread-64 | SessionFactoryObjectFactory | impl.SessionFactoryObjectFactory 105 | Not binding factory to JNDI, no JNDI name configured
13:50:44,140 | DEBUG | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 350 | instantiated session factory
13:50:44,140 | DEBUG | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 474 | Checking 0 named HQL queries
13:50:44,140 | DEBUG | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 494 | Checking 0 named SQL queries
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean 'factory'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 214 | Creating shared instance of singleton bean 'eventDao'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 383 | Creating instance of bean 'eventDao'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'eventDao' to allow for resolving potential circular references
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | tory.support.AbstractBeanFactory 214 | Returning cached instance of singleton bean 'factory'
13:50:44,140 | DEBUG | xtenderThread-64 | CachedIntrospectionResults | beans.CachedIntrospectionResults 151 | Not strongly caching class because it is not cache-safe
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 1367 | Invoking afterPropertiesSet() on bean with name 'eventDao'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 411 | Finished creating instance of bean 'eventDao'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 214 | Creating shared instance of singleton bean 'main'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | ractAutowireCapableBeanFactory$1 383 | Creating instance of bean 'main'
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 459 | Eagerly caching bean 'main' to allow for resolving potential circular references
13:50:44,140 | DEBUG | xtenderThread-64 | DefaultListableBeanFactory | stractAutowireCapableBeanFactory 1367 | Invoking afterPropertiesSet() on bean with name 'main'
13:50:44,140 | DEBUG | xtenderThread-64 | Main | a.icp.simplehibernatebundle.Main 48 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13:50:44,140 | DEBUG | xtenderThread-64 | Main | a.icp.simplehibernatebundle.Main 49 | !!!!!! TADAH!!! !!!!!
13:50:44,140 | INFO | xtenderThread-64 | DefaultListableBeanFactory | ort.DefaultSingletonBeanRegistry 421 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e2e2f4: defining beans ; root of factory hierarchy
13:50:44,140 | DEBUG | xtenderThread-64 | DisposableBeanAdapter | ry.support.DisposableBeanAdapter 148 | Invoking destroy() on bean with name 'factory'
13:50:44,140 | INFO | xtenderThread-64 | LocalSessionFactoryBean | nate3.AbstractSessionFactoryBean 246 | Closing Hibernate SessionFactory
13:50:44,140 | INFO | xtenderThread-64 | SessionFactoryImpl | ibernate.impl.SessionFactoryImpl 853 | closing
13:50:44,140 | DEBUG | xtenderThread-64 | DisposableBeanAdapter | ry.support.DisposableBeanAdapter 203 | Invoking destroy method 'close' on bean with name 'dataSource'
13:50:44,140 | DEBUG | xtenderThread-64 | OsgiBundleXmlApplicationContext | gatedExecutionApplicationContext 379 | Post refresh error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'main' defined in URL bundleentry://195.fwk27334345/META-INF/spring/bundle-context.xml: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError
at com.me.icp.simplehibernatebundle.Main.afterPropertiesSet(Main.java:50)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 17 more
13:50:44,140 | DEBUG | xtenderThread-64 | BlueprintListener | actory$SpringApplicationListener 144 | Spring app state changed to Failed for bundle 195
13:50:44,140 | ERROR | xtenderThread-64 | ContextLoaderListener | BundleApplicationContextListener 50 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=simplehibernatebundle, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'main' defined in URL bundleentry://195.fwk27334345/META-INF/spring/bundle-context.xml: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundErroar
at com.me.icp.simplehibernatebundle.Main.afterPropertiesSet(Main.java:50)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 17 more
13:50:44,921 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 961 | Checkpoint started.
13:50:44,937 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 1047 | Checkpoint done.
13:50:45,968 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:45,968 | DEBUG | nitor WriteCheck | InactivityMonitor | mq.transport.InactivityMonitor$2 106 | 10000 ms elapsed since last write check.
13:50:47,203 | DEBUG | l Console Thread | ServiceRecipe | lueprint.container.ServiceRecipe 225 | Retrieving service for bundle org.apache.felix.gogo.runtime_0.2.2 and service registration {org.osgi.service.command.Function, org.apache.felix.karaf.shell.console.CompletableFunction}={osgi.command.function=stop, osgi.command.scope=osgi, service.id=104}
13:50:47,203 | DEBUG | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 680 | Instantiating component shell-59
13:50:47,203 | DEBUG | l Console Thread | BlueprintContainerImpl | container.BlueprintContainerImpl 680 | Instantiating component blueprintBundleContext
13:50:47,203 | DEBUG | l Console Thread | Activator | org.apache.camel.osgi.Activator 91 | Bundle stopped: simplehibernatebundle
13:50:47,203 | DEBUG | l Console Thread | NamespacePlugins | nternal.support.NamespacePlugins 115 | Removing handler simplehibernatebundle (simplehibernatebundle)
13:50:47,203 | DEBUG | l Console Thread | BundleWatcher | .swissbox.extender.BundleWatcher 204 | Releasing bundle
13:50:47,203 | DEBUG | Event Dispatcher | simplehibernatebundle | ? ? | BundleEvent STOPPED
13:50:49,937 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 961 | Checkpoint started.
13:50:49,937 | DEBUG | heckpoint Worker | MessageDatabase | emq.store.kahadb.MessageDatabase 1047 | Checkpoint done.
-
3. Re: Cannot load JDBC driver class
gertv May 17, 2010 4:37 PM (in response to timcoat_tim)L.S.,
Can you make sure that you don't have multiple dbcp bundles in your container (e.g. the spring one that's hotdeployed and the default one)? Also, could you try running the dev:dynamic-import or try with the other bundle I mentioned? I think both of those might be able to fix the JDBC driver exception you're seeing.
I'm not entirely sure about the other exception later on in the log file though. That looks like it might be a second/unrelated problem...
Regards,
Gert
-
4. Re: Cannot load JDBC driver class
timcoat_tim May 17, 2010 5:19 PM (in response to gertv)Thanks again for helping.
I have attached the eclipse project. I figure that it might be useful to somebody later. Also, is the log file in the zip. The karaf.log. If you can get that project to work, or anybody else, then we would know that it is my configuration that is the problem.
I did do as instructed. I uninstalled the existing dbcp and installed each of the ones you indicated. Tested each one before trying the other. I still had the same results.
What were the unrelated Exceptions that you mentioned? I thought if I could fix this the others would be fixed
-
simplehibernate.zip 52.1 KB
-
-
5. Re: Cannot load JDBC driver class
timcoat_tim May 17, 2010 5:26 PM (in response to timcoat_tim)FYI I forgot to add the dependencies in that attached project (it was a duplicate of the one I was testing) for hsqldb and dbcp. But it doesn't make any difference. The results are the same when those two dependencies are indicated in the pom.xml.
-
6. Re: Cannot load JDBC driver class
timcoat_tim May 17, 2010 5:34 PM (in response to timcoat_tim)I also did remove
com.springsource.org.apache.commons.dbcp-1.2.2.osgi.jar
com.springsource.org.hsqldb-1.8.0.9.jar
from the deploy directory.
-
7. Re: Cannot load JDBC driver class
timcoat_tim May 18, 2010 2:50 PM (in response to timcoat_tim)I ended up doing a
dev:dynamic-import bundleid
on my own project,
after doing that to the dbcp bundle first.
Then I was able to make some head way.
Now I have the hibernate specific problem to figure out.
Thanks for the help.