扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
以前一直使用免费简单的Tomcat,现在需要改用Weblogic进行开发.具体的开发环境
eclipse3.2
myelcipse5.1
weblogic9.0
com.bea.weblogic.eclipse-1.1.1(weblogic插件)
在weblogic9.0安装配置完后,单独启动,没有问题.
但是在eclipse中,进行配置的时候却出现了几个问题,花了我不少时间:
1.weblogic服务启动和关闭两个图标没有出现
把weblogic插件放入eclipse\plugins目录下,重新启动Eclipse后,界面没有任何变化.在eclipse的工具条中并没有出现weblogic服务启动和关闭两个图标.直到我把tomcat插件删除以后,图标才出现.原来weblogic插件和tomcat插件不兼容引起的。一开始我怀疑是否是由于weblogic插件版本太低呢
2.在eclipse中不能正常启动
错误提示如下:
There are 1 nested errors:
weblogic.management.ManagementException: Parsing Failure: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at weblogic.management.provider.internal.RuntimeAccessImpl.(RuntimeAccessImpl.java:131)
at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:42)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:365)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:116)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:628)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:400)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:66)
Caused by: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at java.util.HashMap.readObject(HashMap.java:1066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at java.util.HashMap.readObject(HashMap.java:1067)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
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.(MarshallerFactory.java:50)
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.(DescriptorManager.java:38)
at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:110)
at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:119)
at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:141)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:207)
at weblogic.management.provider.internal.RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:513)
at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:223)
at weblogic.management.provider.internal.RuntimeAccessImpl.(RuntimeAccessImpl.java:121)
... 7 more
>
在myEclipse中我是如下对对weblogic插件进行如下设置:
window-->preferences-->选择左侧树的MyEclipse-->Application server-->weblogic9,配置如下信息:
Bea home:bea所在目录
Weblogic installation directory:weblogic所在目录
admin user name:weblogic
admin user password:weblogic
execution domain root:domain所在目录
execution domain Server name:server名字,默认是AdminServer
添加weblogic的JVM,由于在安装时,选择的jdk是系统的jdk而不是weblogic自带的jdk.所以,在这里jdk也是选择系统的jdk.
系统jdk版本是1.5.0_08
但是我在windows下启动weblogic服务,发现一个这样的问题,原来weblogic启动时并没有用到我指定的jdk,而是用它自带的jdk.我想这应该是一个bug把.如下图.
重新设置jdk,把它改为系统自带的jdk.
一切ok.
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者