Weblogic9 常见问题修复

 

Weblogic修改默认7001端口

Weblogic下开了多个domain 默认会启动不了,需要修改一下2处地方:

 

1. C:\bea\user_projects\domains\mydomain(您自己的domain)\config\config.xml 来修改其端口, 如下所示:

<server>
<name>AdminServer</name>
<listen-port>7002</listen-port>
<listen-address>192.168.x.x</listen-address>
</server>

 

 

 修改C:\bea\user_projects\domains\mydomain\bin\stopWeblogic.cmd中的url的端口号为7002

 

2若启动后,报Server is Running in Production Mode and Native Library(terminalio) to read the password securely from commandline is not found.则启动用户名和密码没有配置,如下操作:

C:\bea\user_projects\domains\mydomain(您自己的domain)\servers\AdminServer\security目录下,创建boot.properties文件,里面输入如下内容:

password=weblogic
username=weblogic

保存即可。(如果security目录不存在,手动建立,授予读写权限)

weblogic8在

C:\bea\user_projects\domains\mydomain(您自己的domain)\myservers\目录下面建立

 

问题3:WebLogic 9无法启动 
症状: 
weblogic.management.ManagementException: [Management:141266]Parsing Failure in c 
onfig.xml: javax.xml.namespace.QName; local class incompatible: stream classdesc 
serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448 
754896609940 

解决办法: 
在%DOMAIN_HOME%\bin\startWeblogic.cmd里加入下面这行 
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0 

 

 4连接池测试通过,但是在active的时候却报错:

   weblogic.management.DeploymentException: Attempt to operate 'activate' on null BasicDeploymentMBean : DataSource

这个问题是jdk版本不对引起的,我的weblogic92默认是ibm java5,但是当时我选择了java6,后来换回来就没有在报错了。。。

 

  5 <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.

java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
at weblogic.server.channels.ChannelService.start(ChannelService.java:205)
Truncated. see log file for complete stacktrace
Caused By: java.net.UnknownHostException: wlsfr-stl-0015: wlsfr-stl-0015
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:36)
at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:33)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:154)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:61)
Truncated. see log file for complete stacktrace
>

错误原因:此次出错是在服务器上,linux环境,刚装的weblogic,启动服务报错,后来查明原因是hosts文件里127.0.0.1 没有与hostname对应上。在windows环境下主机一直默认叫做localhost,服务器有一个主机名,所以报错啦

解决办法:在/etc/hosts文件内加入127.0.01 <hostname>

 

以上本人在weblogic92上测试过

你可能感兴趣的:(weblogic)