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

Issue with Spring Boot Async method
Spring Data Rest - can only create nested entities on one direction
Spring boot webapp as client of Google Oauth2
Access Https Rest Service using Spring RestTemplate (2 way SSL between client and server)
Using Spring Batch with auto-configure and a non-standard database
I have two microservice, should it have its independent embedded tomcat or one common tomcat
Spring Data rest how to perform CRUD on #manytomany relation ,composite table with extra column
#ExceptionHandler with VndErrors does not handle errors
th:classappend for appending more than one class
The right way to define an API's base path in Api Connect
501 not implemented OData
logback-spring.xml not working with goal repackage?
Setting Spring boot actuator with oAuth2 in the Authorisation server
spring rest repository resource return single object in search
Join in Spring Data JPA
Response MIME type for Spring Boot actuator endpoints

Categories

HOME
oauth-2.0
pact
joomla
internet-explorer
model-view-controller
marie
oracle-sqldeveloper
pyspark
blob
cryengine
sms
ebay
localhost
samsung-gear-s2
ephesoft
software-collections
ejb-3.0
activejdbc
aws-sdk-cpp
unreal-engine4
android-notifications
dompdf
simd
ringcentral
geography
project-structure
jq
custom-component
descriptor
grunt-contrib-uglify
knapsack-problem
continuous-fourier
typeclass
checkmarx
azure-table-storage
request-uri
jql
node-soap
jsonapi-resources
angularjs-resource
azure-vm-scale-set
kdevelop
gstreamer-1.0
rythm
stochastic-process
oracle-bpm-suite
qt-quick
cakephp-3.2
risc
spring-webflow-2
geminabox
ng-class
jcs
openidm
activesupport
sharpssh
multi-targeting
zsh-completion
mate-desktop
kik
transaction-isolation
angular-i18n
ideavim
dday
wonderware
ruby-1.8.7
android-togglebutton
screen-lock
veeam
chrome-mobile
nsq
method-overloading
xcode5
javadb
kss
parsefloat
agent-based-modeling
scjp
mvcgrid
behance-api
jsmpp
acrofields
mongoid4
xml-validation
grape-api
jython-2.5
pudb
nx
biztalk-deployment
setcookie
boost.build
antixsslibrary
certificate-revocation
django-admin-tools
erlide
idtabs
windows-xp-embedded
object-tag
n2
nstoolbar
uccapi
jgrowl
jettison

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile