Geronimo
  1. Geronimo
  2. GERONIMO-4673

Geronimo cannot be run as a Windows service by configuring Java Service Wrapper

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: usability
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Sun JDK 1.6.0_17 + Windows XP + Geronimo 2.2-snapshot

      Description

      Geronimo 2.2 cannot be run as a Windows service with the help of Java Service Wrapper 3.2.3.

      Steps:
      1. Copy wrapper.exe, g_service.bat, Install_Geronimo.bat and Uninstall_Geronimo.bat to <GERONIMO_HOME>/bin.
      2. Copy wrapper.jar and wrapper.dll to <GERONIMO_HOME>/lib.
      3. Copy wrapper.conf to <GERONIMO_HOME>/var/config. The wrapper.conf file has been modified based on http://www.nabble.com/Intalio-and-Geronimo-1.1-as-a-Windows-Service-tp23778055s134p23827726.html
      4. Wrapper log reports fatal error:
      FATAL | wrapper | Unable to open configuration file. D:\geronimo-tomcat6-javaee5-2.2-SNAPSHOT\bin-

      And
      1. Install Geronimo as a Windows service by running Install_Geronimo.bat, after getting the configuration files and batch files prepared.
      2. Launch the service in Windows service tool.
      3. Error occurs: The computer cannot start the service.
      Error code 1067:The process has been terminated unexpectly.

        Activity

        Hide
        Jarek Gawor added a comment -

        From what directory did you execute the g_service.bat command? Looking at the batch files, they assume they are executed from within the <geronimo_hom>\bin directory. If you execute it from any other directory outside of that, things will fail finding the configuration file. My guess that's what is happening here. If so, we probably just need to update the documentation since in 2.2 we have a better way (non JSW based) of running Geronimo as a Windows service.

        Show
        Jarek Gawor added a comment - From what directory did you execute the g_service.bat command? Looking at the batch files, they assume they are executed from within the <geronimo_hom>\bin directory. If you execute it from any other directory outside of that, things will fail finding the configuration file. My guess that's what is happening here. If so, we probably just need to update the documentation since in 2.2 we have a better way (non JSW based) of running Geronimo as a Windows service.
        Hide
        Ying Tang added a comment -

        Yes, I launched the g_service.bat from the <geronimo_hom>\bin directory. I tried again but still without luck.
        Can someone please help verify this issue? Thanks!

        Show
        Ying Tang added a comment - Yes, I launched the g_service.bat from the <geronimo_hom>\bin directory. I tried again but still without luck. Can someone please help verify this issue? Thanks!
        Hide
        Ying Tang added a comment -

        Thanks for Bin He's help on this issue.
        This error does not occur to the current G2.2 build.
        So closing this bug as it is invalid...

        Show
        Ying Tang added a comment - Thanks for Bin He's help on this issue. This error does not occur to the current G2.2 build. So closing this bug as it is invalid...

          People

          • Assignee:
            Unassigned
            Reporter:
            Ying Tang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development