Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting JBoss as windows service.

 
krishnamohan murugesan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss 4.0.5GA.I want to start JBoss as windows service so that
whenever i restart JBoss gets automatically started.how to do it?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
krishnamohan,

Welcome to JavaRanch

Follow these instructions for starting JBoss as a service using JBossNative. You can download the appropriate JBossNative version from here
 
krishnamohan murugesan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jai.
But while starting JBoss as windows service i got an error message that JAVA_HOME is not set.But i has configured in system path and when i start JBoss using run.bat there is no problem.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by krishnamohan murugesan:

But while starting JBoss as windows service i got an error message that JAVA_HOME is not set.


Please post the entire error message that you see. Where do you see this error message? Try setting the JAVA_HOME in the run.bat and see if it works. Here's a small portion from the run.bat, in which i am setting the JAVA_HOME:

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When setting JAVA_HOME, make sure you set it in the "System variables" and not in "User variables for xxx". If you run the JBossAS service as the SYSTEM account, or under its own account, it will prick up the "System variables' but not the user variables for your account.
 
krishnamohan murugesan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank all.
Initially i has set JAVA_HOME in user variables..now it is working fine.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic