Target state: deploy failed on Server ManagedServer_2
weblogic.management.DeploymentException: [HTTP Session:100083]The webapp: session_test3.war in application: session_test3 has PersistenceStoreType set to: replicated for http sessions, but the target list does not contain all members of cluster: Cluster-0. Inhomogeneous deployment for replicated sessions is not allowed.
replicated
true
weblogic.management.DeploymentException: [HTTP Session:100083]The webapp: session_test3.war in application: session_test3 has PersistenceStoreType set to: replicated for http sessions, but the target list does not contain all members of cluster: Cluster-0. Inhomogeneous deployment for replicated sessions is not allowed.
原因:
应用war包的weblogic.xml添加了
replicated
true
或者
replicated_if_clustered
代码的意思是如果有集群则session复制,但是问题是它会复制到集群下的所有server上,如果你的应用没有部署到集群的所有server上,只是集群下的部分server上,这时就会报此错误。实际上是,它在该集群下的其他server上找不到你的应用。
解决办法:
将应用部署到集群下的所有server上,或者该集群下只放部署该应用的server不放其他server。
实际上 上述解决办法并没有解决我的问题,目前项目要求不要部署war包,而是以目录形式上传,启动节点即可,类似于tomcat的webapps,所以配置了config.xml,配置如下
- <app-deployment>
- <name>servletDemo</name>
- <target>AdminServer</target>
- <module-type>dir</module-type>
- <source-path>C:\Users\ZhangQi\Desktop\servletDemo</source-path>
- <security-dd-model>DDOnly</security-dd-model>
- <staging-mode>nostage</staging-mode>
- </app-deployment>
如果是集群下有多个节点,那么就要在target中用逗号隔开,填写节点的名称即可
<target>server1,server2,server3</target>
本文介绍了在WebLogic集群环境中部署应用时遇到的部署失败问题,特别是当应用使用了复制会话存储方式,但未在所有集群成员上部署时出现的错误。提供了两种解决方案:一是确保应用部署在所有集群节点上;二是通过配置文件指定特定的目标节点。

被折叠的 条评论
为什么被折叠?



