在URL中创建名称为'BitronixTransactionManager'的bean时出错

时间:2018-07-04 08:44:23

标签: spring tomcat8

我在单个OS(windows)中创建了两个tomcat实例。当我运行第二个实例时,我遇到了以下错误。

2018-07-04 13:11:22,859 ERROR [localhost-startStop-1] o.s.w.c.ContextLoader [ContextLoader.java:331] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BitronixTransactionManager' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208/webapps/mfsmiddleware/WEB-INF/lib/a.b.c.d.e-0.1-SNAPSHOT.jar!/META-INF/spring/jbpm-a-b.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [bitronix.tm.BitronixTransactionManager]: Factory method 'getTransactionManager' threw exception; nested exception is bitronix.tm.utils.InitializationException: cannot open disk journal
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]

Caused by: bitronix.tm.utils.InitializationException: cannot open disk journal

Caused by: java.io.IOException: The process cannot access the file because another process has locked a portion of the file

0 个答案:

没有答案