[2021-06-10 17:20:42] [SEVERE] [deployment] [FAIL ... gsww: Missing required persistence.xml for @PersistenceContext ref "em" to unit ""]
[2021-06-10 17:20:42] [SEVERE] [deployment] [FAIL ... gsww: Missing required persistence.xml for @PersistenceContext ref "em" to unit ""]
[2021-06-10 17:20:42] [SEVERE] [deployment] [Invalid EjbModule(name=gsww, path=E:\software\TongWeb7.0\deployment\gsww)]
[2021-06-10 17:20:42] [SEVERE] [deployment] [FAIL ... gsww: Missing required persistence.xml for @PersistenceContext ref "em" to unit ""]
[2021-06-10 17:20:42] [SEVERE] [deployment] [FAIL ... gsww: Missing required persistence.xml for @PersistenceContext ref "em" to unit ""]
[2021-06-10 17:20:42] [SEVERE] [deployment] [Invalid WebModule(name=gsww, path=E:\software\TongWeb7.0\deployment\gsww)]
[2021-06-10 17:20:42] [INFO] [deployment] [Set the 'openejb.validation.output.level' system property to VERBOSE for increased validation details.]
[2021-06-10 17:20:42] [SEVERE] [deployment] [Unable to deploy collapsed ear in war StandardEngine[TONGWEB].StandardHost[server].StandardContext[gsww]]
com.tongweb.tongejb.config.ValidationFailedException: Module failed validation. AppModule(name=gsww)
at com.tongweb.tongejb.config.ReportValidationResults.deploy(ReportValidationResults.java:88)
at com.tongweb.tongejb.config.AppInfoBuilder.build(AppInfoBuilder.java:321)
at com.tongweb.tongejb.config.ThanosAppInfoBuilder.build(ThanosAppInfoBuilder.java:61)
at com.tongweb.tongejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1048)
at com.tongweb.tw.thanos.ThanosWebtierWebAppBuilder.startInternal(ThanosWebtierWebAppBuilder.java:1065)
at com.tongweb.tomee.catalina.WebtierWebAppBuilder.configureStart(WebtierWebAppBuilder.java:1122)
at com.tongweb.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
at com.tongweb.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)

Missing required persistence.xml
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- 萝卜白菜。 2021-06-11 23:31关注
这是因为TongWeb自身的JPA影响到了应用自带的JPA。
TongWeb7的解决办法是将bin/external.vmoptions中的-DWebModuleOnly改为true即可。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报