java


Spring Boot application exits immediately when I autowire components of another jar


I have a executable jar file ("A") which has some controllers, services etc. This application depends on another project ("B") which I have added as a dependency in the application's pom file. Project B does not have any controllers. It just has some service methods.
Now, when I autowire some fields from project B in project A and then try to start project A, it exits immediately with a message
Disconnected from the target VM, address: '127.0.0.1:49447', transport: 'socket'
Process finished with exit code 1
However, when I remove the autowiring and then try to start, it starts normally. Why does this happen? Just a note that project A uses Spring 1.5, whereas project B is in Spring boot 1.3. Also, I have other projects which also use project B as a dependency, but they are working fine.
I've tried adding logs:
logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR
But it doesn't print anything.

Related Links

Excluding packages from jars in maven assembly descriptor
Performing regex on a stream
Spring bean creation via deserialization
GUI for generating XML
iTextSharp open Document as 75%
supporting migration, software build and dependency analysis
Using Protocol Buffers in Java EE?
Java - short and casting
Why does this Java code not utilize all CPU cores?
I want to use Google Map API for my Desktop application
How to create Two java webapps and mutualize jar dependencies& others files?
Can I use android.os.* libraries in a standalone project?
How can I write an anonymous function in Java?
Runtime exception when creating Bundle in JUnit test
How can I catch requests in mozswing?
Servlet requests are executed sequentially for no apparent reason in Glassfish v3

Categories

HOME
openmp
keycloak
bookshelf.js
rsync
cmd
sharepoint-designer
pivotal-cloud-foundry
enterprise-library-5
flyway4
volttron
circuit
netflix
dosgi
finite-automata
jsdoc
reactive-cocoa
google-pagespeed
tokenize
pass-by-reference
opennlp
brunch
uninstall
minitab
publish
opentype
ejabberd-module
compatibility
madlib
ghost4j
wallpaper
wpf-controls
host
ios5
qwerty
xcode-extension
multilingual
serverside-rendering
android-browser
code-search-engine
uft-api
broadcastreceiver
gzipstream
powershell-dsc
reactive-cocoa-5
qcombobox
long-polling
user-accounts
flickr-api
hibernate-tools
jquery-validate
boost-multi-index
integrity
mu
gabor-filter
git-diff
slickedit
knockout-components
sonarlint-vs
root-framework
jquery-filter
nxt
thrust
ctest
firebaseui
contact-list
phpcas
hsv
thredds
marching-cubes
qdialog
mutation-observers
content-length
0xdbe
php-ci
streambase
e10s
umbraco6
qpainter
codeigniter-url
winddk
applescript-objc
castle
google-reader
expected-exception
comexception
ember-charts
openlaszlo
fmod
ivyde
jsctypes
quartz-graphics
bulkloader
gridcontrol
seed
wsdl-2.0
automount
labwindows
hosts-file
bubble-chart
deobfuscation
recent-documents
android-sdk-2.1
blitz++
dbal
mirah
data-driven
defensive-programming

Resources

Encrypt Message