Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find weblogic_home when setting up server in eclipse

I am trying to get my java ee development environment setup but am running into issues when trying to add a new server in eclipse.

I have the oracle java ee version of eclipse, I also downloaded weblogic 12.1.2 and got it setup and running without issues (I can access the console fine). I got the development version of weblogic and unzipped it to "C:\wls12120". When I try to add a weblogic server in eclipse I try setting it to "C:\wls12120" but it gives me the following message: The path "C:\wls12120" does not contain a valid WebLogic Server install.

I have also tried various other paths within the folder but without success, does anyone know what I am doing wrong?

Thanks in advance!

like image 746
TheCatWhisperer Avatar asked Apr 18 '14 17:04

TheCatWhisperer


People also ask

How to connect WebLogic server with Eclipse?

Click on the Windows menu item, select Show View, and select the Servers view. Then click on the link “No servers are available. Click this link to create a new server”. Expand Oracle, select Oracle WebLogic Server Tools, and click on Next.

How to add WebLogic system libraries Eclipse?

In the Project Explorer, right-click the target project and select Build Path > Add Libraries. On the Add Library dialog, select the library type to add and click Next. Click the Browse button. In the Select WebLogic J2EE Library dialog, select a library and click OK.

Where is WebLogic domain path?

Open a terminal window and navigate to the bin directory. ORACLE_HOME is the path where the WebLogic Server server is installed. In this tutorial, the path is: /u01/app/fmw/oracle_common/common/bin. The Domain Template Builder Configuration Wizard appears.


2 Answers

First try, if you have proper installation and that your WS is instaled and configured properly. If not, check installation documentation. Very important is to have set the environmental variables JAVA_HOME and MV_HOME. For example in my case on Linux i have in .profile

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

MW_HOME=/opt/weblogic/wls12130

Than start intitial scripts.

. .$MW_HOME/configure.sh

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

Than start:

$MW_HOME/user_projects/domains/mydomain/startWebLogic.sh

The last lines looks like:

<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.> 

If WebLogic is started, than do ^C to stop it and begin to integrate to Eclipse. First you must have installed Oracle OEPE plug-in. Than right click in Servers tab and choose new->Server Oracle-> Proper version of WS (in my case 12.1.3). In server host name fill proper IP address (in my case I used 192.168.1.0.2. not localhost) and proper port (default is 7001, but if it has conflict, change it using WebLogic Console before integration to the Eclipse. ERROR: Oracle Weblogic Server port is already in use Mostly, even if it is there conflict, console works, if not, do it manually to edit config.xml in your domain/config directory. Proper way to the WS is $MW_HOME/wlserver (i.e. /opt/weblogic/wls12130/wlserver).

like image 68
hariprasad Avatar answered Nov 14 '22 23:11

hariprasad


The server is WL_HOME\server\lib\weblogic.jar

Based on that workout what the WL_HOME is; and that is the solution to the issue raised. Just note that this matter is INDEPENDENT of the domains - i.e where specific projects are located.

like image 42
Devin Avatar answered Nov 15 '22 00:11

Devin