Hi,

The only thing I changed was the removing the location of the persistence.xml 
file from the james-server-context.xml. Because the persistence.xml is located 
in META-INF that isn't necessary. I changed nothing else and now I get 
TransactionManager stack trace.

Best regards,

Tijs



Op 22 jul. 2011 om 19:52 heeft Norman Maurer <[email protected]> het 
volgende geschreven:

> could you show me what you did to "fix" it ?
> 
> bye
> norman
> 
> Am Freitag, 22. Juli 2011 schrieb Tijs Rademakers <[email protected]>:
>> Hi,
>> 
>> I've been playing with James 3.0 beta 2 a month ago and I submitted a patch 
>> to get the WAR deployment working.
>> After that patch was committed it was working fine.
>> Now I've updated to the latest code and I noticed some reshuffling of 
>> projects etc.
>> I found the app project that seems to be the central project that creates 
>> the installation files.
>> When I deploy the WAR file on Tomcat 6.0.32 I first get an error message 
>> about the persistence.xml that could not be found (but that could easily be 
>> solved).
>> Now I get a more serious error, that I don't have an idea to find a solution 
>> for.
>> I kept all the defaults, and the command line version (started with run.sh) 
>> works fine. Only the WAR version gives problems.
>> Hope you can help me with this.
>> 
>> Thanks,
>> 
>> Tijs
>> 
>> INFO  19:28:13,897 | james.mailrepositorystore | JamesMailStore init...
>> INFO  19:28:13,901 | james.mailrepositorystore | Registering Repository 
>> instance of class org.apache.james.mailrepository.file.FileMailRepository to 
>> handle file protocol requests for repositories with key file
>> INFO  19:28:13,902 | james.mailrepositorystore | Registering Repository 
>> instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to 
>> handle db protocol requests for repositories with key db
>> INFO  19:28:13,902 | james.mailrepositorystore | Registering Repository 
>> instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository to 
>> handle dbfile protocol requests for repositories with key dbfile
>> INFO  19:28:13,902 | james.mailrepositorystore | Registering Repository 
>> instance of class org.apache.james.mailrepository.file.MBoxMailRepository to 
>> handle mbox protocol requests for repositories with key mbox
>> INFO  19:28:14,284 | james.dnsservice | Autodiscovery is enabled - trying to 
>> discover your system's DNS Servers
>> INFO  19:28:14,289 | james.dnsservice | Adding autodiscovered server 
>> 192.168.0.1
>> INFO  19:28:14,290 | james.dnsservice | Adding autodiscovered search path 
>> arnhem.chello.nl.
>> INFO  19:28:14,290 | james.dnsservice | DNS Server is: 192.168.0.1
>> INFO  19:28:14,297 | james.dnsservice | Registered cache, resolver and 
>> search paths as DNSJava defaults
>> 17  James  WARN   [main] openjpa.Runtime - An error occurred while 
>> registering a ClassTransformer with PersistenceUnitInfo: name 'James', root 
>> URL 
>> [file:/Users/trademakers/Documents/apache-tomcat-6.0.32/webapps/apache-james-3.0-beta4-SNAPSHOT/WEB-INF/lib/james-server-jpa-3.0-beta4-20110722.100123-11.jar].
>>  The error has been consumed. To see it, set your openjpa.Runtime log level 
>> to TRACE. Load-time class transformation will not be available.
>> INFO  19:28:14,534 | james.domainlist | Set autodetect to: true
>> INFO  19:28:14,535 | james.domainlist | Set autodetectIP to: true
>> 42  James  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.1.0
>> 74  James  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class 
>> "org.apache.openjpa.jdbc.sql.DerbyDictionary".
>> ERROR 19:28:16,248 | org.springframework.web.context.ContextLoader | Context 
>> initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'mailprocessor': Injection of resource dependencies failed; nested 
>> exception is org.springframework.beans.factory.BeanCreationException: Error 
>> creating bean with name 'mailetcontext': Injection of resource dependencies 
>> failed; nested exception is 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'usersrepository': Injection of resource dependencies failed; 
>> nested exception is org.springframework.beans.factory.BeanCreationException: 
>> Error creating bean with name 'domainlist': Invocation of init method 
>> failed; nested exception is <openjpa-2.1.0-r422266:1071316 fatal user error> 
>> org.apache.openjpa.persistence.InvalidStateException: Could not perform 
>> automatic lookup of EJB container's javax.transaction.TransactionManager 
>> implementation. Please ensure that you are running the application from 
>> within an EJB 1.1 compliant EJB container, and then set the 
>> org.apache.openjpa.ManagedRuntime property to the appropriate value to 
>> obtain the TransactionManager.
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)
>>        at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
>>        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:291)
>>        at 
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>>        at 
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
>>        at 
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>>        at 
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>>        at 
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
>>        at 
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
>>        at 
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
>>        at 
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
>>        at 
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
>>        at 
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
>>        at 
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>        at 
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>        at 
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
>>        at 
>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
>>        at 
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
>>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
>>        at 
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
>>        at 
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
>>        at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
>>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
>>        at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>        at 
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
>>        at 
>> org.apache.catalina.core.StandardService.start(StandardService.java:525)
>>        at 
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
>>        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
>>        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:597)
>>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
>> creating bean with name 'mailetcontext': Injection of resource dependencies 
>> failed; nested exception is 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'usersrepository': Injection of resource dependencies failed; 
>> nested exception is org.springframework.beans.factory.BeanCreationException: 
>> Error creating bean with name 'domainlist': Invocation of init method 
>> failed; nested exception is <openjpa-2.1.0-r422266:1071316 fatal user error> 
>> org.apache.openjpa.persistence.InvalidStateException: Could not perform 
>> automatic lookup of EJB container's javax.transaction.TransactionManager 
>> implementation. Please ensure that you are running the application from 
>> within an EJB 1.1 compliant EJB container, and then set the 
>> org.apache.openjpa.ManagedRuntime property to the appropriate value to 
>> obtain the TransactionManager.
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)
>>        at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
>>        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:291)
>>        at 
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)
>>        ... 37 more
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
>> creating bean with name 'usersrepository': Injection of resource 
>> dependencies failed; nested exception is 
>> org.springframework.beans.factory.BeanCreationException: Error creating bean 
>> with name 'domainlist': Invocation of init method failed; nested exception 
>> is <openjpa-2.1.0-r422266:1071316 fatal user error> 
>> org.apache.openjpa.persistence.InvalidStateException: Could not perform 
>> automatic lookup of EJB container's javax.transaction.TransactionManager 
>> implementation. Please ensure that you are running the application from 
>> within an EJB 1.1 compliant EJB container, and then set the 
>> org.apache.openjpa.ManagedRuntime property to the appropriate value to 
>> obtain the TransactionManager.
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)
>>        at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
>>        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:291)
>>        at 
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)
>>        ... 50 more
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
>> creating bean with name 'domainlist': Invocation of init method failed; 
>> nested exception is <openjpa-2.1.0-r422266:1071316 fatal user error> 
>> org.apache.openjpa.persistence.InvalidStateException: Could not perform 
>> automatic lookup of EJB container's javax.transaction.TransactionManager 
>> implementation. Please ensure that you are running the application from 
>> within an EJB 1.1 compliant EJB container, and then set the 
>> org.apache.openjpa.ManagedRuntime property to the appropriate value to 
>> obtain the TransactionManager.
>>        at 
>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
>>        at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
>>        at 
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
>>        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:291)
>>        at 
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>        at 
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:156)
>>        at 
>> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>>        at 
>> org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)
>>        ... 63 more
>> Caused by: <openjpa-2.1.0-r422266:1071316 fatal user error> 
>> org.apache.openjpa.persistence.InvalidStateException: Could not perform 
>> automatic lookup of EJB container's javax.transaction.TransactionManager 
>> implementation. Please ensure that you are running the application from 
>> within an EJB 1.1 compliant EJB container, and then set the 
>> org.apache.openjpa.ManagedRuntime property to the appropriate value to 
>> obtain the TransactionManager.
>>        at 
>> org.apache.openjpa.ee.AutomaticManagedRuntime.getTransactionManager(AutomaticManagedRuntime.java:253)
>>        at 
>> org.apache.openjpa.kernel.AbstractBrokerFactory.syncWithManagedTransaction(AbstractBrokerFactory.java:717)
>>        at 
>> org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:388)
>>        at 
>> org.apache.openjpa.kernel.BrokerImpl.initialize(BrokerImpl.java:323)
>>        at 
>> org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:229)
>>        at 
>> org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:213)
>>        at 
>> org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
>>        at 
>> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
>>        at 
>> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
>>        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:597)
>>        at 
>> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.invokeProxyMethod(AbstractEntityManagerFactoryBean.java:423)
>>        at 
>> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:485)
>>        at $Proxy33.createEntityManager(Unknown Source)
>>        at 
>> org.apache.james.domainlist.jpa.JPADomainList.createEntityManager(JPADomainList.java:178)
>>        at 
>> org.apache.james.domainlist.jpa.JPADomainList.init(JPADomainList.java:61)
>>        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:597)
>>        at 
>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
>>        at 
>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)
>>        at 
>> org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)
>>        ... 77 more
>> Caused by: javax.naming.NameNotFoundException: Name 
>> TransactionSynchronizationRegistry is not bound in this Context
>>        at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
>>        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
>>        at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
>>        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
>>        at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
>>        at javax.naming.InitialContext.lookup(InitialContext.java:392)
>>        at 
>> org.apache.openjpa.ee.RegistryManagedRuntime.getTransactionManager(RegistryManagedRuntime.java:61)
>>        at 
>> org.apache.openjpa.ee.AutomaticManagedRuntime.getTransactionManager(AutomaticManagedRuntime.java:171)
>>        ... 101 more
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to