spring-boot


Spring boot web application not working with oracle wallet


I am working on spring boot on both command line runner and web application. Both applications require to be implemented with oracle wallet, so I implemented the oracle wallet. The command line runner is able to connect to database using spring jdbc template using oracle datasource but same configuration is not been able to create the bean for datasource object. When same has been implemented with database user name and password, I am able to connect.
I am taking help from this post - [Connect to Oracle DB from Spring-jdbc with Oracle Wallet authentification
with code similar to,
System.setProperty("oracle.net.tns_admin", "path/to/your/tnsnames");
OracleDataSource ds = new OracleDataSource();
Properties props = new Properties();
props.put("oracle.net.wallet_location", "(source=(method=file)(method_data=(directory=path/to/your/wallet)))");
ds.setConnectionProperties( props );
ds.setURL("jdbc:oracle:thin:/#dbAlias"); //dbAlias should match what's in your tnsnames
return ds;
I have all my properties set from application.properties of boot application and I am getting null pointer exception on creating the datasource.
Any pointer or help in this regard will be much appreciated.
Thanks in advance,
Sandip

Related Links

SAML 2.0 TO OAUTH
Spring Boot's UserInfoRestTemplate with protected authorisation server endpoint
No detail in Swagger docs for Spring Data Rest's GET requests
Spring Config Server with Spring Vault not able to authorize with Vault aws-ec2 instance role
Perform flyway.clean() only when new version detected
Can Spring boot use a ROO-generated (aspectj-compiled) object?
HikariCP with Spring boot autoconfiguration & Spring Data
How to integrate keycloak in Spring Boot with a different context root and reverse proxy
Why import AsyncRabbitTemplate in spring-amqp
Can't update a database record with Spring RepositoryRestResource
configure dataSource for liquibase in spring boot
Getting null with #pathparam and #requestmapping
Programmatic refresh of static files in STS workspace has not effect in Tomcat
Can I get timestamp into spring boot log file name w/out separate config file?
No qualifying bean of type [javax.sql.DataSource] found for dependency: in spring boot-jpa
Cannot disable manual commits on Kafka message using Spring-integration-kafka in Spring-Boot App

Categories

HOME
gcc
cors
ldap
pelican
abc
singleton
query-string
sequence
install
wavefront
segmentation-fault
google-my-business-api
ng2-charts
hdf5
element
react-select
sha1
loader
include-path
matlab-gui
inline-assembly
aws-certificate-manager
rancher
workflow-foundation
angular2-changedetection
setup-project
launchd
pushpad
andengine
imdb
webspeech-api
bootcamp
pygraphviz
area
observer-pattern
redbean
android-graphview
quartz
flume-ng
wufoo
nshttpurlresponse
piranha-cms
weld
lucee
dcom
jcs
cancan
e4
jcifs
aws-rds
trusted-computing
apache-commons-cli
spring-social-twitter
turbolinks
firebase-job-dispatcher
optional-parameters
strtol
normalisation
hotkeys
razorengine
calc
android-facebook
serial-communication
exchange-server-2007
dpkt
data-quality-services
cordova-3
javadb
go-gin
pyalgotrade
hotlinking
opencobol
google-oauth-java-client
objectdatasource
nokogiri
junction-table
pageload
auctex
microsoft-speech-platform
correctness
report-viewer2010
doxia
optimistic-concurrency
jmesa
sqlbuddy
yii-cactiverecord
zend-validate
lwp
virtual-destructor
chromebug
pitch-shifting
newspeak
web-widget
dojox.gfx
atmega16
opengl-to-opengles
ffdshow

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App