If you are running under Linux (or any other non-Windows OS) you need to
remove the quotes from the path parameters and then the relative paths will
work.  This is an odditiy in Tanuki wrapper IIRC.

wrapper.java.additional.1=-Dderby.system.home=var
wrapper.java.additional.2=-Dderby.storage.fileSyncTransactionLog=true
wrapper.java.additional.3=-Dcom.sun.management.jmxremote
wrapper.java.additional.4=-Dclassworlds.conf=conf/servicemix.conf
wrapper.java.additional.5=-Dservicemix.home=.
wrapper.java.additional.6=-Djava.endorsed.dirs=lib/endorsed
wrapper.java.additional.7=-server


Cheers,
Chris

On 8/24/07, Kit Plummer <[EMAIL PROTECTED]> wrote:
>
> This is what worked for me:
>
> #********************************************************************
> # Wrapper Properties
> #********************************************************************
> # Java Application
> wrapper.java.command=java
>
> # Java Main class.  This class must implement the WrapperListener
> interface
> #  or guarantee that the WrapperManager class is initialized.  Helper
> #  classes are provided to do this for you.  See the Integration section
> #  of the documentation for details.
> wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
> wrapper.app.parameter.1=org.codehaus.classworlds.Launcher
> wrapper.app.parameter.2=conf/Minimum.xml
>
> # Java Classpath (include wrapper.jar)  Add class path elements as
> #  needed starting from 1
> wrapper.java.classpath.1=../lib/wrapper.jar
> wrapper.java.classpath.2=../lib/classworlds-1.0.1.jar
> wrapper.java.classpath.3=../.
> wrapper.java.classpath.4=../conf
> wrapper.java.classpath.5=.
>
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=../lib
>
> # Java Additional Parameters
> #wrapper.java.additional.1=
> wrapper.java.additional.1=-server
> wrapper.java.additional.2=-Dderby.system.home="var"
> wrapper.java.additional.3=-Dderby.storage.fileSyncTransactionLog=true
> wrapper.java.additional.4=-Dcom.sun.management.jmxremote
> wrapper.java.additional.5=-Dservicemix.home=/home/tsb/deploy
>
> wrapper.java.additional.6=-Dclassworlds.conf=/home/tsb/deploy/conf/servicemix.conf
> wrapper.java.additional.7=-Djava.endorsed.dirs="lib/endorsed"
>
>
> # Initial Java Heap Size (in MB)
> wrapper.java.initmemory=64
>
> # Maximum Java Heap Size (in MB)
> wrapper.java.maxmemory=512
>
> #********************************************************************
> # Wrapper Logging Properties
> #********************************************************************
> # Format of output for the console.  (See docs for formats)
> wrapper.console.format=PM
>
> # Log Level for console output.  (See docs for log levels)
> wrapper.console.loglevel=INFO
>
> # Log file to use for wrapper output logging.
> wrapper.logfile=../data/log/wrapper.log
>
> # Format of output for the log file.  (See docs for formats)
> wrapper.logfile.format=LPTM
>
> # Log Level for log file output.  (See docs for log levels)
> wrapper.logfile.loglevel=INFO
>
> # Maximum size that the log file will be allowed to grow to before
> #  the log is rolled. Size is specified in bytes.  The default value
> #  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
> #  'm' (mb) suffix.  For example: 10m = 10 megabytes.
> wrapper.logfile.maxsize=0
>
> # Maximum number of rolled log files which will be allowed before old
> #  files are deleted.  The default value of 0 implies no limit.
> wrapper.logfile.maxfiles=0
>
> # Log Level for sys/event log output.  (See docs for log levels)
> wrapper.syslog.loglevel=NONE
>
> On 8/24/07, charliec <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello,
> > I'm trying to get the Linux Tanuki Wrapper working with ServiceMix.  I
> > downloaded ServiceMix for Linux and the Tanuki Wrapper for Linux.  I
> > copied
> > the wrapper file to the ServiceMix base directory.   I copied the
> > wrapper.jar and libwrapper.so to the lib directory and the wrapper.conf
> > provided at
> >
> >
> http://incubator.apache.org/servicemix/configure-servicemix-as-a-windows-service.html
> > to the conf directory.  When I execute the command ./wrapper
> > /root/apache-servicemix-3.1.1-incubating/conf/wrapper.conf, I receive
> the
> > error below.  Any help is greatly appreciated.  Thanks.
> >
> > wrapper  | --> Wrapper Started as Console
> > wrapper  | Using tick timer.
> > wrapperp | server listening on port 32000.
> > wrapper  | Command[0] : /root/jdk1.5/bin/java
> > wrapper  | Command[1] : -Dderby.system.home="var"
> > wrapper  | Command[2] : -Dderby.storage.fileSyncTransactionLog=true
> > wrapper  | Command[3] : -Dcom.sun.management.jmxremote
> > wrapper  | Command[4] : -Dclassworlds.conf="conf/servicemix.conf"
> > wrapper  | Command[5] : -Dservicemix.home="."
> > wrapper  | Command[6] : -Djava.endorsed.dirs="lib/endorsed"
> > wrapper  | Command[7] : -server
> > wrapper  | Command[8] : -Xms64m
> > wrapper  | Command[9] : -Xmx512m
> > wrapper  | Command[10] : -Djava.library.path=lib
> > wrapper  | Command[11] : -classpath
> > wrapper  | Command[12] :
> > lib/wrappertest.jar:lib/wrapper.jar:lib/classworlds-1.0.1.jar:conf:.
> > wrapper  | Command[13] : -Dwrapper.key=h6aZAv_LxtF3kxLn
> > wrapper  | Command[14] : -Dwrapper.port=32000
> > wrapper  | Command[15] : -Dwrapper.jvm.port.min=31000
> > wrapper  | Command[16] : -Dwrapper.jvm.port.max=31999
> > wrapper  | Command[17] : -Dwrapper.debug=TRUE
> > wrapper  | Command[18] : -Dwrapper.pid=13552
> > wrapper  | Command[19] : -Dwrapper.version=3.2.3
> > wrapper  | Command[20] : -Dwrapper.native_library=wrapper
> > wrapper  | Command[21] : -Dwrapper.cpu.timeout=10
> > wrapper  | Command[22] : -Dwrapper.jvmid=1
> > wrapper  | Command[23] : org.tanukisoftware.wrapper.WrapperSimpleApp
> > wrapper  | Command[24] : org.codehaus.classworlds.Launcher
> > wrapper  | Launching a JVM...
> > jvm 1    | WrapperManager class initialized by thread: main  Using
> > classloader: [EMAIL PROTECTED]
> > jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
> > jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights
> > Reserved.
> > 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: libwrapper-linux-x86-32.so
> >   Cause:
> > java.lang.UnsatisfiedLinkError: no wrapper-linux-x86-32 in
> > java.library.path
> > jvm 1    | Loaded native library: libwrapper.so
> > jvm 1    | Calling native initialization method.
> > jvm 1    | Inside native WrapperManager initialization method
> > jvm 1    | Java Version   : 1.5.0_12-b04 Java HotSpot(TM) Server VM
> > jvm 1    | Java VM Vendor : Sun Microsystems Inc.
> > jvm 1    |
> > jvm 1    | Control event monitor thread started.
> > jvm 1    | Startup runner thread started.
> > jvm 1    |
> > WrapperManager.start([EMAIL PROTECTED]
> ,
> > args[]) called by thread: main
> > jvm 1    | Communications runner thread started.
> > jvm 1    | Open socket to wrapper...Wrapper-Connection
> > jvm 1    | Opened Socket from 31000 to 32000
> > jvm 1    | Send a packet KEY : h6aZAv_LxtF3kxLn
> > 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 : h6aZAv_LxtF3kxLn
> > wrapper  | Got key from JVM: h6aZAv_LxtF3kxLn
> > 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    | PingTimeout from Wrapper is 30000
> > jvm 1    | Received a packet PROPERTIES : (Property Values)
> > jvm 1    | Received a packet START : start
> > jvm 1    | calling WrapperListener.start()
> > jvm 1    | Waiting for WrapperListener.start runner thread to complete.
> > jvm 1    | WrapperListener.start runner thread started.
> > 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    |
> > jvm 1    | WrapperSimpleApp: Encountered an error running main:
> > java.io.FileNotFoundException: "conf/servicemix.conf" (No such file or
> > directory)
> > jvm 1    | java.io.FileNotFoundException: "conf/servicemix.conf" (No
> such
> > file or directory)
> > jvm 1    |      at java.io.FileInputStream.open(Native Method)
> > jvm 1    |      at java.io.FileInputStream.<init>(FileInputStream.java
> > :106)
> > jvm 1    |      at java.io.FileInputStream.<init>(FileInputStream.java
> :66)
> > jvm 1    |      at org.codehaus.classworlds.Launcher.main(Launcher.java
> > :435)
> > jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > jvm 1    |      at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> > :39)
> > jvm 1    |      at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > jvm 1    |      at java.lang.reflect.Method.invoke(Method.java:585)
> > jvm 1    |      at
> > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java
> :240)
> > jvm 1    |      at java.lang.Thread.run(Thread.java:595)
> > jvm 1    | WrapperSimpleApp: start(args) end.  Main Completed=true,
> > exitCode=1
> > jvm 1    | WrapperListener.start runner thread stopped.
> > jvm 1    | returned from WrapperListener.start()
> > jvm 1    | WrapperListener.start() returned an exit code of 1.
> > jvm 1    | WrapperManager.stop(1) called by thread: Wrapper-Connection
> > jvm 1    | Send a packet STOP : 1
> > wrapperp | read a packet STOP : 1
> > wrapper  | JVM requested a shutdown. (1)
> > wrapper  | wrapperStopProcess(1) called.
> > wrapper  | Sending stop signal to JVM
> > wrapperp | send a packet STOP : NULL
> > jvm 1    | Thread, Wrapper-Connection, handling the shutdown process.
> > jvm 1    | shutdownJVM(1) Thread:Wrapper-Connection
> > jvm 1    | Send a packet STOPPED : 1
> > wrapperp | read a packet STOPPED : 1
> > wrapper  | JVM signalled that it was stopped.
> > jvm 1    | Closing socket.
> > wrapperp | socket read no code (closed?).
> > wrapperp | server listening on port 32001.
> > jvm 1    | calling System.exit(1)
> > wrapper  | JVM exited normally.
> > wrapper  | Signal trapped.  Details:
> > wrapper  |   signal number=17 (SIGCHLD), source="unknown"
> > wrapper  | Received SIGCHLD, checking JVM process status.
> > wrapper  | JVM process exited with a code of 1, however the wrapper exit
> > code was already 1.
> > wrapper  | <-- Wrapper Stopped
> > [EMAIL PROTECTED] apache-servicemix-3.1.1-incubating]#
> >
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Linux-Tanuki-Wrapper-with-ServiceMix-tf4325480s12049.html#a12318959
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Kit Plummer
> Nobody-in-Charge @ Black:Hole:Logic
> http://www.blackholelogic.com
>

Reply via email to