• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
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: 21602
101
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?
 
Bartender
Posts: 1002
16
Java Linux Mac OS X Spring VI Editor
  • 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.  
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!