问题描述
首先声明 小弟很菜 myeclipse 安装正常 关联tomcat正常 ,安装weblogic正常 在目录下E:Program FilesBEAuser_projectsdomainsbase_domainbin用startweblogic.cmd可以正常启动但是就是在weblogic和myeclipse关联时出错 报的错误如下 There are 1 nested errors:weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:122)at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:38)at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:374)at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:125)at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)at weblogic.Server.main(Server.java:67)Caused by: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940at java.io.ObjectStreamClass.initNonProxy(Unknown Source)at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)at java.io.ObjectInputStream.readClassDesc(Unknown Source)at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)at java.io.ObjectInputStream.readObject0(Unknown Source)at java.io.ObjectInputStream.readObject(Unknown Source)at java.util.HashMap.readObject(Unknown Source)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)at java.io.ObjectInputStream.readSerialData(Unknown Source)at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)at java.io.ObjectInputStream.readObject0(Unknown Source)at java.io.ObjectInputStream.defaultReadFields(Unknown Source)at java.io.ObjectInputStream.readSerialData(Unknown Source)at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)at java.io.ObjectInputStream.readObject0(Unknown Source)at java.io.ObjectInputStream.readObject(Unknown Source)at java.util.HashMap.readObject(Unknown Source)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)at java.io.ObjectInputStream.readSerialData(Unknown Source)at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)at java.io.ObjectInputStream.readObject0(Unknown Source)at java.io.ObjectInputStream.defaultReadFields(Unknown Source)at java.io.ObjectInputStream.readSerialData(Unknown Source)at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)at java.io.ObjectInputStream.readObject0(Unknown Source)at java.io.ObjectInputStream.readObject(Unknown Source)at com.bea.staxb.buildtime.internal.bts.BindingFile.forSer(BindingFile.java:77)at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(RuntimeTylar.java:111)at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(RuntimeTylar.java:90)at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:66)at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:52)at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:153)at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)at weblogic.management.provider.internal.DescriptorManagerHelper.loadDescriptor(DescriptorManagerHelper.java:52)at weblogic.management.provider.internal.RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:599)at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:230)at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:110)... 7 more> <2010-12-30 下午11时01分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED> <2010-12-30 下午11时01分02秒 CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down> <2010-12-30 下午11时01分02秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
解决方案
应该是QName.jar包版本问题
解决方案二:
1.你先看你手动启动weblogic有没有问题。如果有问题,如ls所说,找到这个类,用其它包替换掉。2.如果没有问题,那就是myeclise整合weblogic的问题了。
解决方案三:
javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940 你序列化成config.xml用的jar与,反序列化config.xml用的jar不一样就是用到javax.xml.namespace.QName这个。。。