3 Replies Latest reply on Jul 14, 2006 2:55 AM by Henry Chiong

    Running JBoss as a windows service

    Henry Chiong Newbie


      I've created a JBoss windows service using JavaService.exe. When I start the service I've noticed that a new server gets created pre-pended by an extra space. Is this normal? or is my windows service setup incorrectly?

      Here is the syntax for creating the service:
      JavaService.exe -install JBoss C:\Java\jdk1.5.0_05\jre\bin\server\jvm.dll -Djava.class.path=D:\jboss-4.0.2\bin\run.jar;C:\Java\jdk1.5.0_05\lib\tools.jar -start org.jboss.Main -method main -params "-c test" -stop org.jboss.Main -method systemExit -out D:\jboss-4.0.2\server\log\out.log -err D:\jboss-4.0.2\server\log\err.log -current D:\jboss-4.0.2\bin -manual

        • 1. Re: Running JBoss as a windows service
          Michael Congdon Newbie

          Did you ever get a resolution to this? I'm seeing the same thing (used JavaService 2.0.9 for our install). The out.log has shows FileNotFoundExceptions for all files our application tries to load...for example...

          java.io.FileNotFoundException: C:\dev\jboss\JBoss-4.0.3SP1_Tomcat-5.5_SSL\server\ jackson\conf\server.properties"

          Notice that there's a space before the word jackson...so it's actually " jackson".

          Does anyone have a resolution for this?

          FYI, during the install command, we added the following parameter

          .... -start org.jboss.Main -params "-c jackson" ....

          This will NOT work if we pass any of the following for the -params argument:
          "-c jackson"
          "-c 'jackson'"

          Please help.

          Thanks in advance,

          • 2. Re: Running JBoss as a windows service
            James Rhodes Newbie

            This post is old but hopefully this will help.
            I just went through this and your problem is that the -params " -c all" must be broken up into seperate params. It should be -params "-c" "all"

            Hope this helps someone. I first got the service installed, but it was using the default server not the "all" server as I needed.


            • 3. Re: Running JBoss as a windows service
              Henry Chiong Newbie

              I solved my problem by removing the quotes from the parameter.