jboss3.2.1 mysql4.0.17 测试问题

03-12-24 xuanjianfeng
在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的时候出现上面的错误。

多谢指教。

xuanjianfeng
2003-12-25 16:46
由于选用的jdbc不支持transaction,更改为mm.mysql-2.0.4-bin.jar后,测试ok。

猜你喜欢