15:50:49,046 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=test3.jar,name=AdminBean,service=EJB3 with dependencies:
15:50:49,046 INFO [JmxKernelAbstraction] persistence.units:jar=test3.jar,unitName=DefaultDS
15:50:49,046 INFO [EJB3Deployer] Deployed: file:/D:/jboss-4.0.5.GA/server/all/deploy/test3.jar
15:50:49,046 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=test3.jar,unitName=DefaultDS
State: FAILED
Reason: java.lang.RuntimeException: You have not defined a jta-data-source for a JTA enabled persistence context named: DefaultDS
Depends On Me:
jboss.j2ee:jar=test3.jar,name=AdminBean,service=EJB3
ObjectName: jboss.j2ee:jar=test3.jar,name=AdminBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=test3.jar,unitName=DefaultDS
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:jar=test3.jar,unitName=DefaultDS
State: FAILED
Reason: java.lang.RuntimeException: You have not defined a jta-data-source for a JTA enabled persistence context named: DefaultDS
Depends On Me:
jboss.j2ee:jar=test3.jar,name=AdminBean,service=EJB3
------解决方案--------------------
提示我的主要错误是:You have not defined a jta-data-source for a JTA enabled persistence context named: DefaultDS
但是我已经定义了。。。啊。。
如果没有persistence.xml文件时,即不用entitybean时没问题,
加上了这个文件与数据源打交道时就出错了/。。。
哪位高手帮帮忙看看 了。。