2 Replies Latest reply on Sep 8, 2010 8:30 AM by Dimitri Herla

    Fuse ESB 4.3-fuse-00-00 wrapper:install

    Dimitri Herla Newbie

      wrapper:install generate a bad karaf-wrapper.conf.

       

      wrapper.log

       

      WrapperSimpleApp: Unable to locate the class org.apache.felix.karaf.main.Bootstrap: java.lang.ClassNotFoundException: org.apache.felix.karaf.main.Bootstrap

       

      same as thread (http://fusesource.com/forums/thread.jspa?threadID=1966)

       

      I found the JIRA issue (https://issues.apache.org/jira/browse/KARAF-84) but it's fixed.

       

      Why the fix is not in FUSE ESB 4.3

        • 1. Re: Fuse ESB 4.3-fuse-00-00 wrapper:install
          Dimitri Herla Newbie

          The install is ok but the start of the service failed.

           

          First, the generated jar (karaf-wrapper.jar) is corrupted. I have changed with the jar from a previous install (fuse-4.2).

           

          But when i start the service, i have the following error :

          C:\P06293\fuse-4.3\bin>karaf-wrapper.exe -c "C:\P06293\fuse-4.3\etc\karaf-wrapper.conf" wrapper.debug=true

          wrapper  | Working directory set to: C:\P06293\fuse-4.3

          wrapper  | --> Wrapper Started as Console

          wrapper  | Using tick timer.

          wrapperp | server listening on port 32000.

          wrapper  | Launching a JVM...

          wrapper  | command: "C:\WINDOWS\system32\java.exe" -Dkaraf.home="C:\P06293\fuse-4.3" -Dkaraf.base="C:\P06293\fuse-4.3" -Dkaraf.data="${karaf.data}" -D

          com.sun.management.jmxremote -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -Djava.endorsed.dirs="c:\jdk1.6.0_21/jre/lib/endorsed;c:\jd

          k1.6.0_21/lib/endorsed;C:\P06293\fuse-4.3/lib/endorsed" -Djava.ext.dirs="c:\jdk1.6.0_21/jre/lib/ext;c:\jdk1.6.0_21/lib/ext;C:\P06293\fuse-4.3/lib/ext"

          -Xmx512m -Djava.library.path="C:\P06293\fuse-4.3/lib/" -classpath "C:\P06293\fuse-4.3/lib/karaf-wrapper.jar;C:\P06293\fuse-4.3/lib/karaf.jar;C:\P0629

          3\fuse-4.3/lib/karaf-jaas-boot.jar;C:\P06293\fuse-4.3/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar" -

          Dwrapper.key="XfG2H0pbp6kWYWPb" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=16

          0 -Dwrapper.version="3.2.0" -Dwrapper.native_library="wrapper" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleAp

          p org.apache.karaf.main.Main

          wrapper  | JVM started (PID=2176)

          jvm 1    | WrapperManager class initialized by thread: main  Using classloader: sun.misc.Launcher$AppClassLoader@1ea2dfe

          jvm 1    | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org

          jvm 1    |

          jvm 1    | Wrapper Manager: JVM #1

          jvm 1    | Running a 32-bit JVM.

          jvm 1    | Wrapper Manager: Registering shutdown hook

          jvm 1    | Wrapper Manager: Using wrapper

          jvm 1    | Load native library.  One or more attempts may fail if platform specific libraries do not exist.

          jvm 1    | Loading native library failed: wrapper-windows-x86-32.dll  Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library

          .path

          jvm 1    | Loaded native library: wrapper.dll

          jvm 1    | Calling native initialization method.

          jvm 1    | Initializing WrapperManager native library.

          jvm 1    | Java Executable: C:\WINDOWS\system32\java.exe

          jvm 1    | Windows version: 5.1.2600

          jvm 1    | Java Version   : 1.6.0_21-b07 Java HotSpot(TM) Client VM

          jvm 1    | Java VM Vendor : Sun Microsystems Inc.

          jvm 1    |

          jvm 1    | WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@1aa9f99, args[]) called by thread: main

          jvm 1    | Open socket to wrapper...Wrapper-Connection

          jvm 1    | Opened Socket from 31000 to 32000

          jvm 1    | Send a packet KEY : XfG2H0pbp6kWYWPb

          jvm 1    | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000])

          wrapperp | accepted a socket from 127.0.0.1 on port 31000

          wrapperp | read a packet KEY : XfG2H0pbp6kWYWPb

          wrapper  | Got key from JVM: XfG2H0pbp6kWYWPb

          wrapperp | send a packet LOW_LOG_LEVEL : 1

          wrapperp | send a packet PING_TIMEOUT : 30

          wrapperp | send a packet PROPERTIES : (Property Values)

          wrapper  | Start Application.

          wrapperp | send a packet START : start

          jvm 1    | Received a packet LOW_LOG_LEVEL : 1

          jvm 1    | Wrapper Manager: LowLogLevel from Wrapper is 1

          jvm 1    | Received a packet PING_TIMEOUT : 30

          jvm 1    | Wrapper Manager: PingTimeout from Wrapper is 30000

          jvm 1    | Received a packet PROPERTIES : (Property Values)

          jvm 1    | Monitoring of the JVM thread count will be delayed for 1 seconds.

          jvm 1    | Received a packet START : start

          wrapper  | Pause reading child output to share cycles.

          jvm 1    | calling listener.start()

          jvm 1    | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete.

          jvm 1    | WrapperSimpleApp: invoking main method

          jvm 1    | Could not create framework: java.lang.StackOverflowError

          jvm 1    | java.lang.StackOverflowError

          jvm 1    |      at java.util.HashMap.put(Unknown Source)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1017)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main.Main.substVars(Main.java:1091)

          jvm 1    |      at org.apache.karaf.main

           

          I Use the following karaf-wrapper.conf :

          #********************************************************************

          1. Wrapper Properties

          #********************************************************************

          set.default.KARAF_HOME=C:\P06293\fuse-4.3

          set.default.KARAF_BASE=C:\P06293\fuse-4.3

          set.default.KARAF_DATA=${karaf.data}

           

          1. Java Application

          wrapper.working.dir=%KARAF_BASE%

          wrapper.java.command=java

          wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

          wrapper.java.classpath.1=%KARAF_BASE%/lib/karaf-wrapper.jar

          wrapper.java.classpath.2=%KARAF_HOME%/lib/karaf.jar

          wrapper.java.classpath.3=%KARAF_HOME%/lib/karaf-jaas-boot.jar

          wrapper.java.classpath.4=%KARAF_HOME%/system/org/apache/felix/org.apache.felix.framework/3.0.1/org.apache.felix.framework-3.0.1.jar

          wrapper.java.library.path.1=%KARAF_BASE%/lib/

           

          1. Application Parameters.  Add parameters as needed starting from 1

          wrapper.app.parameter.1=org.apache.karaf.main.Main

           

          1. JVM Parameters

          2. note that n is the parameter number starting from 1.

          wrapper.java.additional.1=-Dkaraf.home="%KARAF_HOME%"

          wrapper.java.additional.2=-Dkaraf.base="%KARAF_BASE%"

          wrapper.java.additional.3=-Dkaraf.data="%KARAF_DATA%"

          wrapper.java.additional.4=-Dcom.sun.management.jmxremote

          wrapper.java.additional.5=-Dkaraf.startLocalConsole=false

          wrapper.java.additional.6=-Dkaraf.startRemoteShell=true

          wrapper.java.additional.7=-Djava.endorsed.dirs="%JAVA_HOME%/jre/lib/endorsed;%JAVA_HOME%/lib/endorsed;%KARAF_HOME%/lib/endorsed"

          wrapper.java.additional.8=-Djava.ext.dirs="%JAVA_HOME%/jre/lib/ext;%JAVA_HOME%/lib/ext;%KARAF_HOME%/lib/ext"

           

          Any Idea ?

           

          Thanks in advance

          • 2. Re: Fuse ESB 4.3-fuse-00-00 wrapper:install
            Dimitri Herla Newbie

            Now It start... The problem is in the karaf-wrapper.conf. In the file, there is this line :

            set.default.KARAF_DATA=${karaf.data}

             

            But the previous line create the StackOverflow because we have the following in the start : -Dkaraf.data="${karaf.data}"

             

            I have changed to :

            set.default.KARAF_DATA=%KARAF_BASE%\data

             

            And now it's perfect.

             

            I hope it's help another people.

             

            Regards

             

            Dimitri