Did some one else encountered the same problem as mine when following the tutorial http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html ?
2008/1/4, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]>: > Do you mean it can come from a bad classpath..? Or maybe should I > specify somewhere that the spring framework is used for the > persistence... But I don't know where. > > I thought that the setting "struts.objectFactory" to "spring" in > struts.xml would be enough. > > 2008/1/4, Musachy Barroso <[EMAIL PROTECTED]>: > > well, somehow the file is not getting there at runtime I guess, this > > is from your stacktrace: > > > > "java.lang.IllegalStateException: No persistence units parsed from > > {classpath*:META-INF/persistence.xml}" > > > > musachy > > > > On Jan 4, 2008 11:35 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote: > > > That's exactly what I have. I've followed all the instructions in the > > > tuto. > > > > > > > > > 2008/1/4, Musachy Barroso <[EMAIL PROTECTED]>: > > > > Indeed. But the file needs to be there, even if it is empty, which I > > > > found quite annoying (at least I don't know how to avoid having the > > > > file there), like: > > > > > > > > <persistence xmlns="http://java.sun.com/xml/ns/persistence" > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > > > > http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" > > > > version="1.0"> > > > > <persistence-unit name="punit"> > > > > </persistence-unit> > > > > </persistence> > > > > > > > > musachy > > > > > > > > On Jan 4, 2008 11:26 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> wrote: > > > > > In fact in the tutorial > > > > > (http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html > > > > > ) they say that there no need to specify the JPA configuration in this > > > > > file because the datasource will be on spring configuration file. > > > > > > > > > > 2008/1/4, Musachy Barroso <[EMAIL PROTECTED]>: > > > > > > > > > > > Spring couldn't find META-INF/persistence.xml > > > > > > > > > > > > musachy > > > > > > > > > > > > On Jan 4, 2008 11:12 AM, Pascal SEREMES-DAMAL <[EMAIL PROTECTED]> > > > > > > wrote: > > > > > > > Hello everyone!!! > > > > > > > > > > > > > > I hope you had fun during the end of year 2007 and I wish you a > > > > > > > happy new year. > > > > > > > > > > > > > > I tried the Struts 2 + Spring 2 + JPA + AJAX tutorial that is on > > > > > > > the > > > > > > > struts page and when I deployed it on my server I had the > > > > > > > following > > > > > > > exceptions. > > > > > > > > > > > > > > GRAVE: Context initialization failed > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name > > > > > > > 'org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor' > > > > > > > defined in ServletContext resource > > > > > > > [/WEB-INF/applicationContext.xml]: > > > > > > > Initialization of bean failed; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name > > > > > > > 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': > > > > > > > Cannot create inner bean '(inner bean)' of type > > > > > > > [org.springframework.transaction.interceptor.TransactionInterceptor] > > > > > > > while setting bean property 'transactionInterceptor'; nested > > > > > > > exception > > > > > > > is org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name '(inner bean)': Cannot resolve reference > > > > > > > to > > > > > > > bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name > > > > > > > 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': > > > > > > > Cannot create inner bean '(inner bean)' of type > > > > > > > [org.springframework.transaction.interceptor.TransactionInterceptor] > > > > > > > while setting bean property 'transactionInterceptor'; nested > > > > > > > exception > > > > > > > is org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name '(inner bean)': Cannot resolve reference > > > > > > > to > > > > > > > bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name '(inner bean)': Cannot resolve > > > > > > > reference > > > > > > > to bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name 'transactionManager' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot > > > > > > > resolve reference to bean 'entityManagerFactory' while setting > > > > > > > bean > > > > > > > property 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: java.lang.IllegalStateException: No persistence units > > > > > > > parsed from {classpath*:META-INF/persistence.xml} > > > > > > > at > > > > > > > org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.obtainDefaultPersistenceUnitInfo(DefaultPersistenceUnitManager.java:335) > > > > > > > at > > > > > > > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.determinePersistenceUnitInfo(LocalContainerEntityManagerFactoryBean.java:241) > > > > > > > at > > > > > > > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:195) > > > > > > > at > > > > > > > org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:216) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:313) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1176) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:511) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) > > > > > > > at > > > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > > > > > > > at > > > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardService.start(StandardService.java:448) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > > > > > > > at > > > > > > > org.apache.catalina.startup.Catalina.start(Catalina.java:552) > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > > > > Method) > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown > > > > > > > Source) > > > > > > > at > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > > > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > > > > > at > > > > > > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > > > > > > > at > > > > > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > > > > > > 4 janv. 2008 16:39:15 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 (listener) > > > > > > > org.springframework.web.context.ContextLoaderListener > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name > > > > > > > 'org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor' > > > > > > > defined in ServletContext resource > > > > > > > [/WEB-INF/applicationContext.xml]: > > > > > > > Initialization of bean failed; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name > > > > > > > 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': > > > > > > > Cannot create inner bean '(inner bean)' of type > > > > > > > [org.springframework.transaction.interceptor.TransactionInterceptor] > > > > > > > while setting bean property 'transactionInterceptor'; nested > > > > > > > exception > > > > > > > is org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name '(inner bean)': Cannot resolve reference > > > > > > > to > > > > > > > bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name > > > > > > > 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': > > > > > > > Cannot create inner bean '(inner bean)' of type > > > > > > > [org.springframework.transaction.interceptor.TransactionInterceptor] > > > > > > > while setting bean property 'transactionInterceptor'; nested > > > > > > > exception > > > > > > > is org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name '(inner bean)': Cannot resolve reference > > > > > > > to > > > > > > > bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name '(inner bean)': Cannot resolve > > > > > > > reference > > > > > > > to bean 'transactionManager' while setting bean property > > > > > > > 'transactionManager'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'transactionManager' defined in > > > > > > > ServletContext > > > > > > > resource [/WEB-INF/applicationContext.xml]: Cannot resolve > > > > > > > reference > > > > > > > to bean 'entityManagerFactory' while setting bean property > > > > > > > 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name 'transactionManager' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot > > > > > > > resolve reference to bean 'entityManagerFactory' while setting > > > > > > > bean > > > > > > > property 'entityManagerFactory'; nested exception is > > > > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > > > > creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: > > > > > > > org.springframework.beans.factory.BeanCreationException: > > > > > > > Error creating bean with name 'entityManagerFactory' defined in > > > > > > > ServletContext resource [/WEB-INF/applicationContext.xml]: > > > > > > > Invocation > > > > > > > of init method failed; nested exception is > > > > > > > java.lang.IllegalStateException: No persistence units parsed from > > > > > > > {classpath*:META-INF/persistence.xml} > > > > > > > Caused by: java.lang.IllegalStateException: No persistence units > > > > > > > parsed from {classpath*:META-INF/persistence.xml} > > > > > > > at > > > > > > > org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.obtainDefaultPersistenceUnitInfo(DefaultPersistenceUnitManager.java:335) > > > > > > > at > > > > > > > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.determinePersistenceUnitInfo(LocalContainerEntityManagerFactoryBean.java:241) > > > > > > > at > > > > > > > org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:195) > > > > > > > at > > > > > > > org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:216) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66) > > > > > > > at > > > > > > > org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:313) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1176) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) > > > > > > > at > > > > > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:511) > > > > > > > at > > > > > > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188) > > > > > > > at > > > > > > > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) > > > > > > > at > > > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > > > > > > > at > > > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardService.start(StandardService.java:448) > > > > > > > at > > > > > > > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > > > > > > > at > > > > > > > org.apache.catalina.startup.Catalina.start(Catalina.java:552) > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > > > > > Method) > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown > > > > > > > Source) > > > > > > > at > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > > > > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > > > > > at > > > > > > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > > > > > > > at > > > > > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > > > > > > > > > > > > > My config : > > > > > > > - struts 2.0.11 > > > > > > > - spring 2.0.7 (it didn't work with 2.5 neither) > > > > > > > - hibernate 3.2.5 > > > > > > > - Eclipse Europa 3.3.1.1 > > > > > > > - JDK 1.5.0 > > > > > > > - Tomcat 5.5 > > > > > > > > > > > > > > Can anyone help me please? > > > > > > > > > > > > > > Thanks in advance. > > > > > > > > > > > > > > > > > > > > > Pascal > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]