In this post we will learn the details of the difference between in deploying the ADF application from Jdeveloper into Weblogic server and deploying as an EAR file in the Weblogic server.
Deploy From Jdeveloper into Weblogic server
An ADF application which interacts with database will have JDBC connection settings configured within it. So when we deploy such ADF application from Jdeveloper to the Weblogic Admin server, Jdeveloper will automatically create the Data source in Weblogic server for this application based on the the JDBC setting available in the ADF application. So the deployment will be successful and you can easily access this application from Weblogic Admin server.
Deploy as an EAR file in the Weblogic server
But when you create an EAR file in Jdeveloper for the same ADF application and tried to deploy in the Weblogic Admin server console, it throws below error –
Message icon – Error weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection user=apps for data source DevCon01_Apps
In few cases even you will be able to deploy the ADF application as an EAR file successfully, but you will face the above error while accessing the application.
Go to ADF Application Properties – > Deployment – > Uncheck the ‘Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment’. By default this option is selected in the Application Properties window.
Now you will not face the above error message while deploying as an EAR file into WebLogic server.
You will be able to successfully access the deployed application.