请教:关于cmp的问题。

02-12-10 xnmy

我在weblogic6.1上部署了cmp2.0,数据库是mysql.我用的数据源是:datasorce,运行成功了。可是我在weblogic7.0上运行可是它让我必须用txdatasorce.我改为txdatasorce后,报如下错误:

Exception:weblogic.management.ApplicationException: activate failed fortest

Module: test Error: Exception activating module: EJBModule(test,status=PREPARED)

Unable to deploy EJB: Usertbl from test.jar:

weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Table: usertbl Full Table Check failed, but table all columns were found! ]

at weblogic.ejb20.utils.TableVerifier.verifyTableAndColumnsExist(TableVerifier.java:384)

at weblogic.ejb20.utils.TableVerifier.verifyTableExistsAndCreateMaybe(TableVerifier.java:404)

at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RDBMSPersistenceManager.java:1019)

at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:141)

at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:214)

at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:186)

at weblogic.ejb20.manager.DBManager.setup(DBManager.java:161)

at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:936)

at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1302)

at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:342)

at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:1534)

at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:991)

at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:978)

at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1104)

at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:724)

xnmy
2002-12-10 16:50

我想问一下:data sources 和 txdata sources有什么不同?在weblogic7.0上必须用txdata sources吗?

wys1978
2002-12-10 18:25

tx是分布式的datasource,不一定要用tx的