当前位置: 技术问答>java相关
CMP在jbuilder+weblogic中部署出錯?
来源: 互联网 发布时间:2017-04-27
本文导语: 信息如下: D:downloadJBuilder7jdk1.3.1binjavaw -classpath C:beaweblogic700serverlibweblogic.jar;C:beaweblogic700serverlibweblogic_sp.jar; weblogic.Deployer -adminurl http://Steven:7001 -user system -password zhouyiqing -activate -name demo2 -upload -so...
信息如下:
D:downloadJBuilder7jdk1.3.1binjavaw -classpath C:beaweblogic700serverlibweblogic.jar;C:beaweblogic700serverlibweblogic_sp.jar; weblogic.Deployer -adminurl http://Steven:7001 -user system -password zhouyiqing -activate -name demo2 -upload -source D:/temp/demo2/demo2/demo2.jar
Operation started, waiting for notifications...
...
#TaskID Action Status Target Type Application Source
1 Activate Failed myserver Server demo2 C:beauser_projectsmydomain.myserveruploaddemo2demo2.jar
Exception:weblogic.management.ApplicationException: activate failed fordemo2
Module: demo2 Error: Exception activating module: EJBModule(demo2,status=PREPARED)
Unable to deploy EJB: Aa from demo2.jar:
weblogic.ejb20.WLDeploymentException: Incorrect DataSource type detected. The DataSource with JNDI name 'DataSource', specified in the RDBMS deployment descriptor for the EJB 'Aa', is not a TXDataSource. The EJB Container requires a TXDataSource to be specified for transactions to be managed correctly.
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(RDBMSPersistenceManager.java:977)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:134)
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)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
D:downloadJBuilder7jdk1.3.1binjavaw -classpath C:beaweblogic700serverlibweblogic.jar;C:beaweblogic700serverlibweblogic_sp.jar; weblogic.Deployer -adminurl http://Steven:7001 -user system -password zhouyiqing -activate -name demo2 -upload -source D:/temp/demo2/demo2/demo2.jar
Operation started, waiting for notifications...
...
#TaskID Action Status Target Type Application Source
1 Activate Failed myserver Server demo2 C:beauser_projectsmydomain.myserveruploaddemo2demo2.jar
Exception:weblogic.management.ApplicationException: activate failed fordemo2
Module: demo2 Error: Exception activating module: EJBModule(demo2,status=PREPARED)
Unable to deploy EJB: Aa from demo2.jar:
weblogic.ejb20.WLDeploymentException: Incorrect DataSource type detected. The DataSource with JNDI name 'DataSource', specified in the RDBMS deployment descriptor for the EJB 'Aa', is not a TXDataSource. The EJB Container requires a TXDataSource to be specified for transactions to be managed correctly.
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(RDBMSPersistenceManager.java:977)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:134)
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)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
|
你进入weblogic控制台,把里面已经deploy的程序全部删除了,在重新deploy,这样应该就没问题了。
|
仔细查看你的连接池和数据源的配置,看是否有书写上的错误。
然后删除以前的Deploy,重新发布一次试一试。
然后删除以前的Deploy,重新发布一次试一试。