Announcement Announcement Module
Collapse
No announcement yet.
org.springframework.web.context.ContextLoader - Context initialization faild Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.springframework.web.context.ContextLoader - Context initialization faild

    hello ;
    i create a webApp project with SpringROO 1.2 and i use the DATANUCLEUS provider but when i run it into the server it generate this ERROR :
    PHP Code:
    2012-03-01 11:04:01,646 [Thread-10ERROR org.springframework.web.context.ContextLoader Context initialization failed
    org
    .springframework.beans.factory.BeanCreationExceptionError creating bean with name 'transactionManager' defined in file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\pro\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'nested exception is org.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\pro\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Invocation of init method failednested exception is java.lang.NoClassDefFoundErrorjavax/jdo/PersistenceManagerFactory
        at org
    .springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
        
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
        
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
        
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
        
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
        
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
        
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        
    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:662)
    Caused byorg.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\pro\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Invocation of init method failednested exception is java.lang.NoClassDefFoundErrorjavax/jdo/PersistenceManagerFactory
        at org
    .springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 
    23 more
    Caused by
    java.lang.NoClassDefFoundErrorjavax/jdo/PersistenceManagerFactory
        at org
    .datanucleus.jpa.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:59)
        
    at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:257)
        
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
        ... 
    30 more
    Caused by
    java.lang.ClassNotFoundExceptionjavax.jdo.PersistenceManagerFactory
        at org
    .apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
        
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
        ... 
    35 more
    1 mars 2012 11
    :04:01 org.apache.catalina.core.StandardContext listenerStart
    GRAVE
    Exception lors de l'envoi de l'évènement contexte initialisé (context initializedà l'instance de classe d'écoute (listenerorg.springframework.web.context.ContextLoaderListener
    org
    .springframework.beans.factory.BeanCreationExceptionError creating bean with name 'transactionManager' defined in file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\pro\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'nested exception is org.springframework.beans.factory.BeanCreationExceptionError creating bean with name 'entityManagerFactory' defined in file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\pro\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Invocation of init method failednested exception is java.lang.NoClassDefFoundErrorjavax/jdo/PersistenceManagerFactory
        at org
    .springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
        
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
        
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
        
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
        
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
        
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
        
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
        
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        
    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:662

    So any one can help me please;

  • #2
    Exception itself suggest "
    nested exception is java.lang.NoClassDefFoundError: javax/jdo/PersistenceManagerFactory " PersistenceManagerFactory
    is not available. plz make sure u added jdo jar.

    Comment

    Working...
    X