Hello, I am trying to build a run James from the trunk. I got this error after I manage to build James:
WARN 01:11:52,461 | org.springframework.beans.factory.support.DisposableBeanAdapter | Invocation of destroy method failed on bean with name 'entityManagerFactory': <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation failed for some instances. See the nested exceptions array for details. Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mailprocessor' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]: Unsatisfied dependency expressed through bean property 'mailetContext': : Error creating bean with name 'mailetcontext' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active.; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailetcontext' defined in class path resource [META-INF/spring/mailetcontainer-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beanmailetcontext; nested exception is <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: This operation cannot be performed while a Transaction is active. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1199) Also noticed a few things when building james: - the app/target/appassembler/bin/*.sh files do not have execute permission by default - run.sh is in a nested directory. Are there any steps I need to take after building using maven and before starting up James? Full details of the error message at https://issues.apache.org/jira/browse/JAMES-1522 Best regards, Hanxue