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.

16 comments:

  1. Thanks it was helpful to me..

    ReplyDelete
  2. I have followed all the above steps still i'm facing issues my command screen starts disappearing after running the startWeblogic.cmd and startManagedWeblogic.cmd soa_server1, my OS is windows7, 64 bit, need suggestions please - Venkat

    ReplyDelete
  3. To avoid abrupt closing of command window when starting an Oracle WebLogic Server with the startWebLogic.cmd/.sh script, edit the domain's setDomainEnv.cmd/.sh script and set doExitFlag=false.

    You may refer -

    http://forums.oracle.com/forums/thread.jspa?messageID=9637785

    ReplyDelete
  4. Thanks Anuj for replying to my earlier request. In the interim I re-installed and installed the setup with installing Weblogic generic jar since my machine is 64 bit Windows 7 OS. However I was successful in starting weblogic Admin console but failed with starting managed soa server, here is what i'm getting when starting soa managed server:Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Kindly advice Anuj, Also please let me know if I can have your active email ID/contact number so that I can communicate/talk to you instantly, Thanks once again, Venkat

    ReplyDelete
  5. From the error it seems you are opening a URL in browser which does not exist. Make sure that you are trying to access a page which really exists and host/port information is correct.

    You may raise queries in SOA Suite forum -

    http://forums.oracle.com/forums/forum.jspa?forumID=320

    ReplyDelete
  6. Hi Anuj

    I'm unable to invoke "Configuration Wizard" to create Weblogic Domain and when i tried to run from C:\Oracle\Middleware\oracle_common\common\bin, I'm getting error as: "Windows cannot access the specified device,path or file. You may not have the appropriate permissions to access the item". For your information while applying patch(ofm_soa_generic_11.1.1.3.0) installation for Soa Suite(ofm_soa_generic_11.1.12.0) i did got a message like "your installation might not be done successfully" eventhough I did see "100%" sucessfull message, also for your information my machine is Windows 7 64 bit and i used wls_1033_generic.jar,Oracle XE database for installation. Kindly let me know how to proceed from here.....................much awaiting for your reply, Thank You.

    ReplyDelete
  7. Go to directory $MW_Home\wlserver_10.3\common\bin\, right click on config.exe and select "Run as administrator" option. It will open up the configuration wizard to create the domain.

    ReplyDelete
  8. Thanks Anuj, I did "Run as administrator" and was able to successfully create domain for weblogic. But I'm having coupleof issues now:

    1. I did start the weblogic admin server from command line and i did see in the console the "Runnning" status and when i opened http://localhost:7001/console in the browser i see the following message:

    Deploying application for /console.............................................................................................................................

    This application is deployed on the first access. You can change this application to instead deploy during startup.
    Refer to instructions in the On-Demand Deployment documentation

    2nd issue: when I ran the startManagedserver from command prompt with command:C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\bin\startManagedWeblogic soa_server1, i see in the error messages in the command prompt:



    9, 2011 10:31:08 AM EDT>
    9, 2011 10:31:08 AM EDT>
    9, 2011 10:32:01 AM EDT> <The log file has been rotated to C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa_server1\logs\soa_server1.log00001. Log message

    For your information
    Before starting weblogic server from the command prompt the screen used to disappear so therefore i did set "doExitFlag" to "false" in "startWebLogic.cmd" file

    also i did Change from
    set set PORT_MEM_ARGS=-Xms768m -Xmx1536m
    to
    set PORT_MEM_ARGS=-Xms768m -Xmx1024m

    in setSOADomainEnv.cmd

    I have my JDK pointing to:
    C:\Oracle\Middleware\jdk160_18

    Please let me know how to proceed from here..........much awaited for your reply, Thanks in advance

    ReplyDelete
  9. Hi Anuj, I some how able to run weblogic admin server and console but facing issues in running soa server, when from command prompt ran this command:C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\bin\startweblogic soa_server1, The following are the details:

















    Also from console with url:
    http://localhost:7001/em

    I see the following details:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Kindly let me know what needs to be done to get this issue resolved, Thank you, Venkat

    ReplyDelete
  10. command:C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\bin\startweblogic soa_server1, The following are the details:
    ============================================















    <The log file has been rotated to C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa_server1\logs\soa_server1.log00011. Log messages will continue to be logged in C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa

    ReplyDelete
  11. <The log file has been rotated to C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa_server1\logs\soa_server1.log00011. Log messages will continue to be logged in C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa

    ReplyDelete
  12. <The log file has been rotated to C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa_server1\logs\soa_server1.log00011. Log messages will continue to be logged in C:\Oracle\Middleware\user_projects\domains\crystal_domaiin\servers\soa

    ReplyDelete
  13. Hi Anuj

    In a nutshell I'm unable to run em console and bam console with following error:

    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    In weblogic admin console under deployments i see that em is "failed" state and "b2bui" in a "new" state however once i was able to open em console after it was in "Active" state but currently em is in "failed" state.how can this be made "Active" again...i did try to deploy em with "install,update" but it doesn't seems to be working .....I guess my installation is done correctly only since as i said i was able to open em console once but not at all now.....kindly advice Anuj.............Thanks & Regards - venkat

    ReplyDelete
  14. Hello All,

    I'm very new to Weblogic. Since OBIEE 11g requires weblogic, i was foreced to use it. I have installed the weblogic on my Windows7 64 bit using 32 bit installer and installation was smooth. Everything was fine and i was able to access the application home page post installation. However, once i restarted the machine, the weblogic server startup is stuck at a step called "initializing self-tuning thread pool" and it won't move from there. Please throw some light on this. Thanks in advance.

    Siva

    ReplyDelete
  15. Weblogic Adminstration online training| Weblogic ...
    www.21cssindia.com/.../weblogic-adminstration-online-training-205.htm...
    Weblogic Adminstration Online Training, Weblogic Adminstration training, Weblogic Adminstration course contents, Weblogic Adminstration , call us: ...+919000444287

    ReplyDelete
  16. DreamHost is definitely one of the best hosting provider with plans for all of your hosting requirments.

    ReplyDelete