Skip to content
Advertisement

Spring boot app cannot get connection via jndi in weblogic

We have spring boot application (version => 2.4.3) that needs to run in weblogic 12.2.1.4.0. When we give url, name and password like below, it successfully deploy and can get connection, but when we deploy via jndi like below. It is getting error. How can we fix this? We already tried these links, but it is not solved our problem.

https://weblogic.developer.interest.jdbc.narkive.com/2JvpDwJc/weblogic-jdbc-extensions-poolpermissionssqlexception

https://groups.google.com/g/weblogic.developer.interest.jdbc/c/SobQpZNwrfM?pli=1

https://groups.google.com/g/weblogic.developer.interest.jdbc/c/lkTGus61SNE

Weblogic errror=>

JavaScript

Working properties =>

JavaScript

not working properties =>

JavaScript

Error occur in this code ‘dataSource.getConnection()’

JavaScript

Advertisement

Answer

After removing ‘Locale.setDefault(new Locale(“tr”, “TR”));’ in ContextListener, it can get connection. I don’t understand why it gets faults from weblogic datasource. Secondly, when we deploy our war package to local weblogic. It is also gets datasource error and after logging off console, we cannot log in. Admin console also affected. We tried correct username and password, but it gives error like this ‘Access denied’. All these has solved with removing default locale.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement