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 Boot + Elastic Beanstalk .ebextensions in JAR
Could not load [META-INF/services/javax.xml.transform.TransformerFactory]
Spring-boot example for using JavaLoggingSystem code
Url Binding in SpringBoot
How to load property/config files from external directory in springboot
Spring Boot - Websockets - How to see subscribers
Spring boot and arguments validation
how do i replace my dirty java code with a good cassandra modelisation
eureka: how to register existing servers
i save emoji use spring.datasource.tomcat but sometimes it do not work
How to use spring security taglib with springboot and jsf?
How to remove Jackson “type” field on generics
How to test the time-dependent business logic in spring data and spring data rest projects?
Spring Boot with Embedded Undertow behind AWS ELB - HTTPS redirect
What is difference between #ImportAutoConfiguration and #Import
Spring-boot 1.5.3 fails to start with dependency that's spring 1.1.4

Categories

HOME
asp.net
ckan
salesforce
postgresql-9.3
mysqli
azure-eventhub
windows-server-2008
dronekit
xamarin.forms
apache-storm
symfony-sonata
subprocess
olap
suitecrm
email-attachments
jetbrains
chef-recipe
opendaylight
hql
reportlab
samba
orange
printf
react-jsx
jira-zephyr
akavache
stack-trace
angular2-changedetection
launchd
spock
pypy
hierarchy
ipython-parallel
r-factor
ocl
exacttarget
ios-autolayout
rtos
ilog
webspeech-api
sampling
extern
realloc
mapquest
nsdateformatter
google-chrome-console
android-graphview
autodesk-data-management
superclass
taiga
smooth-streaming
ack
serverless-architecture
appcmd
extjs3
perldoc
jenkins-docker
sharpssh
richtext
fckeditor
totalview
nsalert
breadcrumbs
computed-properties
change-password
angularfire
hotkeys
bbedit
firefox-os
videoview
wiql
angular-promise
log4cxx
pdcurses
photogrammetry
cakephp-2.6
fileinputstream
system.diagnostics
nexusdb
douglas-peucker
sony-xperia
iphone-6
drools-guvnor
mind-manager
redmine-plugins
javacompiler
disparity-mapping
time-frequency
satisfiability
mobile-robots
sygic
cab
objectdatasource
violation
maven-webstart-plugin
biztalk-deployment
correctness
invalidoperationexception
big-endian
shapado
optimistic-concurrency
datasheet
xhtmlrenderer
llblgen
script-tag
vista64

Resources

Encrypt Message