Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Eclipse IDE and JBOSS for my Spring project  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have set up my codebase in Eclipse IDE 4.4.
I have JBOSS EAP6.1 set up in it.

In my code, in the web.xml, I am referring to JBOSS's homepath which is C:\Tools\jboss-eap-6.1.0-QA\jboss-eap-6.1.0-QA.

As this appears in another context file of my spring project code, so I am referring to JBOSS's home path using ${JBOSS_HOME} in the xml files and have set up classpath variable JBOSS_HOME which points to the above path.

The JBOSS server was running fine and was able to detect JBOSS_HOME placeholder in the code, however, suddenly after deploying an updated .war, and restarting it, it started failing to identify this ${JBOSS_HOME} placeholder in the deployed code.
I have double checked the set up of the classpath variable in eclipse and it is set up correctly.
I have also verified this in my workspace's ".metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.core.prefs file which has the below set up -

org.eclipse.jdt.core.classpathVariable.JBOSS_HOME=C\:/Tools/jboss-eap-6.1.0-QA/jboss-eap-6.1.0-QA

Can some one please help me out in understanding this sudden change of behaviour of the JBOSS server and what could have gone wrong?
 
Saloon Keeper
Posts: 10104
212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you referring to the JBOSS_HOME variable from your code at all? Why is it in your web.xml? Normally you would configure your application containers in your IDE settings, including their locations, and then configure the Eclipse project which pre-configured application container to use when running the project. The application itself should be completely oblivious of where it is deployed.
 
Pupa Chaudhuri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found an interim solution for this.
I have updated the JBOSS server configuration xml (standalone.xml) in my local to have an additional system property by the name JBOSS_HOME.
This is only in my local though.
In higher environments, there is no such system property in the configuration xml, and I am trying to figure out how does this variable gets it value.
 
I was born with webbed fish toes. This tiny ad is my only friend:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!