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

Spring Rabbit MQ Publish and Acknowledge
Polymorphic deserialization - #JsonTypeInfo “defaultImpl” for collections
Unique Key Constraint in Spring Data Jpa
Throttling Logic to control the rate of SQS messages consumption in SpringBoot application
spring-boot guide 'Accessing data with MySQL' to derby
Spring Boot 1.3.5 Tomcat Access Log Rotation
is it possible to use OAUTH2 with no userInfoUri?
Spring boot deserialization for two models
Writing tests to verify received msg in jms listener (Spring-Boot)
Dead Lock occur in spring security oauth2 Server
Firewall blocking Spring Boot application as Windows service using winsw
Resource ServletContext resource does not exist
Setting Timeout Value for LDAP authentication at Spring Boot
Do we need to define spring.profile.active in yml if declaring user defined environment variable in PCF?
Unable to run Spring boot test runner with JPA without HSQL
Spring native query executed within a transaction taking outdated value

Categories

HOME
qlikview
ckan
url
service
abc
livecharts
singleton
xss
psexec
aggregate-functions
servicenow
schema
pip
samsung-gear-s2
adroitlogic
drush
tmux
saucelabs
webseal
template10
views
accordion
opengraph
tftp
kundera
federated
ocl
boost-log
visual-studio-debugging
wercker
jsonapi-resources
tunnel
sampling
repeat
realloc
anypoint-studio
iterm2
motion
android-graphview
jvisualvm
autodesk-data-management
python-venv
niagara-ax
confluent
evaluation
e4
audio-fingerprinting
fluent-nhibernate-mapping
playframework-2.3
sp
xamarin-test-cloud
androiddesignsupport
blitz3d
portaudio
hdr
change-password
diameter-protocol
web-optimization
android-progressbar
alchemy
std
fadein
nslocalizedstring
clear
yfiles
sdkman
javapackager
log4cxx
tooltwist
eula
gmaps4jsf
maven-archetype
nfa
attiny
applinks
report-builder2.0
lwuit
powershell-v1.0
indic
scjp
jsmpp
sqldatasource
acrofields
windows-phone-store
maven-javadoc-plugin
surfaceview
sygic
raddatepicker
infinity.js
dd4t
outlook-object-model
codeigniter-form-helper
mysql2
pymel
auctex
derived-class
mysql-connector
helicontech
flexbuilder
nbehave
quazip
nstoolbar
linq-to-mysql
moores-law

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