我是TomEE的新手。我正在尝试从JBoss 4.2.3 GA迁移到TomEE PLus 1.7.1。我使用EJB 2.0规范开发了所有EJB。所有EJB都是Statekess会话bean。我有一些EJB作为BMT并且工作正常。但CMT EJB根本不起作用。
tomee.xml
<Resource id="TPDDS" type="DataSource">
JdbcDriver=com.jnetdirect.jsql.JSQLDriver
JdbcUrl=jdbc:JSQLConnect://dbamigratedb/database=shoppingcart/ssl=mandatory
UserName=prao
Password=pass
jtaManaged=true
validationQuery=select 1 from account
maxWaitTime=30000
maxActive=100
testOnBorrow=true
</Resource>
<TransactionManager id="myTransactionManager" type="TransactionManager">
adler32Checksum = true
bufferSizeKb = 32
checksumEnabled = true
defaultTransactionTimeout = 10 minutes
flushSleepTime = 50 Milliseconds
logFileDir = txlog
logFileExt = log
logFileName = howl
maxBlocksPerFile = -1
maxBuffers = 0
maxLogFiles = 2
minBuffers = 4
threadsWaitingForceThreshold = -1
txRecovery = false
</TransactionManager>
我得到的例外是:
Jul 29, 2015 11:50:59 AM org.apache.openejb.assembler.classic.Assembler destroyResource
INFO: Closing DataSource: TPDDS
Jul 29, 2015 11:50:59 AM org.apache.openejb.core.transaction.EjbTransactionUtil handleSystemException
SEVERE: EjbTransactionUtil.handleSystemException: zip file closed
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415)
at java.util.zip.ZipFile.getEntry(ZipFile.java:160)
at java.util.jar.JarFile.getEntry(JarFile.java:208)
at java.util.jar.JarFile.getJarEntry(JarFile.java:191)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:757)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.apache.openejb.util.classloader.URLClassLoaderFirst.loadInternal(URLClassLoaderFirst.java:177)
at org.apache.openejb.util.classloader.URLClassLoaderFirst.loadClass(URLClassLoaderFirst.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.log4j.spi.LoggingEvent.<init(LoggingEvent.java:159)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:826)
感谢任何帮助。感谢。