在eclipse中设置服务器时找不到weblogic_home

时间:2014-04-18 17:20:56

标签: java eclipse java-ee weblogic weblogic12c

我正在尝试设置我的java ee开发环境,但在尝试在eclipse中添加新服务器时遇到了问题。

我有eclipse的oracle java ee版本,我也下载了weblogic 12.1.2并且安装并运行没有问题(我可以访问控制台)。我得到了weblogic的开发版本并将其解压缩到" C:\ wls12120"。当我尝试在eclipse中添加weblogic服务器时,我尝试将其设置为" C:\ wls12120"但它给了我以下信息:路径" C:\ wls12120"不包含有效的WebLogic Server安装。

我还尝试了文件夹中的其他各种路径,但没有成功,有谁知道我做错了什么?

提前致谢!

8 个答案:

答案 0 :(得分:3)

首先尝试,如果您已正确安装并且您的WS已正确安装和配置。如果没有,请检查安装文档。非常重要的是设置环境变量JAVA_HOME和MV_HOME。例如,在我的Linux案例中,我有.profile

  

export JAVA_HOME = / usr / lib / jvm / java-7-openjdk-amd64 export

     

MW_HOME = /选择/的WebLogic / wls12130

比启动初始脚本。

  

。 。$ MW_HOME / configure.sh

     

。 $ MW_HOME / wlserver / server / bin / setWLSEnv.sh

比开始:

  

$ MW_HOME / user_projects /域/ 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插件。然后右键单击Servers选项卡并选择new-&gt; Server Oracle-&gt;适当的WS版本(在我的例子中为12.1.3)。在服务器主机名中填写正确的IP地址(在我的情况下,我使用192.168.1.0.2。而不是localhost)和正确的端口(默认为7001,但如果有冲突,请在集成到Eclipse之前使用WebLogic Console进行更改。{{ 3}}大多数情况下,即使存在冲突,控制台也可以工作,如果没有,可以手动编辑config.xml目录中的domain/config。适当的WS方式是$ MW_HOME / wlserver(即/选择/ weblogic的/ wls12130 / wlserver的)。

答案 1 :(得分:2)

服务器是WL_HOME \ server \ lib \ weblogic.jar

基于该锻炼,WL_HOME是什么;这就是提出的问题的解决方案。请注意,这个问题是域名的独立性 - 即特定项目所在的位置。

答案 2 :(得分:0)

也许您的解压缩服务器不包含此文件:C:\ wls12120 \ registry.xml

http://java.dzone.com/articles/using-intellij-idea-12

答案 3 :(得分:0)

如果if是全新安装,则需要打开shell,设置JAVA_HOME,然后运行config.bat / config.sh。它应该在端口7001上启动侦听。您可以通过管理控制台链接连接到启动的实例。对于Eclipse,您需要指向您创建的实例(例如x:\ wls12130 \ wlserver)

答案 4 :(得分:0)

请运行 configure.cmd 文件进行首次配置。 然后按照步骤按照添加服务器配置步骤进行操作。

答案 5 :(得分:0)

我遇到了同样的问题。要解决此问题,您不必重新安装您的网络服务器。请执行以下步骤解决问题。

  1. 在Eclipse中打开服务器视图并创建一个新服务器。
  2. 从服务器类型中选择正确版本的weblogic。
  3. 单击“配置运行时环境”。将打开另一个弹出窗口。
  4. 选择您的weblogic服务器,然后单击“编辑”按钮。
  5. 点击上一个weblogic主页Textbox
  6. 上提供的浏览按钮
  7. 指出你的weblogic家 &LT;您的云端硬盘&gt;:\ Oracle \ Middleware \ wlserver_&lt;版本&gt;

答案 6 :(得分:0)

转到Windows / Preferences / Servers,然后使用“搜索”按钮并设置您知道有服务器的文件夹。它将找出配置设置。它对我有用。

答案 7 :(得分:0)

至少在我的安装中,我能够这样运行:

enter image description here

相关问题