Thursday, March 10, 2011

Starting Weblogic servers(SOA & OSB), JDeveloper and OEPE on Windows 7

In recent past I have seen many queries on OTN related to access issues on Windows 7 while starting Weblogic 11g servers , so thought to blog about the same. In this post I will demonstrate that how you should start weblogic servers, JDeveloper and OEPE on Windows 7


First of all let me describe that why an access issue comes on windows 7. In Windows 7, by default only limited set of programs are executed as an “Administrator” even if you are logged in as an Admin user. To start a normal program as Admin, you have to do it explicitly. Microsoft has already released a note on the same here.

So let’s see how we can start Weblogic (SOA & OSB) servers on windows 7 with Admin access.

1. Starting Weblogic AdminServer

a) To start Admin server, go to Start --> All Programs --> Oracle Weblogic --> User Projects -->  DomainName

b) Right click on “Start Server for .. Domain” shortcut and select “Run As Administrator” option

 
 
 
 
c) If prompted by UAC (User Account Control), then click on Yes to apply permission to allow the program to run with full permission as an administrator.


NOTE: If you are doing this, while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

d) Once the AdminServer gets started, you may go ahead and start Managed Servers



2. Starting Weblogic Managed Servers

a) To start a managed server, first of all you need to open a command prompt and this is the tricky part. For opening a command prompt, go to Start and type “cmd” in “Search programs and files” section. This will show you “cmd.exe” under “Programs” section. Right click on “cmd.exe” and select “Run as administrator” option-


 
 
 
b) If prompted by UAC (User Account Control), then click on Yes to apply permission to allow the program to run with full permission as an administrator.


NOTE: If you are doing this, while logged in as standard user instead of an administrator, then you will need to provide the administrator's password before the program will run as administrator.

c) Now as usual, navigate to $Domain_Home/bin directory and execute startManagedWeblogic.cmd with server name as argument to start the managed server.

3. Starting JDeveloper

To start JDeveloper, go to $JDev_Home (generally $mw_home\jdeveloper), right click on “jdeveloper.exe” and select “Run as administrator” option

4. Starting OEPE

To start OEPE, go to $OEPE_HOME (generally $mw_home\oepe_11gR1PS2 for PS2 release), right click on “eclipse.exe” and select “Run as administrator” option

If you still face an issue, raise a thread in OTN SOA Suite forum with details. Enjoy SOA suite 11g on Windows 7.