在jboss上面部署了一个简单的entity bean,用applicant Client调用ejb时,出现下面的错误:org.jboss.resource.connectionmanager.JBossLocalXAException: Error trying to start local tx: ; - nested throwable: (org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (java.sql.SQLException: Cannot disable AUTO_COMMIT))
部署EJB时,entity bean要求的数据库已经创建了。
如下:
17:33:06,518 INFO [Phone] Table 'phone' already exists
17:33:06,618 INFO [Enterprise7] Table 'ENTERPRISE' already exists
17:33:06,618 INFO [EntityInstancePool] Starting
17:33:06,618 INFO [EntityInstancePool] Started
17:33:06,618 INFO [EntityContainer] Started
17:33:06,618 INFO [EjbModule] Started
17:33:06,618 INFO [EJBDeployer] Deployed: file:/D:/jboss321/server/all/deploy/EJBTest.jar
17:33:06,648 INFO [MainDeployer] Deployed package: file:/D:/jboss321/server/all/deploy/EJBTest.jar
但运行client的时候出现上面的错误。
多谢指教。