1 2 Previous Next 19 Replies Latest reply on Oct 28, 2002 3:31 PM by vsingh

    How to run JBoss as NT service?

    hlehtimaki

      I successfully installed JBoss as an NT service with JNT
      using command

      JNT /InstallAsService:JBoss /SDD:\JBoss-2.2.2_Tomcat-3.2.2\jboss\bin org.jboss.Main tomcat

      but when I try to start the I get an NT error message

      Error 0005: Access is denied

      Can anyone help me with this?

      Harri

        • 1. Re: How to run JBoss as NT service?
          robertmcl

          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

            Is "jnt" a tool availble for XP Pro too?

            • 3. Re: How to run JBoss as NT service?
              greg1960

              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

                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

                  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

                    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

                      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

                        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

                          ---------------------------------
                          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

                            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

                              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?

                                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

                                  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

                                    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

                                    1 2 Previous Next