6 Replies Latest reply on Apr 24, 2003 9:08 AM by tjenny

    JBoss as NT service

    gajos

      hi,

      has anyone run JBoss3.0.6 as a NT (not 2k or xp) service ?
      I try using JavaService (Alexandria) but it doesn't want to install. ( sdk1.4.1_01 ) The same batch works with 2K and XP, so it doesn't contain errors,

      Michael.

        • 1. Re: JBoss as NT service
          alanmoor

          Any chance I could get your Alexandria install script for W2K? I know I will be flamed for not knowing the startup and stop methods in JBoss or the specific JVM parameters necessary. But I'd rather not have to re-invent the wheel.

          • 2. Re: JBoss as NT service
            alanmoor

            For the record, the install command I am attempting is:

            c:\jboss-3.2.0\bin\JBoss-Service.exe -install JBoss-Service C:\j2sdk1.4.0_01\jre\bin\server\jvm.dll -Djboss.class.path=;C:\j2sdk1.4.0_01\lib\tools.jar;C:\jboss-3.2.0\bin\\run.jar -Djboss.home=C:\jboss-3.2.0 -Djava.class.path=;C:\j2sdk1.4.0_01\lib\tools.jar;C:\jboss-3.2.0\bin\run.jar;C:\jboss-3.2.0\bin\shutdown.jar -Djava.home=C:\j2sdk1.4.0_01 -start org.jboss.Main -stop org.jboss.Shutdown -out C:\jboss-3.2.0\logs\stdout.log -err C:\jboss-3.2.0\logs\stderr.log -current c:\jboss-3.2.0\bin

            • 3. Re: JBoss as NT service
              andygallo.cti

              I'm using the JavaService app as well, trying to install on NT 4.0. I am using the syntax described in the JBoss Quick Start manual (v.2003-03-01). I can successfully install the service (shows up in the NT Services), but on start, the service throws a Dr. Watson.

              I am using JDK 1.4 and JBoss 3.2.0 w/ embedded Tomcat. This is my install script:

              JBossService -install JBoss %JAVA_HOME%\jre\bin\server\jvm.dll -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%\bin\out.txt -current %JBOSS_HOME%\bin

              Anyone got a clue?

              As an aside, I want to run JBoss as a service predominantly because under Windows, if the DOS window running JBoss gets a "select", it hangs the window and JBoss with it. If there's a way around this, I wouldn't necessarily need a service....

              Thanks.

              - andy

              • 4. Re: JBoss as NT service
                andygallo.cti

                By the way, the JavaService-enabled JBoss failed to start on every NT box we tried it on. On Win2K...no problem.

                Another small point of info...when using the JavaService, if you want to start JBoss in something other than the 'default' server mode, you need to pass in a -params after the -start clause. And! wants to be bare...don't think you need to put it in quotes or something. JavaService apparently knows which switches are it's, and passes thru the rest.

                Thought I'd save somebody the trouble it caused me.... 8-)

                - andy

                • 5. Re: JBoss as NT service
                  andygallo.cti

                  As an aside, I want to run JBoss as a service predominantly because under Windows, if the DOS window running JBoss gets a "select", it hangs the window and JBoss with it. If there's a way around this, I wouldn't necessarily need a service....

                  Another FYI, I got around this by turning off the console logging in log4j....

                  - andy

                  • 6. Re: JBoss as NT service
                    tjenny

                    > has anyone run JBoss3.0.6 as a NT (not 2k or xp)
                    > service ?

                    I've used Java Service Wrapper http://wrapper.tanukisoftware.org/doc/english/index.html
                    successfully under both Windows NT 4 and Windows 2K.

                    regards

                    Thomas