Tuesday, May 18, 2010

weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection

Using tools & technologies:
Oracle Jdeveloper 11.1.1.2.0, EJB3, ADFfaces

When I was trying to redeploy my application it was giving me error saying

[Running application FileUploadDemo1 on Server Instance IntegratedWebLogicServer...]
[11:26:28 AM] ---- Deployment started. ----
[11:26:28 AM] Target platform is (Weblogic 10.3).
[11:26:28 AM] Retrieving existing application information
[11:26:29 AM] Running dependency analysis...
[11:26:29 AM] Deploying 3 profiles...
[11:26:29 AM] Wrote EJB Module to C:\Users\hoitdevweb1\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\FileUploadDemo1\ModelEJB.jar
[11:26:29 AM] Wrote Web Application Module to C:\Users\hoitdevweb1\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\FileUploadDemo1\ViewController1WebApp.war


[11:26:30 AM] Wrote Enterprise Application Module to C:\Users\hoitdevweb1\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\FileUploadDemo1


[11:26:30 AM] Deploying Application...


<May 18, 2010 11:26:30 AM AST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application FileUploadDemo1 is not versioned.>
<May 18, 2010 11:26:30 AM AST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1274171190096' for task '3'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection user=adnan_jdev for data source FileUploadDemoConnection1
at weblogic.jdbc.common.internal.DataSourceConnectionPoolConfig.getPoolProperties(DataSourceConnectionPoolConfig.java:84)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1065)
at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:146)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:385)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:326)
Truncated. see log file for complete stacktrace


>
<May 18, 2010 11:26:30 AM AST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'FileUploadDemo1'.>
<May 18, 2010 11:26:30 AM AST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)


Truncated. see log file for complete stacktrace
Caused By: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: java.security.PrivilegedActionException: weblogic.common.ResourceException: No credential mapper entry found for password indirection user=adnan_jdev for data source FileUploadDemoConnection1
at weblogic.jdbc.common.internal.DataSourceConnectionPoolConfig.getPoolProperties(DataSourceConnectionPoolConfig.java:84)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1065)
at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:146)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:385)


How to resolve this issue
Steps


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”

4. Clean, build and run the application, It should work.

Cheers...!
 
I share what I learn...

Monday, May 3, 2010

Inline javascript in adf faces and calling it using adf faces button component

Short tutorial to add javascript code into your adf faces page and calling it by on button press.
1. Create new Jsf page.
2. Find "Resource" from "Component Paletter --> Operations", and click on it you will be prompted to input in a dialog, click on dropdown array and select "javascript" and click OK.

3. Click on source, you will see the source with "Resource" tag like follows


4. Edit the tag and write your javascript, I am just creating a function which will show the alert dialog.

5. click on Design, and drag button so that you can call function on button click .
6. click on button, click on "component palette-->Operations" find "Client Listener" and click on it. You will be prompted to enter "method" and "type", enter your javascript method name and select type javascript and click on OK button.

7. If you see the source it would be like


8. Now click on page and run the page, when click on button it runs the javascript function.


Note: these are basic tutorials for beginners, I am sharing what I am learning.

Cheer...!