Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Spring Boot Application hung while deploying on JBoss 6.4. Why?  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am working as JBoss Administrator, I have a very concerning issue related with Spring Boot 1.5.16 and JBoss 6.4 EAP.

Introduction The application is archived as War and it is contained into an EAR with another Spring Application and an Angular as well.

Problem As far I test the deploy in local, none issue appears. Although in the local environment the War is loaded correctly into JBoss, in a remote test server the run would hang during the Spring Boot Application running in this specific phase.

Despite the app is being loaded and run correctly (the whole app works), if the application is restarted, Spring Boot Application won't close its session successfully. The result is that on the new loading phase, the JVM will have doubled its resources occupied and so on.

What I did I focused essentially to this message:

It might be an issue related to multiple context initialization? I provide you with my relevant classes and I hope for your advice.


Some Details I have a JNDI Database Connection that works correctly at least in local environment. I have no web.xml. This is the springboot app sub-deployment in jboss-deployment-structure.xml

Thanks & Regards
Posts: 21466
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Why do you want to deploy a Spring Boot application in a JEE container like JBoss? The point to Spring Boot is that it runs standalone (using its own embedded container). If you want to run it in a JEE container, why not use a (regular) Spring application?
Posts: 985
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this will help what-about-the-java-ee-application-server

It still seems a little bit odd (as said above) using a framework like spring boot which was not designed (as far as I know) to run inside of a JEE server.  
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!