【问题标题】:Access Remote EJB in one Websphere profile from another WebSphere profile从另一个 WebSphere 配置文件访问一个 Websphere 配置文件中的远程 EJB
【发布时间】:2019-04-28 06:26:27
【问题描述】:

简而言之:我对无状态 bean 从一台 Websphere 服务器进行远程 JNDI 调用到另一台(同一台机器上不同 JVM 中的不同配置文件),但调用完成后,InitialContext 发生更改,我无法再访问我当地的豆子。

情况如下:
Websphere 服务器 Server1 有一个包含许多 bean 的复杂应用程序,还需要访问运行另一个应用程序的 Websphere Server2 上的无状态 bean (BeanX)。
我已经设法使用以下两种方法之一访问 Server2 上的 BeanX:

  1. 通过代码连接:

    private static Context;
    static {
      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, com.ibm.websphere.naming.WsnInitialContextFactory");
      env.put(Context.PROVIDER_URL, "iiop://localhost:9101");
      try {
        ctx = NamingManager.getInitialContext(env);
        mgr = (RemoteBeanXManager) PortableRemoteObject.narrow(ctx.lookup("BeanXManagerBean/remote"), RemoteBeanXManager.class);
      } catch (NamingException e) {//logging
      }
    }
    
  2. 通过 Webshere 配置连接 在 Server1 中配置:Environment -> Naming -> Name Space binding -> New ... Indirect 并引入了所需的值,对应于Server2暴露的bean。
    提供者网址:corbaloc:iiop:localhost:9101
    初始上下文工厂名称:com.ibm.websphere.naming.WsnInitialContextFactory
    然后继续在代码中获取 bean,就好像它在我的本地上下文中一样。

我为 Server1 中的 Outbound 和 Server2 中的 Inbound 删除了 RMI/IIOP 的安全性,以便服务器可以通信。
bean 由 Server2 公开,远程接口 RemoteBeanXManager 存在于两个应用程序的公共包中,并且调用正确通过。

问题出现在调用之后,Server1 中的后续 EJB 注入为其 local bean 返回 com.ibm.ejs.container.util.ExceptionUtil.NoSuchEJBException

基本上,在下一次遇到@EJB注解时,Server1会抛出:

com.ibm.ejs.container.EJBNotFoundException:EJB 命名为 SomeOtherBean 不存在于应用程序我的企业应用程序中。在 com.ibm.ejs.container.HomeOfHomes.resolveEJBLink(HomeOfHomes.java:751)

我在调查时设法理解的是,Server1 上的 InitialContext 被与 Server2 的连接更改,并且在通过远程接口调用后无法“重置”回来。我尝试在获取远程管理器后使用默认设置重新获取InitialContext,但无济于事。
我尝试添加可选配置参数:
com.ibm.websphere.naming.jndicache.cachename providerURL
com.ibm.websphere.naming.jndicache.cacheobject none

还是一样的例外。

如果您对如何隔离/缓存 Server1 上的上下文以便在 RMI-IIOP 调用后恢复正常操作有任何想法,请告诉我

更新添加:
当我注释掉执行远程调用的代码时,应用程序正确启动,并且所有@EJB 注入工作。

Server2 中,在从 Server1 调用方法时 - 没有例外,只有这些消息:

    [11/27/18 9:28:13:525 EET] 00000139 BeanXManagerB I com.my.app.manager.impl.BeanXManagerBean performTaskForServer1 End     
    [11/27/18 9:28:13:883 EET] 00000139 RegisteredRes E   WTRN0064E: An illegal attempt to commit a one phase capable resource in a subordinate transaction branch has occurred.    
    [11/27/18 9:28:13:920 EET] 00000139 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile2\logs\ffdc\Server2_db3b4f88_18.11.27_09.28.13.8878526370681854823401.txt com.ibm.tx.jta.TransactionImpl.prepareResources 467    
    [11/27/18 9:28:13:932 EET] 00000139 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile2\logs\ffdc\Server2_db3b4f88_18.11.27_09.28.13.9214065828085434219239.txt com.ibm.tx.jta.impl.TransactionImpl.prepareResources 1505    

Server1 错误的完整堆栈跟踪是:
[我认为发布所有事件报告会太长。 ]

    [11/27/18 9:28:13:946 EET] 0000011a DMAdapter     I com.ibm.ws.ffdc.impl.DMAdapter getAnalysisEngine FFDC1009I: Analysis Engine using data base: D:\programs\IBM\WebSphere\AppServer\properties\logbr\ffdc\adv\ffdcdb.xml    
    [11/27/18 9:28:13:967 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.13.9411059231941807719848.txt com.ibm.tx.jta.impl.RegisteredResources.prepareResource 1216    
    [11/27/18 9:28:13:991 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.13.9683456920548561326798.txt com.ibm.tx.jta.TransactionImpl.prepareResources 467    
    [11/27/18 9:28:14:014 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.13.9913497264494769300154.txt com.ibm.tx.jta.impl.TransactionImpl.prepareResources 1505    
    [11/27/18 9:28:14:032 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.14.0285054752089388843670.txt com.ibm.ejs.csi.TranStrategy.commit 294    
    [11/27/18 9:28:14:039 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.14.036797394156202410033.txt com.ibm.ejs.container.EJSHome.createBeanO 1047    
    [11/27/18 9:28:14:044 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.14.0403016172875256112876.txt com.ibm.ejs.csi.EJBApplicationMetaData.createStartupBeans 6921    

    [11/27/18 9:28:14:044 EET] 0000011a EJBApplicatio E   CNTR0190E: The StarterBean startup singleton session bean in the app1.jar module failed initialization with exception:    
    javax.ejb.NoSuchEJBException: An error occurred during initialization of singleton session bean MY Enterprise Application#app1.jar#StarterBean, resulting in the discarding of the singleton instance.; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: javax.transaction.RollbackException    
        at com.ibm.ejs.container.util.ExceptionUtil.NoSuchEJBException(ExceptionUtil.java:540)    
        at com.ibm.ejs.container.EJSHome.createSingletonBeanO(EJSHome.java:3752)    
        at com.ibm.ejs.csi.EJBApplicationMetaData.createStartupBeans(EJBApplicationMetaData.java:959)    
        at com.ibm.ejs.csi.EJBApplicationMetaData.startedModule(EJBApplicationMetaData.java:680)    
        at com.ibm.ws.runtime.component.EJBContainerImpl.stateChanged(EJBContainerImpl.java:4525)    
        at com.ibm.ws.runtime.component.ApplicationMgrImpl$ComparableDeployedObjectListener.stateChanged(ApplicationMgrImpl.java:2652)    
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1178)    
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1558)    
        at com.ibm.ws.runtime.component.DeployedModuleImpl.setState(DeployedModuleImpl.java:252)    
        at com.ibm.ws.runtime.component.DeployedModuleImpl.setState(DeployedModuleImpl.java:248)    
        at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:707)    
        at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1150)    
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:800)    
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1450)        
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2311)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)    
        at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:654)    
        at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5574)    
        at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5700)    
        at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:668)    
        at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:612)    
        at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1340)    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)    
        at java.lang.reflect.Method.invoke(Method.java:508)    
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)    
        at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)    
        at java.lang.reflect.Method.invoke(Method.java:508)    
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)    
        at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263)    
        at java.security.AccessController.doPrivileged(AccessController.java:666)    
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)    
        at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257)    
        at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096)    
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)    
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)    
        at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350)    
        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)    
        at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243)    
        at com.ibm.ws.management.application.sync.StartDeploymentTask.startDeployment(StartDeploymentTask.java:249)    
        at com.ibm.ws.management.application.sync.StartDeploymentTask.fullAppUpdate(StartDeploymentTask.java:121)    
        at com.ibm.ws.management.application.sync.StartDeploymentTask.performTask(StartDeploymentTask.java:109)    
        at com.ibm.ws.management.application.sync.AppBinaryProcessor$ExpandApp.expand(AppBinaryProcessor.java:1770)    
        at com.ibm.ws.management.application.sync.AppBinaryProcessor.postProcessSynchronousExt(AppBinaryProcessor.java:811)    
        at com.ibm.ws.management.bla.sync.BLABinaryProcessor.postProcess(BLABinaryProcessor.java:599)    
        at com.ibm.ws.management.bla.sync.BLABinaryProcessor.onChangeCompletion(BLABinaryProcessor.java:476)    
        at com.ibm.ws.management.bla.sync.BinaryProcessorWrapper.onChangeCompletion(BinaryProcessorWrapper.java:109)    
        at com.ibm.ws.management.repository.FileRepository.postNotify(FileRepository.java:1938)    
        at com.ibm.ws.management.repository.FileRepository.update(FileRepository.java:1442)    
        at com.ibm.ws.management.repository.client.LocalConfigRepositoryClient.update(LocalConfigRepositoryClient.java:189)    
        at com.ibm.ws.sm.workspace.impl.WorkSpaceMasterRepositoryAdapter.update(WorkSpaceMasterRepositoryAdapter.java:667)    
        at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.update(RepositoryContextImpl.java:1998)    
        at com.ibm.ws.sm.workspace.impl.RepositoryContextImpl.synch(RepositoryContextImpl.java:1946)    
        at com.ibm.ws.sm.workspace.impl.WorkSpaceImpl.synch(WorkSpaceImpl.java:549)    
        at com.ibm.ws.console.core.action.SyncWorkSpaceAction$1.run(SyncWorkSpaceAction.java:284)    
        at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5574)    
        at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5700)    
        at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)    
        at com.ibm.ws.console.core.action.SyncWorkSpaceAction.execute(SyncWorkSpaceAction.java:288)    
        at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)    
        at org.apache.struts.action.RequestProcessor.process(Unknown Source)    
        at org.apache.struts.action.ActionServlet.process(Unknown Source)    
        at org.apache.struts.action.ActionServlet.doGet(Unknown Source)    
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)    
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)    
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)    
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)    
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)    
        at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)    
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)    
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)    
        at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:971)    
        at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:518)    
        at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:339)    
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)    
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)    
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)    
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)    
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4217)    
        at com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppImpl.java:2208)    
        at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)    
        at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1030)    
        at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)    
        at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)    
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)    
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)    
        at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)    
        at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)    
        at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)    
        at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)    
        at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)    
        at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)    
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)    
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)    
        at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)    
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)    
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)    
    Caused by: javax.ejb.EJBTransactionRolledbackException: nested exception is: javax.transaction.RollbackException    
        at com.ibm.ejs.container.BusinessExceptionMappingStrategy.mapCSIException(BusinessExceptionMappingStrategy.java:152)    
        at com.ibm.ejs.container.BusinessExceptionMappingStrategy.mapCSITransactionRolledBackException(BusinessExceptionMappingStrategy.java:613)    
        at com.ibm.ejs.container.EJSDeployedSupport.mapCSITransactionRolledBackException(EJSDeployedSupport.java:609)    
        at com.ibm.ejs.container.EJSContainer.postInvokeRolledbackException(EJSContainer.java:4392)    
        at com.ibm.ejs.container.EJSContainer.postInvokeForLifecycleInterceptors(EJSContainer.java:4584)    
        at com.ibm.ejs.container.SingletonBeanO.callTransactionalLifecycleInterceptors(SingletonBeanO.java:248)    
        at com.ibm.ejs.container.SingletonBeanO.initialize(SingletonBeanO.java:330)    
        at com.ibm.ejs.container.BeanOFactory.create(BeanOFactory.java:105)    
        at com.ibm.ejs.container.EJSHome.createSingletonBeanO(EJSHome.java:3738)    
        ... 101 more    
    Caused by: javax.transaction.RollbackException    
        at com.ibm.tx.jta.impl.TransactionImpl.stage3CommitProcessing(TransactionImpl.java:1279)    
        at com.ibm.tx.jta.impl.TransactionImpl.processCommit(TransactionImpl.java:1053)    
        at com.ibm.tx.jta.impl.TransactionImpl.commit(TransactionImpl.java:974)    
        at com.ibm.ws.tx.jta.TranManagerImpl.commit(TranManagerImpl.java:439)    
        at com.ibm.tx.jta.impl.TranManagerSet.commit(TranManagerSet.java:191)    
        at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:866)    
        at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:188)    
        at com.ibm.ejs.csi.RequiresNew.postInvoke(RequiresNew.java:118)    
        at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:482)    
        at com.ibm.ejs.container.EJSContainer.postInvokeForLifecycleInterceptors(EJSContainer.java:4576)    
        ... 105 more    
    [11/27/18 9:28:14:051 EET] 0000011a FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on D:\programs\IBM\WebSphere\AppServer\profiles\profile1\logs\ffdc\Server1_ede9c292_18.11.27_09.28.14.0481845564063299454983.txt com.ibm.ws.runtime.component.EJBContainerImpl.stateChanged 6637    

【问题讨论】:

    标签: websphere jndi rmi initial-context iiop


    【解决方案1】:

    HomeOfHomes.resolveEJBLink 通常用于本地解析的@EJB 注释;不使用InitialContext,也不执行JNDI 查找。处理@EJB 的代码完全跳过了JNDI,直接在EJB Container 中定位EJB。远程查找后发生故障的事实可能只是巧合。

    我建议查看@EJBbeanName 参数并验证beanName 确实与同一应用程序 中的bean 名称匹配。如果beanName 参数的格式为myModule.jar#SomeOtherBeanmyModule/SomeOtherBean,请确保模块名称也正确。名称 myModuleSomeOtherBean 必须与 同一应用程序SystemOut.log 中的 CNTR0167I 消息之一上的名称匹配。

    对于 WebSphere,基于 beanName 参数解析 EJB 仅适用于同一应用程序。如果@EJB 正在引用不同应用程序中的 EJB,即使该应用程序位于同一服务器进程上,您也必须提供一个绑定来标识所引用 EJB 的 JNDI 名称。绑定将在ibm-ejb-jar-bnd.xml/xmiibm-web-bnd.xml/xmi 文件之一中指定。也可以在应用程序部署期间提供绑定(部署会将其添加到适当的*bnd.xml 文件中)。

    如果beanName 参数确实看起来是正确的,并且正在为@EJB 注释进行JNDI 查找,那么您需要为查找的客户端和服务器端提供完整的异常堆栈,为了更好地了解@EJB 进程是如何被重定向到错误的服务器的。如果出现这种情况,那么EJBNotFoundException应该会出现在Server2的日志中,然后流回Server1,再次上报;因此需要来自 server1 和 server2 的异常堆栈来识别查找是如何被错误路由的。

    【讨论】:

    • 好吧,当我注释掉执行远程调用的代码时,应用程序部署顺利。这就是为什么我认为@EJB 有一个正确的beanName
    • 我会在上面的帖子中添加更多细节,因为评论会变得太长
    • 异常堆栈显示您的应用程序的某些部分没有正常启动;特别是一个单例bean @PostConstruct。该 bean 将不存在,并且不能注入到其他 bean 中。远程查找和方法调用可能会导致应用程序启动出现问题。我会专注于修复WTRN0064E: An illegal attempt to commit a one phase capable resource in a subordinate transaction branch has occurred. 然后你的应用程序应该可以正常启动,@EJB 注入可能会起作用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多