2

我正在做一个项目,到目前为止它进展顺利,直到我检查了另一个团队的最新更改,以处理最新的文件(不要专注于那个)。我正在使用 Tomcat OpenEJB 3.1、JPA 和 Hibernate 3.2.6。问题是什么,在部署应用程序后它卡住了:

2010-10-27 12:31:45,202 - INFO  - Adjusting PersistenceUnit RateQuesto-core <non-jta-data-source> to Resource ID 'jdbc/net.barano.rav.usage.DBNonJta' from 'null'
2010-10-27 12:31:45,202 - INFO  - Configuring PersistenceUnit(name=security_core, provider=org.hibernate.ejb.HibernatePersistence)
2010-10-27 12:31:45,202 - INFO  - Adjusting PersistenceUnit security_core <non-jta-data-source> to Resource ID 'jdbc/net.barano.rav.usage.DBNonJta' from 'null'
2010-10-27 12:31:45,233 - ERROR - FAIL ... Rikko.net.barano.rav.c_service.foo.KeyQuesto:    @PersistenceContext unitName has multiple matches: unitName "Rikko" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - FAIL ... Rikko.net.barano.rav.c_service.foo.CommonFooQuesto:  @PersistenceContext unitName has multiple matches: unitName "Rikko" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - FAIL ... Rikko.net.barano.rav.c_service.foo.internal.CommonFooQueries:    @PersistenceContext unitName has multiple matches: unitName "Rikko" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - FAIL ... Rikko.net.barano.rav.c_service.foo.internal.KeyNameQueries:  @PersistenceContext unitName has multiple matches: unitName "Rikko" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - FAIL ... Rikko.net.barano.rav.c_service.foo.internal.InternalAttach:  @PersistenceContext unitName has multiple matches: unitName "Rikko" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - Invalid EjbModule(path=D:\PR_dev\workspaces v3.2.1\usage 5.4\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\rav-usage-admin\WEB-INF\lib\rav-cc-Rikkos-core-5.3.003.jar)
2010-10-27 12:31:45,233 - ERROR - FAIL ... security_core.net.barano.rav.c_service.security.authentication.LogonQuesto:  @PersistenceContext unitName has multiple matches: unitName "security_core" has 16 possible matches.
2010-10-27 12:31:45,233 - ERROR - Invalid EjbModule(path=D:\PR_dev\workspaces v3.2.1\usage 5.4\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\rav-usage-admin\WEB-INF\lib\rav-cc-security-core-5.3.003.jar)
2010-10-27 12:31:45,233 - ERROR - FAIL ... TuruHierarchyQuestoBLBenno:  @PersistenceContext unitName has multiple matches: unitName "rav-usage-core" has 16 possible matches.

我已经仔细检查了所有基本设置,没有任何更改。有没有人遇到过这种问题?

我将不胜感激在这个话题上的任何支持。

谢谢

4

1 回答 1

2

我猜你persistence.xml的类路径上有 16 次。清理多余的。

于 2010-10-27T11:25:18.557 回答