是否可以在非集群环境中运行weblogic的SingletoneService?我试过了,结果是这样的:
<30.10.2012 18:25:57> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'myApplication'.>
<30.10.2012 18:25:57> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'myApplication'.>
<30.10.2012 18:25:57> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException:
at weblogic.application.internal.flow.SingletonServicesFlow.activate(SingletonServicesFlow.java:67)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
Truncated. see log file for complete stacktrace
java.lang.IllegalArgumentException: Cannot add Singleton Service DemoSingleton as SingletonServicesManager not started. Check if MigrationBasis for cluster is configured.
at weblogic.cluster.singleton.SingletonServicesManager.addConfiguredService(SingletonServicesManager.java:280)
at weblogic.cluster.singleton.SingletonServicesManager.addConfiguredService(SingletonServicesManager.java:297)
at weblogic.application.internal.flow.SingletonServicesFlow.activate(SingletonServicesFlow.java:65)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
Truncated. see log file for complete stacktrace
> 当然,我没有为集群配置MigrationBasis,因为我没有集群。但我认为可以让它同时在集群和独立服务器上运行。是我错了,还是SingletoneService的其他一些错误可能导致此错误
发布于 2012-10-31 01:03:56
Singleton Service只能在WebLogic群集的上下文中使用。对于独立服务器,@Singleton enough就足够了。
实现SingletonService的应用程序只能在群集内的受控服务器上运行。此应用程序不能部署到独立的受控服务器(即不属于任何群集的受控服务器)。
发布于 2013-10-09 15:08:25
一个简单的解决方案是通过配置迁移策略来修复“检查集群的MigrationBasis是否已配置”消息。之后,还可以在单个节点(单节点集群)上部署单例。在环境-> Clusters下,您可以找到以下设置:

https://stackoverflow.com/questions/13141483
复制相似问题