Problem
======
When you use opatch to install a PSU update to Weblogic 12, you might run into the following error:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
Solution
=======
There are different solution to this issue depending on the cause. I am going to mention the solution that is related to the permission cause.
If you happen to use Windows machine, try to start the command line where you will run the opatch command as administrator.
Let's take an example installing PSU4 on WLS 12.1.3
Extract the zip file containing patch 20838345 (this the PSY 4 patch for Weblogic 12.1.3)
Start a command prompt as administrator using this path:
Start --> All Programs --> Acessories --> Right click on Command Prompt --> Run as administrator
Set the environment in the Command Prompt session:
C:\windows\system32>set ORACLE_HOME=c:\Programs\WLS1213
C:\windows\system32>set PATH=c:\Programs\WLS1213\OPatch;%PATH%
C:\windows\system32>set JAVA_HOME=c:\Programs\WLS1213\oracle_common\jdk
Navigate to where you extracted the patch:
C:\windows\system32>cd c:\PSU4\20838345
Run the opatch command:
C:\windows\system32>opatch apply -jdk %JAVA_HOME%
Thursday, September 17, 2015
How to deploy an ADF web application to a Standalone Weblogic 12.1.3
I- ADF Runtime Installation
1. Download the Application Development Runtime 12.1.3 (Oracle ADF ) from here :
2. Follow this document to install the ADF Runtime to Standalone WLS 12.1.3
a. Run WLS1213\oracle_common\bin\rcu.bat script to create the database schema
b. Run the WLS1213\oracle_common\bin\config.bat script
c. select Create a New Domain and click Next.
d. In the Templates page, select Create Domain Using Product Templates.
The option Basic WebLogic Server Domain - 12.1.2.0 [wlserver] is already selected.
f. Select Oracle JRF - 12.1.2.0 [oracle_common]
3. Download the following sample ADF application and open the .jws workspace in JDeveloper 12.1.3.
4. Build it and run the jsp file to test it inside Jdeveloper
II- Start Weblogic server
III - Deploying the application to Weblogic 12.1.3
1. Select the ViewController project and then Click on File --> New --> From Gallery
2. Select the Deployment profiles and chose WAR File
3. Click on OK. Give a name to your war file (webapp1) and click OK. Then click OK and another OK again to finish creating it. You do not have to access this file for now.
4. Then click top arrow box next to SampleAppModule and select Application Properties
5. Click on Deployment then on the right side click on the middle icon (page with a start) to create a new ear file. You can give it a name for example: application1 (make sure the Profile type is set to EAR)
6. Click ok.
7. Then click on Application Assembly.
8. Expand both Model.jpr and ViewController.jpr
9. In the Model.jpr check SampleApModule_Model and SampleApModule_Model_adflib
10. In the ViewController.jpr, check the webapp1 (the war file that was created in the first steps)
Click ok.
11. Then click top arrow box next to SampleAppModule again and select Deploy --> application1
12. Then chose the application server and then the managed server and finish to deploy to your managed server.
13. Before you can test it, add the following line after the first occurrence of the set JAVA_PROPERTIES in setDomainEnv.bat or setDomainEnv.sh file (wls_home\user_projects\domains\yourdomain\bin)
set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Djps.app.credential.overwrite.allowed=true
14. Restart the weblogic server
Note
------
If the above line is not added you will get the following error when you try to access
your app at: http://localhost:7003/SampleApp/faces/Home.jsf
oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception
Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
15. Now you can test using the URL:
http://localhost:7003/SampleApp/faces/Home.jsf
You need to change the localhost and port with your equivalents.
1. Download the Application Development Runtime 12.1.3 (Oracle ADF ) from here :
2. Follow this document to install the ADF Runtime to Standalone WLS 12.1.3
a. Run WLS1213\oracle_common\bin\rcu.bat script to create the database schema
b. Run the WLS1213\oracle_common\bin\config.bat script
c. select Create a New Domain and click Next.
d. In the Templates page, select Create Domain Using Product Templates.
The option Basic WebLogic Server Domain - 12.1.2.0 [wlserver] is already selected.
f. Select Oracle JRF - 12.1.2.0 [oracle_common]
3. Download the following sample ADF application and open the .jws workspace in JDeveloper 12.1.3.
4. Build it and run the jsp file to test it inside Jdeveloper
II- Start Weblogic server
III - Deploying the application to Weblogic 12.1.3
1. Select the ViewController project and then Click on File --> New --> From Gallery
2. Select the Deployment profiles and chose WAR File
3. Click on OK. Give a name to your war file (webapp1) and click OK. Then click OK and another OK again to finish creating it. You do not have to access this file for now.
4. Then click top arrow box next to SampleAppModule and select Application Properties
5. Click on Deployment then on the right side click on the middle icon (page with a start) to create a new ear file. You can give it a name for example: application1 (make sure the Profile type is set to EAR)
6. Click ok.
7. Then click on Application Assembly.
8. Expand both Model.jpr and ViewController.jpr
9. In the Model.jpr check SampleApModule_Model and SampleApModule_Model_adflib
10. In the ViewController.jpr, check the webapp1 (the war file that was created in the first steps)
Click ok.
11. Then click top arrow box next to SampleAppModule again and select Deploy --> application1
12. Then chose the application server and then the managed server and finish to deploy to your managed server.
13. Before you can test it, add the following line after the first occurrence of the set JAVA_PROPERTIES in setDomainEnv.bat or setDomainEnv.sh file (wls_home\user_projects\domains\yourdomain\bin)
set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Djps.app.credential.overwrite.allowed=true
14. Restart the weblogic server
Note
------
If the above line is not added you will get the following error when you try to access
your app at: http://localhost:7003/SampleApp/faces/Home.jsf
oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception
Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
15. Now you can test using the URL:
http://localhost:7003/SampleApp/faces/Home.jsf
You need to change the localhost and port with your equivalents.
Subscribe to:
Posts (Atom)