[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即可。
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
- ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
- ¥20 软件测试决策法疑问求解答
- ¥15 win11 23H2删除推荐的项目,支持注册表等
- ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
- ¥15 qt6.6.3 基于百度云的语音识别 不会改
- ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
- ¥15 神经网络怎么把隐含层变量融合到损失函数中?
- ¥15 lingo18勾选global solver求解使用的算法
- ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行