在eclipse+myEclipse+Weblogic配置,出现java.io.InvalidClassException异常
来源:互联网 发布:邱一平炒股软件好吗 编辑:程序博客网 时间:2024/04/30 23:48
今天在MYeclipse中配置weblogic8.x 时出现了异常.后研究解决了.见下面.
bea home directory d:/bea
weblogic installation directory d:/bea/weblogic8.1
admin username system
admin password weblogic
execution domain root d:/bea/user_project
execution domain name mydomain
execution server name myserver
hostname:protnumber localhost:7001
security policy file d:/bea/weblogic700/server/lib/weblogic.policy
jaas...不填
展开下层的JDK
选择Add新建一个,jre名称随便写,jre主目录选择你的系统jdk的安装目录,比如d:/jdk1.5.0 .7
而不能是系统jre的目录,比如d:/jre1.5.0.7,否则无法启动
配制好后就可以启动了。
结果异常了.
<2006/10/31 17時31分11秒 GMT+08:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_07-b03 from Sun Microsystems Inc.>
<2006/10/31 17時31分11秒 GMT+08:00> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
<2006/10/31 17時31分11秒 GMT+08:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
WebLogic XMLX Module 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358 >
***************************************************************************
The WebLogic Server did not start up properly.
java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1551)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1465)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1551)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1465)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1633)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1298)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1917)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1841)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1718)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)
at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:274)
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:384)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:137)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]
at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:279)
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:384)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:137)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationError - with nested exception:
[weblogic.management.configuration.ConfigurationException: - with nested exception:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848]]
at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:395)
at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:137)
at weblogic.management.AdminServer.<init>(AdminServer.java:59)
at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
at weblogic.Server.main(Server.java:32)
***************************************************************************
第一句
<2006/10/31 17時31分11秒 GMT+08:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_07-b03 from Sun Microsystems Inc.>
说明了JDK5.0作为WebLogic Server 8.1的运行库
这是不行的,请在MyEclipse中重新配一下Application Server下的WebLogic 8项,把运行库改为1.4.*的相应版本(在BEA安装文件夹下就有). eclipse3.0.2和weblogic8.x 都不支持jdk1.5
这里要和你建mydomian时选的JDK一致. D:/bea/jdk142_08 或 D:/bea/jrockit81sp5_142_08
就OK了.
- 在eclipse+myEclipse+Weblogic配置,出现java.io.InvalidClassException异常
- java.io.InvalidClassException 异常
- java.io.InvalidClassException异常
- java.io.InvalidClassException异常处理
- JAVA--java.io.InvalidClassException
- java.io.InvalidClassException翻译
- java.io.InvalidClassException
- java.io.InvalidClassException异常产生原因及解决方案
- 对象反序列化异常原因:java.io.InvalidClassException
- java.io.InvalidClassException序列化
- Eclipse+MyEclipse+Weblogic环境配置
- 在MyEclipse中配置weblogic
- 在myeclipse中配置weblogic
- Weblogic在MyEclipse的配置
- 在myeclipse中配置weblogic
- weblogic在myeclipse中的配置
- Java Exception: java.io.InvalidClassException solution
- JAVA--java.io.InvalidClassException急解
- C语言中的位域的使用
- 控件命名规则
- 如何生个聪明宝宝,太经典咯
- 使用 /proc 文件系统来控制系统
- 你的女友值多少钱
- 在eclipse+myEclipse+Weblogic配置,出现java.io.InvalidClassException异常
- 同时支持多语言,多种数据库的多用博客提供下载 i-favourite 1.5
- TransactionScope的正确用法
- 项目管理日记2006-11-01
- 性格与气质的关系
- Microsoft .Net Remoting系列专题之一:.Net Remoting基础篇
- 《Windows NT FileSystem Internals》学习笔记之DRIVER_OBJECT对象结构
- 《Windows NT FileSystem Internals》学习笔记之IO_STACK_LOCATION的学习
- Microsoft .Net Remoting系列专题之二:Marshal、Disconnect与生命周期以及跟踪服务