How to Extend WebLogic Server for ADF Applications

0 11

This post serves as a step by step guide to extending a generic WebLogic Server domain on Linux using the Application Development Runtime package available on OTN. The Application Development Runtime package includes the Java Required Files (JRF) which include the ADF runtime libraries necessary to deploy ADF applications on WLS. In case you’re wondering, these libraries are already included for the default domain that’s installed with JDeveloper, so that’s why no domain extension is necessary when you’re running an application directly from JDeveloper. However, if you’ve deployed an ADF application to your domain and are getting errors like “Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, Implementation-Version: 11.1.1.1.0, exact-match: false], [Extension-Name: oracle.jsp.next, exact-match: false]“, then your domain doesn’t include the JRF extension and you’ll need to follow these steps.

Step by step guide on – Extending WebLogic Server for ADF Applications

1. From the Fusion Middleware Download page:

Fusion Middleware Download page

2. Scroll down to Application Development Runtime and click Disk1 to download.

3. Save the zip file to disk.

4. Open the zip once it has downloaded successfully and extract the files.

5. cd to the location of the files and run the installer:

prompts for a JDK

6. If the installer prompts for a JDK, enter the one in the your Fusion Middleware home directory:

Installer launches

7. When the installer launches, select a directory for the inventory of the install:

Specific inventory directory

8. If the installer was not run as root, the installer will prompt for the createCentralInventory.sh to be run before the install proceeds:

Inventory location

9. Run the script as directed:

Run script

The script should execute successfully.

10. Click OK in the installer dialog to continue the installation:

Inventory location permission

11. Click Next on the welcome page of the installer.

12. Click Next once the requirements are verified:

Prerequisite checks

13. Specify the Oracle Fusion Middleware Home directory (where you have installed WLS 10.3) and click Next:

Specific installation location

14. Click Install to start the installation:

Installation summary

15. Click Finish when the install is complete.

16. From the quick start dialog, launch the configuration wizard:

Configuration Wizard

17. In the configuration wizard, select Extend an existing WebLogic domain and click Next:

Extend an existing WebLogic domain

18. Select the domain that you previously created and click Next:

Weblogic domain directory

19. Select Oracle JRF – 11.1.1.0 [Oracle_APPDEV1] as the extension source and click Next:

Oracle JRF

20. Click Next to skip the Optional configurations steps:

skip the Optional configurations

21. Click Extend to extend the domain

Extend the domain

22. Click Done to exit the configuration wizard once the extension is applied successfully.

23. Finally, to ensure that the credentials that you supply in the database connections for your ADF Application are deployed and include the password, add -Djps.app.credential.overwrite.allowed=true to the JAVA_PROPERTIES entry in the FMW_HOME/user_projects/domains/yourdomain/bin/setDomainEnv.sh file (or setDomainEnv.cmd if you are on Windows), and restart the server using FMW_HOME/user_projects/domains/yourdomain/bin/startWebLogic.sh. This is what you need to do if you have deployed an ADF application to your server but are seeing the following errors when the application is accessed:

oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:253)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:168)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:546)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:327)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:104)
Truncated. see log file for complete stacktrace
java.sql.SQLException: ORA-01005: null password given; logon denied

Congratulations! Your WLS domain is now ready to host ADF applications.

Leave A Reply

Your email address will not be published.