萝卜白菜。 2021-06-11 23:30 采纳率: 100%
浏览 104
已结题

Missing required persistence.xml

[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)

  • 写回答

1条回答 默认 最新

  • 萝卜白菜。 2021-06-11 23:31
    关注

    这是因为TongWeb自身的JPA影响到了应用自带的JPA。 

     TongWeb7的解决办法是将bin/external.vmoptions中的-DWebModuleOnly改为true即可。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月16日

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置