Win a copy of Head First Go this week in the Go 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Eclipse IDE and JBOSS for my Spring project  RSS feed

 
Greenhorn
Posts: 4
  • 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: 9861
199
  • 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.
 
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!