• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
Greenhorn
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.

ServletInitializer.class


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
Camillelola
 
Sheriff
Posts: 21788
104
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?
 
Bartender
Posts: 1035
18
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.  
 
Men call me Jim. Women look past me to this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!