Hello,
I am desperate here. I cannot get a hibernate based application to run under the dm server. During the application's startup process the DM Server reports a
"ClassNotFoundException: org.hibernate.MappingException"
which is very strang as I have installed the com.springsource.org.hibernate bundle (tried version 3.3.2.GA and 3.3.1.GA) which contains that class. The web console reports this bundle as started. I also have imported the package as well as the bundle as you can see from the manifest:
Is there anything I am missing here?Code:Manifest-Version: 1.0 Export-Package: de.ypsilon.webshop.dao,de.ypsilon.webshop.domain Bundle-Version: 1.0.0 Bundle-Name: Domain Bundle-ManifestVersion: 2 Import-Bundle: com.springsource.org.hibernate;version="[3.3.1.GA,3.3.2.GA]" Import-Package: javax.persistence;version="[1.0.0,1.0.0]", de.ypsilon.generic;version="[1.0.0.0,1.0.0.0]", de.ypsilon.generic.spring.dao, org.springframework.beans;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.context;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.core;version="3.0.0.RELEASE", org.springframework.dao.support;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.orm.hibernate3;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.orm.hibernate3.annotation;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.orm.hibernate3.support;version="[3.0.0.RELEASE,3.0.0.RELEASE]", org.springframework.transaction.annotation;version="[3.0.0.RELEASE,3.0.0.RELEASE]" Bundle-SymbolicName: de.ypsilon.webshop.domain
Thanks in advance for any assistance.
Greetings
Peer
PS: Here is the complete Stacktrace. Oh and the server is dm server 2.0.0.RELEASE running on linux with a jdk1.6 java (build 1.6.0_13-b03)
Code:[2010-01-30 23:38:39.480] region-dm-14 o.s.beans.factory.support.DefaultListableBeanFactory DEBUG Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor' [2010-01-30 23:38:39.480] region-dm-14 o.s.beans.factory.support.DefaultListableBeanFactory DEBUG Creating shared instance of singleton bean 'factory' [2010-01-30 23:38:39.481] region-dm-14 o.s.beans.factory.support.DefaultListableBeanFactory DEBUG Creating instance of bean 'factory' [2010-01-30 23:38:39.482] region-dm-14 o.s.beans.factory.support.DefaultListableBeanFactory INFO Destroying singletons in org.springframework.beans.factory.s upport.DefaultListableBeanFactory@b51c44: defining beans [org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,factory,transactionManager,itemDao,categoryDao,reviewDao,assetDao,messageDao,watchlistDao,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#2,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#3,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#4,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#5]; root of factory hierarchy [2010-01-30 23:38:39.483] region-dm-14 o.s.beans.factory.support.DefaultListableBeanFactory DEBUG Retrieved dependent beans for bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': [org.springframework.transaction.config.internalTransactionAdvisor] [2010-01-30 23:38:39.499] region-dm-14 o.s.osgi.context.support.OsgiBundleXmlApplicationContext DEBUG Post refresh error org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factory' defined in URL [bundleentry://73.fwk32858455/META-INF/spring/module-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/MappingException at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:946) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:890) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:540) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842) 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:132) at com.springsource.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:106) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: org/hibernate/MappingException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.getDeclaredConstructor(Class.java:1985) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:64) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:938) ... 18 common frames omitted Caused by: com.springsource.kernel.osgi.framework.ExtendedClassNotFoundException: org.hibernate.MappingException in KernelBundleClassLoader: [bundle=org.springframework.orm_3.0.0.RELEASE] at com.springsource.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:149) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 24 common frames omitted Caused by: java.lang.ClassNotFoundException: org.hibernate.MappingException 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 com.springsource.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:145) ... 26 common frames omitted


