Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 2000 Professional
      JDK1.5.0_04

      Description

      When trying to launch the service (installed with the supplyed wrapper), the wrapper throws an exception:

      STATUS | wrapper | 2006/03/23 12:52:59 | Launching a JVM...
      INFO | jvm 1 | 2006/03/23 12:52:59 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperListener

        Activity

        Hide
        Stefano Bagnara added a comment -

        The problem is that DaemonLauncher look for
        org.tanukisoftware.wrapper.WrapperListener
        while we bundle an older wrapper:
        com.silveregg.wrapper.WrapperListener

        Can you try downloading the 3.x wrapper from
        http://wrapper.tanukisoftware.org/
        and replace your bin/wrapper.* stuff with the updated ones?

        Show
        Stefano Bagnara added a comment - The problem is that DaemonLauncher look for org.tanukisoftware.wrapper.WrapperListener while we bundle an older wrapper: com.silveregg.wrapper.WrapperListener Can you try downloading the 3.x wrapper from http://wrapper.tanukisoftware.org/ and replace your bin/wrapper.* stuff with the updated ones?
        Hide
        Tony Freeman added a comment -

        Downloaded the 3.2 wrapper and replaced the bin/wrapper.* (.dll, .jar, .exe) stuff with same files from the downloaded file.

        Now this error during wrapper startup...
        STATUS | wrapper | 2006/03/24 09:15:07 | --> Wrapper Started as Service STATUS | wrapper | 2006/03/24 09:15:07 | Launching a JVM...
        INFO | jvm 1 | 2006/03/24 09:15:09 | Wrapper (Version 3.2.0)
        http://wrapper.tanukisoftware.org
        INFO | jvm 1 | 2006/03/24 09:15:09 |
        INFO | jvm 1 | 2006/03/24 09:15:09 | Error in WrapperListener.start
        callback. java.lang.NoClassDefFoundError:
        org/apache/avalon/excalibur/i18n/ResourceManager
        INFO | jvm 1 | 2006/03/24 09:15:09 | java.lang.NoClassDefFoundError:
        org/apache/avalon/excalibur/i18n/ResourceManager
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.apache.avalon.phoenix.frontends.CLIMain.<clinit>(CLIMain.java:85)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        java.lang.reflect.Constructor.newInstance(Unknown Source)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        java.lang.Class.newInstance0(Unknown Source)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        java.lang.Class.newInstance(Unknown Source)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.apache.avalon.phoenix.launcher.Main.startup(Main.java:125)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.apache.avalon.phoenix.launcher.DaemonLauncher.start(DaemonLauncher.java:
        110)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:290
        9)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3
        761)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4158)
        INFO | jvm 1 | 2006/03/24 09:15:09 | at
        java.lang.Thread.run(Unknown Source)
        INFO | wrapperp | 2006/03/24 09:15:09 | port 15012 already in use, using
        port 32000 instead.
        STATUS | wrapper | 2006/03/24 09:15:10 | <-- Wrapper Stopped

        Show
        Tony Freeman added a comment - Downloaded the 3.2 wrapper and replaced the bin/wrapper.* (.dll, .jar, .exe) stuff with same files from the downloaded file. Now this error during wrapper startup... STATUS | wrapper | 2006/03/24 09:15:07 | --> Wrapper Started as Service STATUS | wrapper | 2006/03/24 09:15:07 | Launching a JVM... INFO | jvm 1 | 2006/03/24 09:15:09 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2006/03/24 09:15:09 | INFO | jvm 1 | 2006/03/24 09:15:09 | Error in WrapperListener.start callback. java.lang.NoClassDefFoundError: org/apache/avalon/excalibur/i18n/ResourceManager INFO | jvm 1 | 2006/03/24 09:15:09 | java.lang.NoClassDefFoundError: org/apache/avalon/excalibur/i18n/ResourceManager INFO | jvm 1 | 2006/03/24 09:15:09 | at org.apache.avalon.phoenix.frontends.CLIMain.<clinit>(CLIMain.java:85) INFO | jvm 1 | 2006/03/24 09:15:09 | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) INFO | jvm 1 | 2006/03/24 09:15:09 | at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) INFO | jvm 1 | 2006/03/24 09:15:09 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) INFO | jvm 1 | 2006/03/24 09:15:09 | at java.lang.reflect.Constructor.newInstance(Unknown Source) INFO | jvm 1 | 2006/03/24 09:15:09 | at java.lang.Class.newInstance0(Unknown Source) INFO | jvm 1 | 2006/03/24 09:15:09 | at java.lang.Class.newInstance(Unknown Source) INFO | jvm 1 | 2006/03/24 09:15:09 | at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:125) INFO | jvm 1 | 2006/03/24 09:15:09 | at org.apache.avalon.phoenix.launcher.DaemonLauncher.start(DaemonLauncher.java: 110) INFO | jvm 1 | 2006/03/24 09:15:09 | at org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:290 9) INFO | jvm 1 | 2006/03/24 09:15:09 | at org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3 761) INFO | jvm 1 | 2006/03/24 09:15:09 | at org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4158) INFO | jvm 1 | 2006/03/24 09:15:09 | at java.lang.Thread.run(Unknown Source) INFO | wrapperp | 2006/03/24 09:15:09 | port 15012 already in use, using port 32000 instead. STATUS | wrapper | 2006/03/24 09:15:10 | <-- Wrapper Stopped
        Hide
        Tony Freeman added a comment -

        Above after removing wrapper.pidfile from wrapper.conf

        Stefano suggested the following...
        Try to copy the excalibur-i18n-1.0.jar from phoenix-bin\tools\lib to your lib folder.

        Completed this and now getting this error...
        PHOENIX LOG...
        INFO 2006-03-24 10:06:49.894 [Phoenix ] (): Logger started

        WRAPPER LOG...
        STATUS | wrapper | 2006/03/24 10:06:48 | --> Wrapper Started as Service STATUS | wrapper | 2006/03/24 10:06:48 | Launching a JVM...
        INFO | jvm 1 | 2006/03/24 10:06:49 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org
        INFO | jvm 1 | 2006/03/24 10:06:49 |
        INFO | jvm 1 | 2006/03/24 10:06:49 |
        INFO | jvm 1 | 2006/03/24 10:06:49 | Phoenix 4.2
        INFO | jvm 1 | 2006/03/24 10:06:49 |
        INFO | jvm 1 | 2006/03/24 10:06:50 | There was an uncaught exception:
        INFO | jvm 1 | 2006/03/24 10:06:50 | ---------------------------------------------------------
        INFO | jvm 1 | 2006/03/24 10:06:50 | — Message —
        INFO | jvm 1 | 2006/03/24 10:06:50 | org/apache/avalon/phoenix/containerkit/profile/ProfileBuilder
        INFO | jvm 1 | 2006/03/24 10:06:50 | — Stack Trace —
        INFO | jvm 1 | 2006/03/24 10:06:50 | java.lang.NoClassDefFoundError: org/apache/avalon/phoenix/containerkit/profile/ProfileBuilder
        INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Class.forName0(Native Method)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Class.forName(Unknown Source)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponents(DefaultEmbeddor.java:471)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:243)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.reflect.Method.invoke(Unknown Source)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.launcher.DaemonLauncher.start(DaemonLauncher.java:110)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:2909)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3761)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4158)
        INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Thread.run(Unknown Source)
        INFO | jvm 1 | 2006/03/24 10:06:50 |
        INFO | jvm 1 | 2006/03/24 10:06:50 | ---------------------------------------------------------
        INFO | jvm 1 | 2006/03/24 10:06:50 | The log file may contain further details of error.
        INFO | jvm 1 | 2006/03/24 10:06:50 | Please check the configuration files and restart Phoenix.
        INFO | jvm 1 | 2006/03/24 10:06:50 | If the problem persists, contact the Avalon project. See
        INFO | jvm 1 | 2006/03/24 10:06:50 | http://jakarta.apache.org/avalon for more information.

        Show
        Tony Freeman added a comment - Above after removing wrapper.pidfile from wrapper.conf Stefano suggested the following... Try to copy the excalibur-i18n-1.0.jar from phoenix-bin\tools\lib to your lib folder. Completed this and now getting this error... PHOENIX LOG... INFO 2006-03-24 10:06:49.894 [Phoenix ] (): Logger started WRAPPER LOG... STATUS | wrapper | 2006/03/24 10:06:48 | --> Wrapper Started as Service STATUS | wrapper | 2006/03/24 10:06:48 | Launching a JVM... INFO | jvm 1 | 2006/03/24 10:06:49 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2006/03/24 10:06:49 | INFO | jvm 1 | 2006/03/24 10:06:49 | INFO | jvm 1 | 2006/03/24 10:06:49 | Phoenix 4.2 INFO | jvm 1 | 2006/03/24 10:06:49 | INFO | jvm 1 | 2006/03/24 10:06:50 | There was an uncaught exception: INFO | jvm 1 | 2006/03/24 10:06:50 | --------------------------------------------------------- INFO | jvm 1 | 2006/03/24 10:06:50 | — Message — INFO | jvm 1 | 2006/03/24 10:06:50 | org/apache/avalon/phoenix/containerkit/profile/ProfileBuilder INFO | jvm 1 | 2006/03/24 10:06:50 | — Stack Trace — INFO | jvm 1 | 2006/03/24 10:06:50 | java.lang.NoClassDefFoundError: org/apache/avalon/phoenix/containerkit/profile/ProfileBuilder INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Class.forName0(Native Method) INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Class.forName(Unknown Source) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.createComponents(DefaultEmbeddor.java:471) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.initialize(DefaultEmbeddor.java:243) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.startup(CLIMain.java:234) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:162) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:145) INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2006/03/24 10:06:50 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:128) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.apache.avalon.phoenix.launcher.DaemonLauncher.start(DaemonLauncher.java:110) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.startInner(WrapperManager.java:2909) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3761) INFO | jvm 1 | 2006/03/24 10:06:50 | at org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4158) INFO | jvm 1 | 2006/03/24 10:06:50 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2006/03/24 10:06:50 | INFO | jvm 1 | 2006/03/24 10:06:50 | --------------------------------------------------------- INFO | jvm 1 | 2006/03/24 10:06:50 | The log file may contain further details of error. INFO | jvm 1 | 2006/03/24 10:06:50 | Please check the configuration files and restart Phoenix. INFO | jvm 1 | 2006/03/24 10:06:50 | If the problem persists, contact the Avalon project. See INFO | jvm 1 | 2006/03/24 10:06:50 | http://jakarta.apache.org/avalon for more information.
        Hide
        Stefano Bagnara added a comment -

        Try copying the phenix-tools.jar to the lib dir too.
        Actually, try to copy all the tools/lib jars to the lib or try to find out how to add them to your boot classpath.

        Show
        Stefano Bagnara added a comment - Try copying the phenix-tools.jar to the lib dir too. Actually, try to copy all the tools/lib jars to the lib or try to find out how to add them to your boot classpath.
        Hide
        Stefano Bagnara added a comment -

        in the wrapper.conf you can find a:
        wrapper.java.additional.1=-Djava.ext.dirs=../lib
        try to add the tools/lib folder to the ext.dirs

        Show
        Stefano Bagnara added a comment - in the wrapper.conf you can find a: wrapper.java.additional.1=-Djava.ext.dirs=../lib try to add the tools/lib folder to the ext.dirs
        Hide
        Tony Freeman added a comment -

        Ok, Started with the last suggestion...
        1st Tried:
        wrapper.java.additional.1=-Djava.ext.dirs=../lib
        wrapper.java.additional.2=-Djava.ext.dirs=../tools/lib
        wrapper*.3 etc...
        Did not work; JVM could not find files in the first directory

        2nd Tried:
        wrapper.java.additional.1=-Djava.ext.dirs=../lib ; ../tools/lib
        Did not work; JVM could not find ///tools/lib ?

        The iterations could take forever, so I aborted and just copied all files from tools/lib to lib folder.
        The service started without any errors. I have confirmed that there are no errors in any logs.

        I will keep looking for the wrapper.conf solution but I am not a Java programmer...not much of a programmer at all...

        I wish I could help you with the closing the issue, but I am just not familiar with the coding or the systems...

        Show
        Tony Freeman added a comment - Ok, Started with the last suggestion... 1st Tried: wrapper.java.additional.1=-Djava.ext.dirs=../lib wrapper.java.additional.2=-Djava.ext.dirs=../tools/lib wrapper*.3 etc... Did not work; JVM could not find files in the first directory 2nd Tried: wrapper.java.additional.1=-Djava.ext.dirs=../lib ; ../tools/lib Did not work; JVM could not find ///tools/lib ? The iterations could take forever, so I aborted and just copied all files from tools/lib to lib folder. The service started without any errors. I have confirmed that there are no errors in any logs. I will keep looking for the wrapper.conf solution but I am not a Java programmer...not much of a programmer at all... I wish I could help you with the closing the issue, but I am just not familiar with the coding or the systems...
        Hide
        Stefano Bagnara added a comment -

        I will test the wrapper.conf thing when I'll try to close this.
        Thank you for your tests! Happy to know we can use the latest wrapper (memo for me: need to check wrapper license).

        Show
        Stefano Bagnara added a comment - I will test the wrapper.conf thing when I'll try to close this. Thank you for your tests! Happy to know we can use the latest wrapper (memo for me: need to check wrapper license).
        Hide
        Stefano Bagnara added a comment -

        From my tests your 2nd try should have worked.

        Show
        Stefano Bagnara added a comment - From my tests your 2nd try should have worked.
        Hide
        Danny Angus added a comment -

        Closing issue fixed in released version.

        Show
        Danny Angus added a comment - Closing issue fixed in released version.

          People

          • Assignee:
            Stefano Bagnara
            Reporter:
            carlos aviles
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development