A Rough Guide to
Installing and Setting up WebLogic 10.3 Production for Running ADF Applications
The process of setting up and running WebLogic Server to handle ADF 11g applications appears to be causing some confusion so this blog entry documents the basic steps required to setup and configure WebLogic (both and Admin server and a Managed server) for ADF Applications.
This is not the official documentation, but rather it's the basic steps I followed this evening to set up a configuration from scratch. So it's rough but it does work.
- As prerequisites I’m using WebLogic 10.3 downloaded from OTN and the latest version of JDeveloper (11.1.1.0.1 build 5188)
- Install WebLogic into a new BEA home. I’m doing this on M/S Windows and my home directory will be C:\builds\WLS10_3
- While installing you can go for a custom install and deselect the following which you won’t need:
- Workshop
- Web 2.0 http pub-sub server
- Weblogic Web Server Plugins
- UDDI and Xquery Support
- Server Examples
- Select the JVM that you want to use. Here I’m just using JRockit
- Don’t bother to install the node manager service. If you use it to start a managed server then ADF apps will not run because the classpath is somehow not set up correctly - so you need to start the admin server and managed servers from the command line.
- Complete the install sticking to the defaults, but uncheck the Quickstart option on the last screen
- Now run the JDeveloper install on the target machine
- Choose existing middleware home in the home type and select the home that you just created for the server install (e.g. C:\builds\WLS10_3 in my case)
- On the product selection screen make sure that both JDeveloper Studio and ADF Runtime are installed.
- Run the install.
- Now run the Configuration Wizard from the start menu
- Create a new WebLogic domain
- Choose the first option on the next screen to pre-configure the domain with both WebLogic Server and ADF
- Create the admin user as weblogic / weblogic (or whatever). As we’re trying to emulate a production instance here choose production mode and JRockit as the VM
- On the next screen you can choose to customize things like the ports - so choose yes there so we can reassign out server to use ports 80 and 81
- Just choose next on the RDBMS security store page
- On the configure the Admin Server page set the port to 81
- On the next page Add one managed server called ManagedServer and set the port to 80
- No need for clustering in this simple case so next through the cluster page
- Create a machine on the next screen. If you are using a machine with a known DNS name and fixed IP address use that. or just create a arbitrary name such as LocalMachine if this is all for local testing
- Next through to the summary screen
- In the Create WebLogic Domain screen change the name of the domain to ADFDomain and press create.
- Finish the wizard.
- Now from the command line start the AdminServer with the script (in my case): C:\builds\WLS10_3\user_projects\domains\ADFDomain\bin\startWeblogic.cmd
- You need to specify the username and password if you defined the Domain in production mode.
- Once the AdminServer is started run the console at http://localhost:81/console
- Log in.
- In the console, click deployments in the Domain Structure tree You should see the following Deployments:
- adf.oracle.domain(1.0,11.1.1.0.0)
- jsf(1.2,1.2.7.1)
- jstl(1.2,1.2.0.1)
- Press Lock and edit in the change center box at the top left of the screen.
- Drill down through each of the Deployments and select the Targets tab. For each one check the checkbox for both the ManagedServer and the AdminServer
- Save each deployment change as you make it
- Finally press the Activate Changes button when they are all done.
- Now to start the ManagedServer - use the command line for this: “C:\builds\WLS10_3\user_projects\domains\ADFDomain\bin\startManagedWeblogic.cmd ManagedServer http://localhost:80”
- Now we can run ADF applications on both servers
- Now from JDeveloper you will be able to create a Server connection when you deploy the application using port 81 (the AdminServer) and the domain name of ADFDomain.
- When you deploy an app it should prompt to deploy to either the AdminServer or the managed server.