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 security in spring boot using oauth authentication
What is the best container for an integration/pipeline system written with Camel?
Why is my move from com.mysema.querydsl package to com.querydsl having some issues?
How to persist/commit entity to database immediately in Activiti Service Task
Spring Boot Application: File System Watcher for Many Paths
custom context path for jolokia
WebSocket client disconnect due to network loss doesn't get intercepted by Spring server
Outh2: secure dynamically created resources from unauthoriesd access, allow only assigned user
How to autowire dependency within a Spring Boot Converter?
Unable to read Logging configuration from Consul at bootstrap
Spring Data JPA bulk insertion using Spring Boot
How to manage Feign errors?
Spring Boot Security PreAuthorize 1.4.3 not working [Any authorization check fails]
Spring Boot Hyphenated Profile Names Work Inconsistently
Waffle SSO with localhost project
Springboot and thymealf loop

Categories

HOME
repository
ns2
windows-server-2008
django-middleware
mingw
google-docs-api
markdown
samsung-gear-s2
box-api
subprocess
olap
ndepend
velocity
http-status-codes
hdf5
opendaylight
dompdf
multibinding
views
civicrm
datasource
jq
webgl-earth
matlab-gui
email-client
ecmascript-2017
deployment-descriptor
jopendocument
dynamic-memory-allocation
emr
2checkout
overflow
kofax
lighting
oracle-bpm-suite
matrix-multiplication
framebuffer
mediastream
julia-jump
file-descriptor
wufoo
f#-fake
infovis
google-chrome-storage
xmldom
rivets.js
jsfl
dynamic-linking
playframework-2.3
petapoco
lattice
computed-properties
dbi
magick.net
angular-i18n
python-rq
web-optimization
producer-consumer
windows-kernel
log4cxx
xml-simple
web-standards
android-networking
method-overloading
ccmenuitem
serializer
mvcgrid
sqldatasource
connections
complete
thucydides
google-oauth-java-client
infomaker
caroufredsel
backbone-views
uikit-dynamics
servicemanager
mail-gem
databus
states
certificate-revocation
mvcmailer
win-prolog
utm
funambol
object-tag
p4.net
large-data-volumes
uccapi
datadude
retrospectiva
tracd

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App