gpt4 book ai didi

java - JPA/hibernate : @PersistenceContext unitName has multiple matches error

转载 作者:行者123 更新时间:2023-11-30 09:53:03 24 4
gpt4 key购买 nike

我正在做一个项目,到目前为止进展顺利,直到我检查了另一个团队的最新更改,以处理最新的文件(不要专注于那个文件)。我正在使用 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.

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

我将感谢对此主题的任何支持。

谢谢

最佳答案

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

关于java - JPA/hibernate : @PersistenceContext unitName has multiple matches error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4032664/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com