com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0]

SpringSource Issue Tracker | Radhika Madala (c) | 7 years ago
  1. 0

    The attached app is fails to deploy on dm Server 2.0 snapshot build giving the "java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS" The full stack trace can be found in the attachment. The same app is deployed successfully in 2.0.0.M2 [2009-06-16 09:48:07.464] async-delivery-thread-1 ContainerBase.[Catalina].[localhost].[/wicket-phonebook].unknown E Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:141) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:268) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:221) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at com.springsource.osgi.webcontainer.tomcat.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:102) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.server.web.core.internal.WebBundlePersonality.onStarted(WebBundlePersonality.java:84) at com.springsource.kernel.deployer.core.module.AbstractModule.onStarted(AbstractModule.java:218) at com.springsource.kernel.deployer.core.module.StandardModule.onStarted(StandardModule.java:654) at com.springsource.kernel.deployer.core.module.DeployerBundleListener$2$1.run(DeployerBundleListener.java:148) at com.springsource.kernel.concurrent.ExecutorServiceDelegate$KernelRunnable.run(ExecutorServiceDelegate.java:121) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) Caused by: com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:334) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:574) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:544) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:475) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:463) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:443) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:194) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137) ... 33 more Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:166) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:332) ... 45 more Caused by: com.springsource.kernel.osgi.framework.ExtendedClassNotFoundException: org.w3c.dom.ls.DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) ... 49 more Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:443) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137) ... 51 more [2009-06-16 09:48:07.465] async-delivery-thread-1 org.apache.catalina.core.StandardContext.unknown E Error listenerStart [2009-06-16 09:48:07.466] async-delivery-thread-1 org.apache.catalina.core.StandardContext.unknown E Context [/wicket-phonebook] startup failed due to previous errors [2009-06-16 09:48:07.552] async-delivery-thread-1 ngsource.osgi.webcontainer.internal.StandardWebContainer.unknown E Failed to start web application at context path '/wicket-phonebook' com.springsource.osgi.webcontainer.core.spi.ServletContainerException: Web application at '/wicket-phonebook' failed to start. Check the logs for more details. at com.springsource.osgi.webcontainer.tomcat.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:105) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.server.web.core.internal.WebBundlePersonality.onStarted(WebBundlePersonality.java:84) at com.springsource.kernel.deployer.core.module.AbstractModule.onStarted(AbstractModule.java:218) at com.springsource.kernel.deployer.core.module.StandardModule.onStarted(StandardModule.java:654) at com.springsource.kernel.deployer.core.module.DeployerBundleListener$2$1.run(DeployerBundleListener.java:148) at com.springsource.kernel.concurrent.ExecutorServiceDelegate$KernelRunnable.run(ExecutorServiceDelegate.java:121) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 7 years ago | Radhika Madala (c)
    com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0]
  2. 0

    The attached app is fails to deploy on dm Server 2.0 snapshot build giving the "java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS" The full stack trace can be found in the attachment. The same app is deployed successfully in 2.0.0.M2 [2009-06-16 09:48:07.464] async-delivery-thread-1 ContainerBase.[Catalina].[localhost].[/wicket-phonebook].unknown E Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:141) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:268) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:221) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at com.springsource.osgi.webcontainer.tomcat.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:102) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.server.web.core.internal.WebBundlePersonality.onStarted(WebBundlePersonality.java:84) at com.springsource.kernel.deployer.core.module.AbstractModule.onStarted(AbstractModule.java:218) at com.springsource.kernel.deployer.core.module.StandardModule.onStarted(StandardModule.java:654) at com.springsource.kernel.deployer.core.module.DeployerBundleListener$2$1.run(DeployerBundleListener.java:148) at com.springsource.kernel.concurrent.ExecutorServiceDelegate$KernelRunnable.run(ExecutorServiceDelegate.java:121) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) Caused by: com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:334) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:574) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:544) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:475) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:463) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:443) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:194) at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376) at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137) ... 33 more Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:166) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:332) ... 45 more Caused by: com.springsource.kernel.osgi.framework.ExtendedClassNotFoundException: org.w3c.dom.ls.DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) ... 49 more Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:443) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88) at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137) ... 51 more [2009-06-16 09:48:07.465] async-delivery-thread-1 org.apache.catalina.core.StandardContext.unknown E Error listenerStart [2009-06-16 09:48:07.466] async-delivery-thread-1 org.apache.catalina.core.StandardContext.unknown E Context [/wicket-phonebook] startup failed due to previous errors [2009-06-16 09:48:07.552] async-delivery-thread-1 ngsource.osgi.webcontainer.internal.StandardWebContainer.unknown E Failed to start web application at context path '/wicket-phonebook' com.springsource.osgi.webcontainer.core.spi.ServletContainerException: Web application at '/wicket-phonebook' failed to start. Check the logs for more details. at com.springsource.osgi.webcontainer.tomcat.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:105) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.server.web.core.internal.WebBundlePersonality.onStarted(WebBundlePersonality.java:84) at com.springsource.kernel.deployer.core.module.AbstractModule.onStarted(AbstractModule.java:218) at com.springsource.kernel.deployer.core.module.StandardModule.onStarted(StandardModule.java:654) at com.springsource.kernel.deployer.core.module.DeployerBundleListener$2$1.run(DeployerBundleListener.java:148) at com.springsource.kernel.concurrent.ExecutorServiceDelegate$KernelRunnable.run(ExecutorServiceDelegate.java:121) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637)

    SpringSource Issue Tracker | 7 years ago | Radhika Madala (c)
    com.springsource.kernel.osgi.framework.ExtendedNoClassDefFoundError: org/w3c/dom/ls/DocumentLS in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0] in KernelBundleClassLoader: [bundle=wicket-phonebook.war_0.0.0]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    problem with javax.mail packages - Spring Forum

    spring.io | 4 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailSender' defined in URL [bundleentry://171.fwk16675983/META-INF/spring/module-osgi.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
  5. 0

    Getting the below stack trace when i am trying to deploy the petclinic hibernate sample in "2.0.0.CI-10" build of dm Server. [2009-10-06 10:46:03.655] fs-watcher <HD0001I> Processing 'CREATED' event for file 'org.springframework.petclinic.hibernate-2.0.0.RELEASE.par'. [2009-10-06 10:46:03.744] fs-watcher <DE0056I> Installing par 'org.springframework.petclinic.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:03.750] fs-watcher <DE0056I> Installing bundle 'org.springframework.petclinic.domain' version '2.0.0.RELEASE'. [2009-10-06 10:46:03.757] fs-watcher <DE0056I> Installing bundle 'org.springframework.petclinic.infrastructure.hsqldb' version '2.0.0.RELEASE'. [2009-10-06 10:46:03.763] fs-watcher <DE0056I> Installing bundle 'org.springframework.petclinic.repository' version '2.0.0.RELEASE'. [2009-10-06 10:46:03.770] fs-watcher <DE0056I> Installing bundle 'org.springframework.petclinic.repository.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:03.776] fs-watcher <DE0056I> Installing bundle 'org.springframework.petclinic.web' version '1.0.0'. [2009-10-06 10:46:07.094] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.domain' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.103] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.infrastructure.hsqldb' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.111] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.repository' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.119] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.repository.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.127] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.web' version '1.0.0'. [2009-10-06 10:46:07.135] fs-watcher <DE0057I> Installed bundle 'org.springframework.petclinic.hibernate-synthetic.context' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.143] fs-watcher <DE0057I> Installed par 'org.springframework.petclinic.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.222] fs-watcher <DE0059I> Starting par 'org.springframework.petclinic.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.235] fs-watcher <DE0059I> Starting bundle 'org.springframework.petclinic.domain' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.247] fs-watcher <DE0060I> Started bundle 'org.springframework.petclinic.domain' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.261] fs-watcher <DE0059I> Starting bundle 'org.springframework.petclinic.infrastructure.hsqldb' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.289] fs-watcher <DE0059I> Starting bundle 'org.springframework.petclinic.repository' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.302] fs-watcher <DE0060I> Started bundle 'org.springframework.petclinic.repository' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.321] fs-watcher <DE0059I> Starting bundle 'org.springframework.petclinic.repository.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:07.672] fs-watcher <DE0059I> Starting bundle 'org.springframework.petclinic.web' version '1.0.0'. [2009-10-06 10:46:07.687] Thread-2 <WE0000I> Starting web bundle 'org.springframework.petclinic.hibernate-2.0.0.RELEASE-org.springframework.petclinic.web' context path '/petclinic'. [2009-10-06 10:46:08.102] Thread-2 <DE0060I> Started bundle 'org.springframework.petclinic.infrastructure.hsqldb' version '2.0.0.RELEASE'. [2009-10-06 10:46:08.175] Thread-2 <DE0061E> Start failed for bundle 'org.springframework.petclinic.repository.hibernate' version '2.0.0.RELEASE'. [2009-10-06 10:46:08.176] server-dm-10 <DE0020E> Application context creation failure for bundle 'org.springframework.petclinic.hibernate-2.0.0.RELEASE-org.springframework.petclinic.repository.hibernate'. java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:495) at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:476) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:212) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:200) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:120) at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:275) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:786) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:513) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:730) 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 com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:83) 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:637) Caused by: com.springsource.kernel.osgi.framework.ExtendedClassNotFoundException: javax.transaction.TransactionManager in KernelBundleClassLoader: [bundle=org.springframework.orm_3.0.0.CI-395] at com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:131) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402) ... 27 common frames omitted Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:448) 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.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:129) ... 29 common frames omitted Including the import package for "javax.transaction" in the org.springframework.petclinic.repository.hibernate bundle has no use.Getting the same problem.

    SpringSource Issue Tracker | 7 years ago | Radhika Madala (c)
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

    41 unregistered visitors
    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. java.lang.ClassNotFoundException

      org.w3c.dom.ls.DocumentLS

      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal()
    2. Eclipse OSGi
      BundleLoader.findClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:443)
      2. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
      3 frames
    3. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88)
      1 frame
    4. com.springsource.kernel
      KernelBundleClassLoader.loadClass
      1. com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137)
      1 frame
    5. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
      3. java.lang.ClassLoader.defineClass1(Native Method)
      4. java.lang.ClassLoader.defineClass(ClassLoader.java:675)
      4 frames
    6. Eclipse OSGi
      DefaultClassLoader.defineClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:166)
      1 frame
    7. com.springsource.kernel
      KernelBundleClassLoader.defineClass
      1. com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:332)
      1 frame
    8. Eclipse OSGi
      DefaultClassLoader.findLocalClass
      1. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:574)
      2. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:544)
      3. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:475)
      4. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:463)
      5. org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:443)
      6. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:194)
      6 frames
    9. Eclipse OSGi
      BundleLoader.findClass
      1. org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
      2. org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452)
      3. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
      4. org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
      4 frames
    10. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:88)
      1 frame
    11. com.springsource.kernel
      KernelBundleClassLoader.loadClass
      1. com.springsource.kernel.osgi.framework.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:137)
      1 frame
    12. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
      2 frames
    13. Xerces2-j
      DocumentBuilderFactoryImpl.newDocumentBuilder
      1. org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:102)
      2. org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88)
      2 frames
    14. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDocumentBuilder(XmlBeanDefinitionReader.java:268)
      2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:221)
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
      5. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
      6. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
      6 frames
    15. Spring
      XmlWebApplicationContext.loadBeanDefinitions
      1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126)
      2. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
      2 frames
    16. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
      2 frames
    17. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
      2. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
      3. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
      4. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
      4 frames
    18. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      5 frames
    19. com.springsource.osgi
      StandardWebContainer$StandardWebApplication.start
      1. com.springsource.osgi.webcontainer.tomcat.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:102)
      2. com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102)
      2 frames
    20. com.springsource.server
      WebBundlePersonality.onStarted
      1. com.springsource.server.web.core.internal.WebBundlePersonality.onStarted(WebBundlePersonality.java:84)
      1 frame
    21. com.springsource.kernel
      ExecutorServiceDelegate$KernelRunnable.run
      1. com.springsource.kernel.deployer.core.module.AbstractModule.onStarted(AbstractModule.java:218)
      2. com.springsource.kernel.deployer.core.module.StandardModule.onStarted(StandardModule.java:654)
      3. com.springsource.kernel.deployer.core.module.DeployerBundleListener$2$1.run(DeployerBundleListener.java:148)
      4. com.springsource.kernel.concurrent.ExecutorServiceDelegate$KernelRunnable.run(ExecutorServiceDelegate.java:121)
      4 frames
    22. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      3. java.lang.Thread.run(Thread.java:637)
      3 frames