Wednesday, 4 December 2019

java.security.PrivilegedActionException: weblogic.common.ResourceException: ADF Ear Deployment

While during the deployment there is some error, which applcation.ear is been deployed.



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 ApplicationDB



After trying multiple options i find out that error is quite common and there is solution been given



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.

Right click on Application drop down select Application properties

Click on Deployment
Uncheck “Auto Generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment”





Flask Error Template not found

Flask Error Template not found

While developing one flask project, this was my initial hitting with this framework, I got a number of errors. 

My directory structure was 

--> hello.py
-->template-->index.html

But i got the following error, I even tried with the directory structure 


--> hello.py
-->index.html


jinja2.exceptions.TemplateNotFound

jinja2.exceptions.TemplateNotFound: xindex.html

Traceback (most recent call last)

  • File "C:\Program Files\Python38\lib\site-packages\flask\app.py", line 2463, in __call__

    return self.wsgi_app(environ, start_response)
  • File "C:\Program Files\Python38\lib\site-packages\flask\app.py", line 2449, in wsgi_app

    response = self.handle_exception(e)




But both no change in the error. After a short study of the framework, it got clear that directory structure should be 

--> hello.py
-->templates/index.html


Now things start working prefrectly.



Feature Selection in AI

In artifical intelegance/machine learning, everything start and end with data and in current world everyday by using facebook, insta we all ...