最初剛配置時(shí)出現(xiàn)的錯(cuò)誤及解決方法:
1.啟動(dòng)時(shí)出現(xiàn)如下錯(cuò)誤
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:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)<2006-12-6 下午05時(shí)39分36秒 CST> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
<2006-12-6 下午05時(shí)39分36秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 >
原因是配置weblogic時(shí)用了jdk1.5改成weblogic自帶的jdk1.4就可以解決了
2.啟動(dòng)時(shí)出現(xiàn)如下錯(cuò)誤
*************************************************************************The WebLogic Server did not start up properly.
Exception raised: 'weblogic.management.configuration.ConfigurationException: Unable to locate server named myServer in the configuration file config.xml. Please ensure the argument -Dweblogic.Name=<serverName> matches a server name in that file, for example: <Server ... Name="someName"/>.A single server was found namedmyserver'
Reason: weblogic.management.configuration.ConfigurationException: Unable to locate server named myServer in the configuration file config.xml. Please ensure the argument -Dweblogic.Name=<serverName> matches a server name in that file, for example: <Server ... Name="someName"/>.A single server was found namedmyserver
*************************************************************************
原因是配置weblogic信息時(shí)的內(nèi)容跟你的D:\bea\user_projects\domains\mydomain\config.xml文件里的內(nèi)容不一致包括大小寫,改過來就行了
主要是domain name和server name 如下是mydomain和myserver
<Domain ConfigurationVersion="8.1.2.0" Name="mydomain">
<Server ListenAddress="localhost" ListenPort="7001" Name="myserver"
3、出現(xiàn)如下錯(cuò)誤:
*************************************************************************
The WebLogic Server did not start up properly.
Exception raised: 'weblogic.server.ServerLifecycleException: Server failed to bind to the requested port. See preceeding log message for details.'
Reason: Server failed to bind to the requested port. See preceeding log message for details.
*************************************************************************
原因是默認(rèn)的7001端口被占用,因?yàn)樵诖酥伴_過另一個(gè)domain的服務(wù)。關(guān)閉它即可。