首先尝试,如果您已正确安装并且您的 WS 已正确安装和配置。如果没有,请检查安装文档。非常重要的是设置了环境变量 JAVA_HOME 和 MV_HOME。例如,在我的 Linux 上,我有 .profile
导出 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 导出
MW_HOME=/opt/weblogic/wls12130
比启动初始脚本。
。 .$MW_HOME/configure.sh
。 $MW_HOME/wlserver/server/bin/setWLSEnv.sh
比开始:
$MW_HOME/user_projects/domains/mydomain/startWebLogic.sh
最后几行如下:
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:9001 for protocols iiop, t3, ldap, snmp, http.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[4]" is now listening on 127.0.0.1:9002 for protocols iiops, t3s, ldaps, https.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 127.0.1.1:9002 for protocols iiops, t3s, ldaps, https.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.1.1:9001 for protocols iiop, t3, ldap, snmp, http.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:204:76ff:fe22:a0d:9001 for protocols iiop, t3, ldap, snmp, http.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on fe80:0:0:0:204:76ff:fe22:a0d:9002 for protocols iiops, t3s, ldaps, https.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[3]" is now listening on 0:0:0:0:0:0:0:1:9002 for protocols iiops, t3s, ldaps, https.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.0.2:9001 for protocols iiop, t3, ldap, snmp, http.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:9001 for protocols iiop, t3, ldap, snmp, http.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 192.168.0.2:9002 for protocols iiops, t3s, ldaps, https.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<Sep 29, 2015 1:25:25 PM CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
如果 WebLogic 已启动,那么^C 将停止它并开始集成到 Eclipse。首先,您必须已经安装了 Oracle OEPE 插件。然后右键单击服务器选项卡并选择新建-> 服务器 Oracle-> WS 的正确版本(在我的情况下为 12.1.3)。在服务器主机名中填写正确的 IP 地址(在我的情况下,我使用 192.168.1.0.2。不是 localhost)和正确的端口(默认为 7001,但如果有冲突,请在集成到 Eclipse 之前使用 WebLogic 控制台进行更改。@987654321 @ 大多数情况下,即使存在冲突,控制台也可以工作,如果没有,请手动编辑domain/config 目录中的config.xml。WS 的正确方式是 $MW_HOME/wlserver(即 /opt/weblogic/wls12130/ wlserver)。