部署耳朵时,EntityManagerFactory 在 Weblogic 中关闭

EntityManagerFactory is closed in Weblogic while deploying an ear

我有两个单独的 ear 文件,它们使用在 persistence.xml 中定义的相同持久性单元。在 Weblogic 12.2.1.3 中部署第二个 ear 文件时出现以下错误:

weblogic.application.ModuleException: java.lang.IllegalStateException: Attempting to execute an operation on a closed EntityManagerFactory. at weblogic.application.internal.ExtensibleModuleWrapper.activate(ExtensibleModuleWrapper.java:123) at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:114) at weblogic.application.internal.flow.ModuleStateDriver.next(ModuleStateDriver.java:212) at weblogic.application.internal.flow.ModuleStateDriver.next(ModuleStateDriver.java:207) at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83) at weblogic.work.ContextWrap.run(ContextWrap.java:46) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670) at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352) at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337) at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57) at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41) at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415) at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)

我在 Weblogic 中找不到有关 EntityManagerFactory 生命周期的任何信息。为什么 EntityManagerFactory 可能会从 weblogic 中关闭。任何人都可以提供有关该问题的提示或 link 我可以在其中找到更多信息的提示。

ear 文件包含使用 JPA、JTA 和 eclipse link 2.5.2 作为 JPA 引擎的标准 JEE7 SOAP Web 服务。

这是 weblogic 错误。 请参阅有关 Oracle 支持的文档 ID 2502618.1。

Oracle 支持建议的解决方案:

作为解决方案应用补丁 29154575 作为解决方法: 禁用并行部署应用程序模块功能。禁用此功能将确保按顺序激活应用程序的各个模块,避免竞争条件。

Oracle 支持指出这是一个将在 12.2.1.4 中修复的错误。在此之前,补丁 29154575 仅在 Weblogic 版本为 12.2.1.2.0 时才有价值。 作为解决方法,您可以在 Weblogic 的 config.xml 文件中禁用并行部署应用程序模块功能。