跳至主要内容

解决WebLogic Server 11g EM的503--Service Unavailable

安装完WebCenter后,发现访问WebLogic Server EM报“Error 503--Service Unavailable”错误,错误信息如下:

Error 503--Service Unavailable


From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.5.4 503 Service Unavailable

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish to simply refuse the connection.

查找了一下原因,发现因为是$MW_HOME/user_projects/domains/<your_domain>/sysman/state/targets.xml文件丢失引起的,解决步骤如下:
1.备份旧的targets.xml文件;
2.按以下模板修改targets.xml文件

<Target TYPE="oracle_ias_farm" NAME="Farm_%DOMAIN-NAME%" DISPLAY_NAME="Farm_%DOMAIN-NAME%">
<Property NAME="MachineName" VALUE="%ADMINSERVER-HOST-NAME%"/>
<Property NAME="Port" VALUE="%ADMINSERVER-PORT%"/>
<Property NAME="Protocol" VALUE="%JMX-PROTOCOL%"/>
<Property NAME="isLocal" VALUE="true"/>
<Property NAME="serviceURL" VALUE="%SERVICE-URL%"/>
<Property NAME="WebLogicHome" VALUE="%WEBLOGIC-HOME%"/>
<Property NAME="DomainHome" VALUE="%DOMAIN-HOME%"/>
</Target>
 
按你域的情况修改以上百分号表示的变量,以下是示例:
<Target TYPE="oracle_ias_farm" NAME="Farm_ecm_domain" DISPLAY_NAME="Farm_ecm_domain">
<Property NAME="MachineName" VALUE="myhostname.com"/>
<Property NAME="Port" VALUE="7001"/>
<Property NAME="isLocal" VALUE="true"/>
<Property NAME="Protocol" VALUE="t3"/>
<Property NAME="serviceURL" VALUE="service:jmx:t3://myhostname.com:7001/jndi/weblogic.management.mbeanservers.domainruntime"/>
<Property NAME="WebLogicHome" VALUE="/u00/middleware/wlserver_10.3"/>
<Property NAME="DomainHome" VALUE="/u00/middleware/user_projects/domains/ecm_domain"/>
</Target>
3.重启AdminServer;
4.确认 http://<server>:7001/em能够正常访问;
5.备份正确的targets.xml文件。

评论

此博客中的热门博文

解决墙国Google Home无法联网问题

趁黑五特价入手了个Google Home,经过漫长的等待昨天终于等到。回到家里兴高采烈的安装了Home应用,设置好开始开心的调戏Google,播放音乐什么的都很正常。 第二天上班回到家里,发现Hey Google后,不是提示Sorry something went wrong, try again in a few seconds."就是"There was a glitch. Try again in a few seconds.",很是恼火。没可能哥花50刀就买一个蓝牙音箱回来吧,再说了,连不上网甚至连蓝牙也打不开。 本着一贯的研究精神,开搞。据说Google Home是自带DNS,OpenWRT路由上设置了全局SS,但是Google Home还是会用tcp的模式去访问不存在的DNS Server地址8.8.4.4和8.8.8.8,于是乎加了个防火墙规则,不管你Google Home什么请求,都乖乖给我走SS通道去。 修改OpenWRT的/etc/firewall.user文件,增加以下iptables规则: iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p udp --dport 53 -j DNAT --to 192.168.1.0 iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp --dport 53 -j DNAT --to 192.168.1.0 iptables -I PREROUTING -t nat -p udp -d 8.8.4.4 --dport 53 -j REDIRECT --to-ports 1053 iptables -I PREROUTING -t nat -p udp -d 8.8.8.8 --dport 53 -j REDIRECT --to-ports 1053 嘿嘿,来一句"Hey Google. Make me relax“,满屋子都是优美的声音,听着写代码真爽:).

Installing RHEL EPEL Repo on Centos 5.x or 6.x

习惯了用yum来安装东西,试了下这篇文章提到的做法workable,再做一次搬运工。 原文出处: http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x Authored by: Rackspace Support How to install RHEL EPEL repository on Centos 5.x or 6.x The following article will describe how to configure a CentOS 5.x-based or Centos 6.x-based system to use Fedora Epel repos and third party remi package repos. These package repositories are not officially supported by CentOS, but they provide much more current versions of popular applications like PHP or MYSQL. Install the extra repositories The first step requires downloading some RPM files that contain the additional YUM repository definitions. The instructions below point to the 64-bit versions that work with our Cloud Server instances. Centos 5.x wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel...

64位OEL 6安装Oracle RCU报“libXext.so.6: cannot open shared object file: No such file or directory”的解决方法

在64位的Oracle Enterprise Linux 6上时报“ libXext.so.6: cannot open shared object file: No such file or directory ”的错误,已经装了64位x11相关的包,可见是缺少32位的包引起的。 1.libXext.so.6错误信息如下: 无法使用位置 /home/ecm/oinstall/rcuHome/rcu/log/logdir.2011-12-26_09-54/rcu.log 初始化日志记录程序 使用以下位置初始化日志记录程序: /tmp/logdir.2011-12-26_09-54/rcu.log Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/ecm/oinstall/rcuHome/jdk/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory     at java.lang.ClassLoader$NativeLibrary.load(Native Method)     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)     at java.lang.Runtime.load0(Runtime.java:770)     at java.lang.System.load(System.java:1003)     at java.lang.ClassLoader$NativeLibrary.load(Native Method)     at java.lang.ClassLoader.loadLibrar...