- Oracle Enterprise Linux 7.2 (OEL)
- Fusion Middleware Home with Weblogic 11.x or 12.x
- ADF runtime libraries installed
Sometimes it isn't clear what version of ADF is on the server you may be trying to deploy to. The differences between 12.2.1.0 and 12.2.1.1 may be small but Oracle does fix bugs and it may apply to you. One clue is to go to the weblogic console and it shows the version right on the screen. This may not be correct of course, so to get the actual runtime ADF libraries you need to dig a bit.
A couple different ways of doing this:
- Check the MANIFEST of adf-share-support.jar.
- Easy way: find the jar and list the MANIFEST
- Easy but more fooferaw: use Oracle's printJarVersions script
- Use the PrintVersion class in oracle.jbo.common package.
- Examine ADF versions from Enterprise Manager -> deployments
First way: check MANIFEST of adf-share-support.jar
cd $MW_HOME/oracle_common/modules/oracle.adf.shareunzip -p adf-share-support.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0RC1
Created-By: 25.40-b23 (Oracle Corporation)
Oracle-Version: 12.2.1.0.42.151011.0031
Oracle-Label: JDEVADF_MAIN_GENERIC_151011.0031.S
Oracle-Label-JDEVADF: JDEVADF_MAIN_GENERIC_151011.0031.S
Oracle-Builder: Official Builder
Oracle-Internal-Release: 12.2.1.0.0KMTEST-BP42
Oracle-BuildSystem: Linux - java - 1.8.0_40-ea-b19
Oracle-BuildTimestamp: 2015-10-11 04:35:53 -0700
This actually does the same thing, with slightly different output:
cd $MW_HOME/oracle_common/common/bin
./printJarVersions.sh | grep 'adf-share-support.jar'
Second way: use PrintVersion class
cd $MW_HOME/oracle_common/modules/oracle.adf.modeljava -cp adfm.jar oracle.jbo.common.PrintVersion
BC4J Version is: 12.2.1.0.31
This Oracle document 401694.1 has information on release version numbers - see the "42" in Oracle-Version of the first way, and "31" in the second way.
Third way: look at the deployment in Enterprise Manager
I'll use the Enterprise Manager application itself as an example. The Weblogic Console and the EM app change from version to version - these screenshots are from version 12.2.1. The trick here is to make sure you are in the "Application Deployments" part of the navigation tree, and not the "Weblogic Domain" part of the tree.Step 1 - go to the correct part of the tree in Enterprise Manger:
Enterprise Manger Navigation Tree - Start by selecting an ADF application deployment. |
Step 2 - from the menu, select ADF -> Versions:
From the Deployments menu, select ADF and then Versions |
Step 3 - filter to find what you're looking for.
I would try looking for *adfm* in the Jar name column, or maybe 12.2 in the "Oracle Version":
Filter on one of the important ADF jar files, such as adfm.jar. You can try a filter like *adfm*. |
No comments:
Post a Comment