Tuesday, February 23, 2010

Installing Weblogic Server 10.3 and extending it to support ADF

When I started working on ADF application development I thought when I am done from development, I just have to deploy the application to weblogic server, then running the application and it will run with no extra work to do.

But, it seems there some confusion when installing and deploying ADF applications to weblogic server, so i wanted to stat it in a step wise procedure.

This is a basic steps carried out through installation of production weblogic server:

1- Download weblogic server 10.3 and latest version of JDeveloper from oracle website.

2- Install weblogic into new BEA home, my installation is carried out on windows 2008 R2 server 64-bit. My installation directory is C:\BEA\Middelware.

3-  Deselect the components that you don't need such as :
  • Web 2.0 http pub-sub server
  • Weblogic Web Server Plugins
  • UDDI and Xquery Support
  • Server Examples
  • Workshop


4- Select the JVM you need, in my case and since its a production server its better to select JRockit for better performance. Note (some times you may face exceptions during execution of applications, when using the JVM shipped with weblogic on 64-bit machines, in such a case you need to get the latest 64bit JDK  from sun install it and the configure weblogic to use it). 



5- Complete the installation steps using defaults, but don't hit the quick start button.

6- Now run JDeveloper installation on the target machine.

7-Choose the same existing middleware home used for installing weblogic server.

8- On the product selection screen make sure to deselect JDeveloper Studio and all other options are selected, which includes ADF Runtime library, and complete the installation.

9- Now we have to create a domain by using the configuration wizard, in select domain source window select Oracle JRF-11.1.1.0 [oracle_common].

10- Enter domain name, then enter a valid admin user as an example weblogic/weblogic1, and select Production enviroment to use JRockit as VM.

11- Select to configure admin server, managed servers and clusters, and deployment services.

12- Us port 81 for admin server, the in the next screen add a managed server instance and defined listen port to us port 80. If you wish to add cluster you can use the next screen.

13- Then to summary screen to create the weblogic domain.

14- Now from command line or using the shortcut provided in start menu under the new created domain, start weblogic admin server. In my case its C:\oracle\Middleware\user_projects\domains\base_domain\bin\startWebLogic.cmd.

15- Once the Admin Server is started run the console at http://localhost:81/console.

16- Now to start the ManagedServer - use the command line for this : "C:\oracle\Middleware\user_projects\domains\base_domain\bin\startManagedWeblogic.cmd ManagedServerName http://localhost:80” . You must define the name of the managed server created and the URL used to access when running the managed server.

17- Now you can deploy your application to both admin and managed server and run successfully.

18- Note when using Node Manager to run managed server the class path might be different so ADF applications will not run due to ClassNotFoundException.

1 comment:

  1. You gave me some good information about the Weblogic. thanks keep on updating.

    ReplyDelete