Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

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: 21954
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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: 1061
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • 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.  
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic