修改Weblogic的JDK路径以解决其不能正常启动的问题

问题描述:

启动错误如下:

The WebLogic Server did not start up properly.
java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cla
ss serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:155
2)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:155
2)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
08)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.jav
a:261)
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(Ty
pesHelper.java:366)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(Configurat
ionMBeanImpl.java:130)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java
:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:771)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------

weblogic.management.configuration.ConfigurationException: - with nested excepti


…………………………伟大的分割线………………………………………………


解决方法:

C:\bea\user_projects\domains\mydomain 目录中

1、修改setEnv.cmd文件
修改如下:

set JAVA_HOME=C:\bea\jdk142_05


2、修改startWebLogic.cmd文件:

修改如下;
set JAVA_HOME=C:\bea\jdk142_05 

你可能感兴趣的:(修改Weblogic的JDK路径以解决其不能正常启动的问题)