-
1. Re: How to run JBoss as NT service?
robertmcl Feb 7, 2002 5:20 AM (in response to hlehtimaki)You also need to set some system properties in order for JBoss to start. I used the following command and it works fine on my system.
jnt /InstallAsService:JBoss /SDd:\jboss\bin -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Djava.class.path=d:\jboss\bin\run.jar;d:\jboss\lib\crimson.jar org.jboss.Main tomcat -
2. Re: How to run JBoss as NT service?
florin_g Feb 8, 2002 4:25 PM (in response to hlehtimaki)Is "jnt" a tool availble for XP Pro too?
-
3. Re: How to run JBoss as NT service?
greg1960 Mar 6, 2002 3:43 PM (in response to hlehtimaki)I tried these same parameters but the services starts and then stops within a few seconds. Ever experience these problems?
-
4. Re: How to run JBoss as NT service?
greg1960 Mar 6, 2002 7:18 PM (in response to hlehtimaki)I got both Tomcat and JBoss running as an NT service both individually and in the integrated deployment. I used a product from the following link:
http://www.alexandriasc.com/software/JavaService/index.html
I've also attached the batch files that I used.
Good Luck! -
5. Re: How to run JBoss as NT service?
greg1960 Mar 6, 2002 7:19 PM (in response to hlehtimaki)Additional Info
run_svc.bat - JBoss 2.4.1
tomcat_svc.bat - Tomcat 3.3a
jboss.cmd - JBoss2.4.3/Tomcat 4.01 -
6. Re: How to run JBoss as NT service?
greg1960 Mar 6, 2002 7:21 PM (in response to hlehtimaki)One last point, you may need to modify the batch files to add drive letters. When NT loads the service it may not be able to find necessary files unless they are on the C: drive. I will update the files later.
-
7. Re: How to run JBoss as NT service?
saar Mar 7, 2002 4:35 AM (in response to hlehtimaki)I've created a JBoss service using VC 6.0 ATL.
I'm attaching the Installation exe.
You just need to select the jboss bin directory and off it goes.... (You'll have to have JRE version 1.3.1 or higher!)
You can adjust the start parameters by changing them in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\SAARC\... -
8. Re: How to run JBoss as NT service?
venkat Jun 24, 2002 2:29 AM (in response to hlehtimaki)Hai,
i came to know that u have implemented jboss and tomcat service.i need more details from u as i am desperately trying for this.i am getting error"No class deffounderro"
while running as aservice.can u send me the details to rchowdary@citl-org.com i am using D:\JBoss-2.2.2_Tomcat-3.2.2 -
9. Re: How to run JBoss as NT service?
venkat Jun 26, 2002 5:27 AM (in response to hlehtimaki)---------------------------------
06/26/02 12:20:52 -
---------------------------------
Now starting Java Service Launcher V1.0.1 beta
Copyright (C) 2000 by eWorkSmart, LLC
06/26/02 12:20:52 - Executing JVM Command: JBossMasam1 /SDd:\jboss-2.2.2_tomcat-3.2.2\jboss\bin -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Djava.class.path=d:\jboss-2.2.2_tomcat-3.2.2\jboss\bin\run.jar;d:\jboss-2.2.2_tomcat-3.2.2\jboss\lib\crimson.jar org.jboss.Main tomcat
06/26/02 12:20:52 - Shutting down service...
06/26/02 12:20:52 -
---------------------------------
This is the error i am getting when i am trying to run JBoss as an NT service.JVM is shutting down automatically
whenver i start Jboss as a service.I am USing JNT Toll for this.can anybody help me its very urgent.atleast mail
the procedure to rchowdary@citl-org.com.any help would be greatly appreciated.i need entire procedure. -
10. Re: How to run JBoss as NT service?
venkat Jun 26, 2002 5:33 AM (in response to hlehtimaki)06/26/02 12:20:52 -
---------------------------------
Now starting Java Service Launcher V1.0.1 beta
Copyright (C) 2000 by eWorkSmart, LLC
06/26/02 12:20:52 - Executing JVM Command: JBossMasam1 /SDd:\jboss-2.2.2_tomcat-3.2.2\jboss\bin -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Djava.class.path=d:\jboss-2.2.2_tomcat-3.2.2\jboss\bin\run.jar;d:\jboss-2.2.2_tomcat-3.2.2\jboss\lib\crimson.jar org.jboss.Main tomcat
06/26/02 12:20:52 - Shutting down service...
06/26/02 12:20:52 -
---------------------------------
This is the error i am getting when i am trying to run JBoss as an NT service.JVM is shutting down automatically
whenver i start Jboss as a service.I am USing JNT Tool for this.can anybody help me its very urgent.atleast mail
the procedure to rchowdary@citl-org.com.any help would be greatly appreciated.i need entire procedure. MY JVM is jre1.4.0 -
11. Re: How to run JBoss as NT service?
venkat Jun 26, 2002 5:35 AM (in response to hlehtimaki)06/26/02 12:20:52 -
---------------------------------
Now starting Java Service Launcher V1.0.1 beta
Copyright (C) 2000 by eWorkSmart, LLC
06/26/02 12:20:52 - Executing JVM Command: JBossMasam1 /SDd:\jboss-2.2.2_tomcat-3.2.2\jboss\bin -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Djava.class.path=d:\jboss-2.2.2_tomcat-3.2.2\jboss\bin\run.jar;d:\jboss-2.2.2_tomcat-3.2.2\jboss\lib\crimson.jar org.jboss.Main tomcat
06/26/02 12:20:52 - Shutting down service...
06/26/02 12:20:52 -
---------------------------------
This is the error i am getting when i am trying to run JBoss as an NT service.JVM is shutting down automatically
whenver i start Jboss as a service.I am USing JNT Tool for this.can anybody help me its very urgent.atleast mail
the procedure to rchowdary@citl-org.com.any help would be greatly appreciated.i need entire procedure. MY JVM is jre1.4.0 -
12. Re: How to run JBoss as NT service?
jmoring Jun 26, 2002 2:13 PM (in response to hlehtimaki)Try Alexandria instead. I have used both. I think Alexandria is much better. JNT appears to be a dead project.
http://www.alexandriasc.com/software/JavaService/index.html -
13. Re: How to run JBoss as NT service?
sieve Jul 1, 2002 8:55 PM (in response to hlehtimaki)Here's one example that works. Install JBoss in c:\web, Install the JDK in c:\j\jdk, then copy JavaService.exe to c:\web\bin, then create and then execute this batch file:
@echo off
c:\web\bin\JBoss.exe -install JBoss c:\j\jdk\jre\bin\server\jvm.dll -Djava.class.path=c:\j\jdk\lib\tools.jar;c:\web\bin\run.jar;c:\web\bin\shutdown.jar -Dprogram.name=run.bat -start org.jboss.Main -stop org.jboss.Shutdown -out c:\web\server\default\log\stdout.log -err c:\web\server\default\log\stderr.log -
14. Re: How to run JBoss as NT service?
sieve Jul 1, 2002 9:25 PM (in response to hlehtimaki)One example with Alexandria is install JBoss to c:\web, install JDK to c:\j\jdk, copy the JavaService.exe to c:\web\bin\JBoss.exe, then run this command to install:
c:\web\bin\JBoss.exe -install JBoss c:\j\jdk\jre\bin\server\jvm.dll -Djava.class.path=c:\j\jdk\lib\tools.jar;c:\web\bin\run.jar;c:\web\bin\shutdown.jar -Dprogram.name=run.bat -start org.jboss.Main -stop org.jboss.Shutdown -out c:\web\server\default\log\stdout.log -err c:\web\server\default\log\stderr.log
and run this command to uninstall:
c:\web\bin\JBoss.exe -uninstall JBoss