weblogic portal 11g 集群

weblogic portal 11g 集群遇到的错误

主机1 adminserver

server1

从机1 server2

启动server2时报错

<The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: java.lang.NoClassDefFoundError: com/pointbase/session/sessionManager.
weblogic.security.service.SecurityServiceException: java.lang.NoClassDefFoundError: com/pointbase/session/sessionManager
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(Unknown Source)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(Unknown Source)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(Unknown Source)
Truncated. see log file for complete stacktrace
java.lang.NoClassDefFoundError: com/pointbase/session/sessionManager

此错误相关是 jdbc 数据源的问题

如果,在集群时,使用的是默认pointbase,那么在主机1 **domain/config/jdbc/下,将所有的6个xml文件里写着localhost字样的都统一改成主机地址。此时,启动server2 就会发现,server2里的这6个xml里的信息也改成了主机的ip地址。

产生错误原因是: 主机连localhost:9093 pointbase,因为主机启动了adminserver 所有pointbase启动了,因此主机能正常启动

从机连localhost:9093 pointbase,因为从机不启adminserver,所以pointbase未启动,因此从机会报错。指向主机的pointbase 可解决此问题

启动server2时报错

<The realm "myrea
lm" failed to be loaded: weblogic.security.service.SecurityServiceException: com
.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r4222
66:807362 fatal internal error> org.apache.openjpa.util.InternalException: There
was an error when invoking the static getInstance method on the named factory c
lass "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for det
ails..
weblogic.security.service.SecurityServiceException: com.bea.common.engine.Servic
eInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal
error> org.apache.openjpa.util.InternalException: There was an error when invoki
ng the static getInstance method on the named factory class "kodo.jdbc.kernel.Ko
doJDBCBrokerFactory". See the nested exception for details.
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(
CSSWLSDelegateImpl.java:342)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegat
eImpl.java:221)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.In
itializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
itializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
adRealm(CommonSecurityServiceManagerDelegateImpl.java:840)
Truncated. see log file for complete stacktrace

Caused By: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-
SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalEx
ception: There was an error when invoking the static getInstance method on the n
amed factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exc
eption for details.
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(S
erviceEngineImpl.java:365)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(S
erviceEngineImpl.java:315)
at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(Servic
eEngineImpl.java:257)
at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.j
ava:72)
at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(
WLSIdentityServiceImpl.java:47)
Truncated. see log file for complete stacktrace

解决方法:

在建立主域,配置的时候,把RDBMS安全存储配置也选上。操作到RDBMS时有个下拉选项,默认选择 关闭的那个就成了

莫名其妙的。。难道不选上 就不是默认的关闭????

你可能感兴趣的:(weblogic)