Wednesday, January 20, 2016

Deploying a ADF application in PaaS

After I have developed a Sample ADF Application in JDeveloper, I was able to successfully deploy the application in a Standalone weblogic server without any issues.

Admin Server and Managed Server:
The standalone weblogic server has one Admin Server and multiple Managed Servers. We normally should deploy the ADF applications to Managed Server, but since I was not able to get this one managed server to run I deployed it to the Admin Server.

Modifying the web.xml:
For each of the ADF Application that you create there is a web.xml file which is used to configure the welcome page. Make sure you configure this before deploying 
eg: /faces/Start for the task flow,
/faces/MainPage.jspx for a single page.

For a task flow you direct to the Activity instead of the page itself, otherwise the task flow does not appear to work.

Issues:
I have a previous JDeveloper 11g version 11.1.1.7.0 which was incompatible for Cloud, so even though I did not see any errors when I deployed to standalone Weblogic server I was not able to deploy it to cloud.

After trying to just change the configuration and adding library too I was unable to get the job done via the old version.

Finally decided to install the cloud supported version, I tried installing it in a new Middleware home without disrupting the old configurations, but got an error saying 'The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully.'



I installed the Jdeveloper 11.1.1.7.1 in the same Middleware home as the older JDeveloper 11.1.1.7.0 and SOA and got the same error regarding Integrated Weblogic Domain. I went ahead deploying the sample application which has just one ADF page in it, from the JDeveloper opposed to deploying from the PaaS UI.

here are the steps..


Application->Deploy-> (Select the Application) ->



 












After testing the Connection the Application is deployed..


here is the log file..

[03:04:01 PM] ----  Deployment started.  ----
[03:04:01 PM] Target platform is  (Oracle Cloud).
[03:04:01 PM] Retrieving existing application information
[03:04:03 PM] Running dependency analysis...
[03:04:03 PM] Building...
[03:04:13 PM] Deploying 2 profiles...
[03:04:13 PM] Wrote Web Application Module to C:\Oracle1\Middleware\Sample Cloud Deployment1\ViewController\deploy\Sample Cloud Deployment1_ViewController_webapp1.war
[03:04:14 PM] Wrote Enterprise Application Module to C:\Oracle1\Middleware\Sample Cloud Deployment1\deploy\Sample Cloud Deployment1_application1.ear
[03:04:14 PM] Deploying Application...
[03:15:31 PM] Oracle Cloud Job ID: 107073
[03:15:31 PM] Oracle Cloud Deploy Job Log: C:\Users\sgajjala\AppData\Local\Temp\cloud-2636100951792309597.log
[03:15:31 PM] Oracle Cloud Return status : COMPLETE
[03:15:31 PM] Application Deployed Successfully.
[03:15:31 PM] Application url(s):
[03:15:31 PM] https://xxyy-xxyyjava.us2.oraclecloudapps.com/Sample Cloud Deployment1-ViewController-context-root
[03:15:31 PM] Elapsed time for deployment:  11 minutes, 31 seconds
[03:15:31 PM] ----  Deployment finished.  ----

 

From this we can see that it took me about 10 minutes to deploy to cloud.

Before you deploy make sure you add the Welcome Files without which you should not be surprised to see a 404 error.

Thanks,
Sridhar




No comments:

Powered By Blogger

About Me

hyderabad, A.P, India
I am sridhar(sidhu) from India. Interested in sharing my views and myself with friends and well wishers.