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

What is the lifespan of a Spring Boot #RestController and an injected #Service?
Springboot 1.5.1 Upgrade - MVC Exception Handling Issues
spring boot logback rolling file append-er not working
how to map <jsp-file> tag when configuring servlets programmatically in spring boot
how to add count of row wrote in Spring Batch Footer
Handle SOAP BAD Request when request body contains reservered character like &,<,>
Spring Batch Java Config JobLauncherTestUtils
How to pull sub, sub objects with Spring WS and JAXB
Netflix Arcaius serving as config service for multiple Spring Boot micro-services
SLF4J+Logback to create a file if doesn't exists/ if deleted
How to get the version of spring boot in the /info actuator end point
Keycloak spring boot configuration for client roles
Correct use of Hazelcast Transactional Map in an Spring Boot app
Springboot In memory hsqlDb cannot see tables from sql browser
Spring Boot - can't start with embedded tomcat error
eureka client discovery and support for transactions

Categories

HOME
reactjs
skype-for-business
stanford-nlp
android-ndk
salesforce-lightning
singleton
squeak
vsixmanifest
angular-universal
comma
android-notifications
react-select
infopath
dompdf
amazon-data-pipeline
google-calendar-api3
printf
aws-devicefarm
fibonacci
pushbullet
infinite-loop
struts
resx
azure-table-storage
csproj
osgi-bundle
edirectory
schedule
ibm-bpm
jql
kubectl
qt-designer
matrix-multiplication
instances
mockserver
sknode
collation
cakephp-3.2
taleo
niagara-ax
history
lucee
aws-rds
dmalloc
disassembly
therubyracer
spring-social-twitter
glade
scikit-image
universe
foreground
jira-agile
boost-propertytree
mod
cascading
overlapping
autoscaling
waterline
jeet-grid
esri-arc-engine
kss
conditional-comments
gnip
livescript
scjp
django-tests
webshim
rssi
pthreads-win32
node-mongodb-native
octokit
ojb
typography
pyxplot
latex-suite
pudb
dnsbl
nsregularexpression
libx264
openafs
waveout
winrt-async
jquery-ui-map
bash4
diazo
httppostedfilebase
peoplepicker
norton
azure-appfabric
calendarextender
focus-stealing
file-storage
pixel-bender
ihtmldocument2
opengl-to-opengles

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile