WebLogic ERROR: No credential id found for password id user = db_user?

Every time I try to deploy my EJB application on a Weblogic 10.3 server, I get the following error:

java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: credential id entry not found for password id user = db_user for data source my_ds

How to solve this?

+4
source share
3 answers

Oracle forums have published a solution for this if you are deploying a different Weblogic server than the one integrated with JDeveloper.

When creating an ear file for an application from JDev, it will generate the * -jdbc.xml file for each database connection in the application resources, set the indirect password attribute, update weblogic-application.xml to add each * -jdbc.xml as a module and update web.xml (if one exists) to add a resource link for each jndi jdbc name. However, since no server exists for deployment, Jdev will not put passwords in the ear file. The EAR file will not be deployed as is. Passwords for data sources must be configured on the server before the application runs correctly.

  • Right-click on the application drop-down list, select Application Properties
  • Click Deploy
  • Uncheck "Automatically create and synchronize weblogic-jdbc.xml descriptors during deployment"
+9
source

In JDeveloper 11.1.2.3 +
9.3.4.2.1 Applications with a JDBC data source for WebLogic

If your application uses application-level JDBC data sources with an indirect password to connect to the database, you may need to create credential cards in WebLogic Server to enable the connection to the database. For more information, see Section 9.3.7, “ What You May Need to Know About the JDBC Data Source for Oracle WebLogic Server .”

OR

  1. Open Application Properties
  2. Uncheck the box " Automatically generate and synchronize Weblogic JDBC description during deployment "

enter image description here

+5
source

For this problematic process as below

1 - create a connection data source in weblogic and copy the JNDI name.

2-Open the Appmadule.xml file, go to the configuration and click AppmoduleLocal and insert the JNDI name as the name of the data source. Same as for AppModuleShare. Save file

3-Go to the Applicaton property and uncheck "Auto-generate and synchronize Weblogic JDBC descriptions during deployment."

4-Now go on to deploy and run the application.

0
source

Source: https://habr.com/ru/post/1397419/


All Articles