ADF Runtime, WebLogic Server and WebLogic Domain – install and configure on linux using console mode

June 14th, 2011 | Posted by Bogdan Petridean in Oracle ADF | 2 Comments

In the following we will use console mode on a linux machine to install Application Development Framework Runtime and WebLogic Server and to create & configure a new WLS Domain ready to host ADF applications.

Prerequisites

JDeveloper Studio Edition package for linux (.bin) – which besides JDeveloper IDE  also contains ADF Runtime and WebLogic Server. The current version – 11.1.2.0.0 at the time this entry was written – can be downloaded from here.

Hint: ADF Runtime and WebLogic Server can also be downloaded and installed as separate packages.

Optional: JRockit JDK- can be downloaded from here. Choose the JRockit version with respect to your Linux OS bit count and Java version.

Install ADF Runtime and WebLogic Server

Follow the steps below to install ADF Runtime and WebLogic Server components:

i1. Make the installation package (jdevstudio11120install.bin) exacutable:

i2. Start the installation process:

i3. After the extraction process is done an intro text is displayed:

i4. Create a new Oracle Middleware Home (default option):

i5. Enter the path and name for the new Middleware Home:

i6. Confirm your choice:

i7. Choose the Custom install type by entering 2:

i8. By default all components are selected, but presuming that this machine will be used only for deployment and presentation and not for development we will not install the IDE: Jdeveloper Studio [1.1]. Enter 1.1 to deselect it:

i9. Keep the default selection and press enter:

i10. Confirm:

i11. Installation process is successfully completed:

Now, if you navigate to the newly created Middleware Home (opt/Oracle/Middleware11gR2)/user_projects/domains directory you’ ll notice that is empty.

Next, we’ ll create a new wls domain to host our ADF applications.

Create and configure WebLogic Server Domain

The domain will be configured to use Oracle JRockit. Before starting with the domain creation install JRockit JDK; otherwise you’ ll have use the default JDK (installed at step i9.)

In what follows we’ ll consider as Middleware_Home: /opt/Oracle/Middleware11gR2

Follow the steps below to create and configure a new WebLogic Server Domain:

ii1. Change dir to Middleware_Home/oracle_common/common/bin

ii2. Start domain creation by running config.sh

ii3. Choose to Create a new WebLogic domain:

ii4. Choose WebLogic Platform Components:

ii5. From Available Templates list besides Basic WebLogic Server Domain (selected by default) also select Oracle JRF as below:

ii6. Enter a name for your domain:

ii7. Select the location for your domain (should be in /domains dir):

ii8. Provide the credentials for your domain:

ii9. Select the Domain Mode with respect to your needs - we will use Production Mode.

Here are 2 articles to help you decide:

http://baigsorcl.blogspot.com/2011/06/difference-between-weblogic-production.html

http://oraclefusionfacts.blogspot.com/2011/06/weblogic-server-development-mode-vs.html

ii10. Select Java SDK to be used with your domain.

If you haven’ t installed JRockit continue with the selected Sun SDK; otherwise choose Other Java SDK (as we will):

ii11. Provide the path of JRockit JDK installation directory:

ii12. Select Administration Server as below:

ii13. Configure your Administration Server by specifying a name, address and port:

Hint: SSL can be activated/deactivated later using the Administration Server web interface.

ii14. The domain is successfully created:

Now, if you navigate to Middleware_Home/user_projects/domains dir you’ ll be able to see your domain.

Configure wls domain to start without asking for credentials

iii1. Change dir to Middleware_Home/user_projects/domains/your_domain/servers/your_server/

Hint: If you cannot find Middleware_Home/user_projects/domains/your_domain/servers dir start wls server and it will be automatically created.

iii2. Create a new dir and name it security

iii3. Create a new file - boot.properties and provide the credentials (see step ii8):

iii4. Press ctrl -> d to apply changes.

Hint: After wls server is started boot.properties content will be encrypted.

Start WLS

To start wls instance run startWebLogic.sh script @ Middleware_Home/user_projects/domains/your_domain/

Once started you can access it by typing into your browser:

http://Listen_address:Listen_port/console

Hint: Check step ii13 for Listen_address and Listen_port values.

Stop WLS

To stop wls instance  run stopWebLogic.sh script @ Middleware_Home/user_projects/domains/your_domain/bin/

Cheers!

2 Responses to “ADF Runtime, WebLogic Server and WebLogic Domain – install and configure on linux using console mode”

  1. Nance Rice says:

    Jesus, somebody call ma, really love this blog :-)! But hey bud, I got some bad news, you’re really missing out of a lot of visitors. I’m a blogger myself and I spend a lot of time making and reading them, ones like GEBS | ADF Runtime, WebLogic Server and WebLogic Domain – install and configure on linux using console mode. I recently got a new tool and it’s done *wonders* to my entire business, this crazy thing is SO much more powerful and better. It’s only been a week but my revenue has gone up to $258.11 $$CASH$$, all in one day! So want me to do you a favor? Ok, here’s my big secret, where I learned all my tricks: –>>http://doiop.com/TheBlogWealthMakerv2.0 <– Just giving your site a look I can tell you'll probably pull in a couple hundred bucks a month if you just spend a few minutes tweaking some stuff. Damn, I feel like I just made someone's day today. But keep it a secret! I don't want too many people using it. Nance Rice

  2. Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is great, let alone the content!

Leave a Reply