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

#SpringBootApplication cannot be resolved to a type. I have tried everything but only this error remains
SAML AuthnResponse not being decoded after successful authentication
spring boot mail cannot find JavaMailSender to autowire
How to have multiple spring boot applications in one repository?
Lock Error in Hibernate Search
spring boot jms component used with Camel framework throws connection factory not found in hornetq live backup pair setup
Read More than millions record in cassandra [duplicate]
How to get the SPRING Boot HOST and PORT address during run time?
Use Thymeleaf to check for specific Stormpath group membership
Return list of String using jdbctemplate , preparedstatement
overriding a specific spring boot health indicator
How to register with Eureka,in non-jvm languages(e.g. erlang,php)?
How to implement multiple SFDC Outbound Message receivers in the same Spring service?
Spring boot Kafka Camel Avro consumer
Spring kundera cassandra
spring boot 1.3.5 with mybatis-spring-boot-starter 1.1.1 upgrade to spring boot 1.4.0 get error

Categories

HOME
c#
logging
kendo-ui
mysqli
pelican
assign
schema
box-api
cracking
coding-style
google-my-business-api
facebook-sharer
resharper
virtualenv
cakephp-2.0
element
hql
bookmarklet
web-parts
android-actionbar
ampscript
inline-assembly
android-wear-2.0
android-xml
traveling-salesman
android-6.0-marshmallow
git-submodules
spock
openoffice-impress
deferred
jql
spring-oauth2
kubectl
jcr
scene7
apache-falcon
matlab-compiler
geocomplete
abide
mapquest
lfe
ng-lightning
susy
piranha-cms
activeandroid
text-formatting
easyquery
hdpi
intermediate-language
htop
aot
hellosign
totalview
zedgraph
acceleo
group
addressbook
zsh-completion
x12
laterjs
containstable
php-gd
persian
xml-simple
eula
avd
copy-on-write
veeam
touch-typing
fiware-health
fscanf
nspopupbutton
slimscroll
dayofweek
windows-phone-store
android-jack-and-jill
imaplib
xcode5.1
cab
kohana-orm
outlook-object-model
codeigniter-form-helper
reference-manual
auctex
report-viewer2010
webpage-screenshot
waveout
optimistic-concurrency
advanceddatagrid
automapper-2
vectorwise
cryptolicensing
rollover
virtual-destructor
browser-state
newspeak
hp-trim
wtsapi32
httpbrowsercapabilities
j++
moores-law
hotfix

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