participate


Java Servlet - Javaservice and JBoss setup - JBoss as a windows service
<<   Back to Forum  |   Give us Feedback
This topic has 4 replies on 1 page.
colr__
Posts:69
Registered: 10/8/04
Javaservice and JBoss setup - JBoss as a windows service   
Aug 5, 2005 3:23 AM

 
I've recently had to wade through the setup of JBoss as a Windows service, and thought it would be useful if we (that is, you and me) post up the javaservice script files for other newbie?s to try, learn and understand.

To get things kicked off, if you intend to run ANY java application as a service, I woul recommend using javaservice (I did try the java service wrapper, but eventually gave up):

Information: http://www.multiplan.co.uk/software/javaservice/index.html
Download: http://forge.objectweb.org/project/showfiles.php?group_id=137
Installation: http://www.multiplan.co.uk/software/javaservice/docs/index.html

To determine which jvm DLL to use, see the following post:
http://forum.java.sun.com/thread.jspa?forumID=33&threadID=527159.

And now, here's the installation script I used (note that I rename the javaservice executable to JBossService.exe):

JBossService.exe -install JBoss 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Dprogram.name=run.bat 
-Xms128m 
-Xmx512m 
-Djava.endorsed.dirs=%JBOSS_HOME%\lib\endorsed 
-Djava.class.path="%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar" 
-start org.jboss.Main 
-stop org.jboss.Main 
-method systemExit 
-out %JBOSS_HOME%\log\stdout.log 
-err %JBOSS_HOME%\log\stderr.log


-make sure that the %JBOSS_HOME%\log directory exists.

The script above should work on any machine with JBoss installed, as long as you have JBOSS_HOME and JAVA_HOME setup correctly.
 
Panda@java
Posts:1
Registered: 5/11/07
Re: Javaservice and JBoss setup - JBoss as a windows service   
May 11, 2007 4:14 AM (reply 1 of 4)  (In reply to original post )

 
How I can send the JBOS log file to Eventlog in an operating System.
 
keshavk
Posts:1
Registered: 1/3/08
Re: Javaservice and JBoss setup - JBoss as a windows service   
Jan 3, 2008 10:41 AM (reply 2 of 4)  (In reply to original post )

 
Hello colr,
from last 2 days i a mtrying to setup jboss as a window service ...
I am through with every thing u have mentioned but there is some problem ...
I am trying to add bind.address=0.0.0.0 so thta i can access this server from other machine.
I tried every thing but nothing happened ....
do u have any solution for this..
Or anyone else who has faced the same problem ...

Cheers,
Keshav
 
VishalB
Posts:3
Registered: 2/1/08
Re: Javaservice and JBoss setup - JBoss as a windows service   
Oct 10, 2008 9:29 AM (reply 3 of 4)  (In reply to #2 )

 
hi,
I am tried to install jboss as a service on a 64 bit windows machine.
When I execute the commands that posted here i get the message jboss service installed successfully,
but when i tried to start it gave me message
"*The JBossAll Service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance Logs and Alerts service."*

Please help me to get through this.
Thanks,
 
julia_ak
Posts:1
Registered: 10/17/08
Re: Javaservice and JBoss setup - JBoss as a windows service   
Oct 17, 2008 4:34 PM (reply 4 of 4)  (In reply to #3 )

 
If you want to run JavaService on a 64-bit machine - you will need to use the 64-bit compatible version. The only one I know of so far is: JavaService-2.0.7.64.zip
You can downloaded it from: http://forge.objectweb.org/project/showfiles.php?group_id=137
Extract JavaService.exe from there. Rename it to JbossService.exe and you are good to go.
 
This topic has 4 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 29
  • Guests : 132

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums