Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebLogic ERROR: No credential mapper entry found for password indirection user=db_user?

Every time I try to deploy my EJB service app to Weblogic 10.3 server, I get following error:

java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection user=db_user for data source my_ds

How to solve this??

like image 263
Monzurul Islam Avatar asked Feb 20 '12 12:02

Monzurul Islam


1 Answers

The Oracle forums have posted a solution for this, if you are deploying to another Weblogic server other than the Integrated one with JDeveloper.

While generating ear file for an application from JDev, it will generate a *-jdbc.xml file for each DB connection in the application resources, set the indirect password attribute, update weblogic-application.xml to add each *-jdbc.xml file as a module and update web.xml (if it exists) to add a resource reference to each jdbc jndi name. However, since there is no server to deploy to, Jdev will not place the passwords in the ear file. The EAR file will not deploy as is. The passwords for the data sources must be setup on the server before the application will run correctly.

  1. Right click on Application drop down select Application properties
  2. Click on Deployment
  3. Uncheck “Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment”
like image 75
JoseK Avatar answered Oct 24 '22 19:10

JoseK