I'm trying to setup ActiveMQ 5 as a windows service. The service is created successfully but immediately shuts down after being started. Has anyone successfully got ActiveMQ5 installed as a windows service? The following is the contents from my wrapper.log file with the debug option set to 'true' in wrapper.conf:
DEBUG | wrapper | 2008/01/18 17:49:37 | Working directory set to: . DEBUG | wrapper | 2008/01/18 17:49:37 | Service command: C:\apache-activemq-5.0.0\bin\win32\wrapper.exe -s c:\apache-activemq-5.0.0\bin\win32\wrapper.conf set.ACTIVEMQ_HOME=c:\apache-activemq-5.0.0 set.ACTIVEMQ_BASE=c:\apache-activemq-5.0.0 STATUS | wrapper | 2008/01/18 17:49:38 | ActiveMQ installed. DEBUG | wrapper | 2008/01/18 17:49:59 | Working directory set to: . STATUS | wrapper | 2008/01/18 17:49:59 | --> Wrapper Started as Service DEBUG | wrapper | 2008/01/18 17:49:59 | Using tick timer. DEBUG | wrapperp | 2008/01/18 17:49:59 | server listening on port 32000. STATUS | wrapper | 2008/01/18 17:49:59 | Launching a JVM... DEBUG | wrapper | 2008/01/18 17:49:59 | command: "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Dactivemq.home="c:\apache-activemq-5.0.0" -Dactivemq.base="c:\apache-activemq-5.0.0" -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore="c:\apache-activemq-5.0.0/conf/broker.ks" -Djavax.net.ssl.trustStore="c:\apache-activemq-5.0.0/conf/broker.ts" -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dderby.storage.fileSyncTransactionLog=true -Xmx512m -Djava.library.path="c:\apache-activemq-5.0.0/bin/win32" -classpath "c:\apache-activemq-5.0.0/bin/wrapper.jar;c:\apache-activemq-5.0.0/bin/run.jar" -Dwrapper.key="8E3bNDPqs5SlkmcG" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=804 -Dwrapper.version="3.2.0" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.apache.activemq.console.Main DEBUG | wrapper | 2008/01/18 17:49:59 | JVM started (PID=2128) INFO | jvm 1 | 2008/01/18 17:49:59 | WrapperManager class initialized by thread: main Using classloader: [EMAIL PROTECTED] INFO | jvm 1 | 2008/01/18 17:49:59 | Wrapper (Version 3.2.0) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2008/01/18 17:49:59 | INFO | jvm 1 | 2008/01/18 17:49:59 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2008/01/18 17:49:59 | Running a 32-bit JVM. INFO | jvm 1 | 2008/01/18 17:49:59 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2008/01/18 17:49:59 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2008/01/18 17:49:59 | Load native library. One or more attempts may fail if platform specific libraries do not exist. INFO | jvm 1 | 2008/01/18 17:49:59 | Loading native library failed: wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2008/01/18 17:49:59 | Loaded native library: wrapper.dll INFO | jvm 1 | 2008/01/18 17:49:59 | Calling native initialization method. INFO | jvm 1 | 2008/01/18 17:49:59 | Initializing WrapperManager native library. INFO | jvm 1 | 2008/01/18 17:49:59 | Java Executable: C:\Program Files\Java\jdk1.5.0_11\bin\java.exe INFO | jvm 1 | 2008/01/18 17:49:59 | Windows version: 5.1.2600 INFO | jvm 1 | 2008/01/18 17:49:59 | Java Version : 1.5.0_11-b03 Java HotSpot(TM) Client VM INFO | jvm 1 | 2008/01/18 17:49:59 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2008/01/18 17:49:59 | INFO | jvm 1 | 2008/01/18 17:49:59 | WrapperManager.start([EMAIL PROTECTED], args[]) called by thread: main INFO | jvm 1 | 2008/01/18 17:49:59 | Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2008/01/18 17:49:59 | Opened Socket from 31000 to 32000 INFO | jvm 1 | 2008/01/18 17:49:59 | Send a packet KEY : 8E3bNDPqs5SlkmcG INFO | jvm 1 | 2008/01/18 17:49:59 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) DEBUG | wrapperp | 2008/01/18 17:49:59 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2008/01/18 17:49:59 | read a packet KEY : 8E3bNDPqs5SlkmcG DEBUG | wrapper | 2008/01/18 17:49:59 | Got key from JVM: 8E3bNDPqs5SlkmcG DEBUG | wrapperp | 2008/01/18 17:49:59 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2008/01/18 17:49:59 | send a packet PING_TIMEOUT : 30 DEBUG | wrapperp | 2008/01/18 17:49:59 | send a packet PROPERTIES : (Property Values) DEBUG | wrapper | 2008/01/18 17:49:59 | Start Application. DEBUG | wrapperp | 2008/01/18 17:49:59 | send a packet START : start INFO | jvm 1 | 2008/01/18 17:50:00 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2008/01/18 17:50:00 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2008/01/18 17:50:00 | Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2008/01/18 17:50:00 | Wrapper Manager: PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2008/01/18 17:50:00 | Received a packet PROPERTIES : (Property Values) INFO | jvm 1 | 2008/01/18 17:50:00 | Monitoring of the JVM thread count will be delayed for 1 seconds. INFO | jvm 1 | 2008/01/18 17:50:00 | Received a packet START : start INFO | jvm 1 | 2008/01/18 17:50:00 | calling listener.start() INFO | jvm 1 | 2008/01/18 17:50:00 | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete. INFO | jvm 1 | 2008/01/18 17:50:00 | WrapperSimpleApp: invoking main method INFO | jvm 1 | 2008/01/18 17:50:00 | ACTIVEMQ_HOME: c:\apache-activemq-5.0.0 INFO | jvm 1 | 2008/01/18 17:50:00 | ACTIVEMQ_BASE: c:\apache-activemq-5.0.0 INFO | jvm 1 | 2008/01/18 17:50:00 | Usage: Main [--extdir <dir>] [task] [task-options] [task data] INFO | jvm 1 | 2008/01/18 17:50:00 | INFO | jvm 1 | 2008/01/18 17:50:00 | Tasks (default task is start): INFO | jvm 1 | 2008/01/18 17:50:00 | start - Creates and starts a broker using a configuration file, or a broker URI. INFO | jvm 1 | 2008/01/18 17:50:00 | stop - Stops a running broker specified by the broker name. INFO | jvm 1 | 2008/01/18 17:50:00 | list - Lists all available brokers in the specified JMX context. INFO | jvm 1 | 2008/01/18 17:50:00 | query - Display selected broker component's attributes and statistics. INFO | jvm 1 | 2008/01/18 17:50:00 | browse - Display selected messages in a specified destination. INFO | jvm 1 | 2008/01/18 17:50:00 | INFO | jvm 1 | 2008/01/18 17:50:00 | Task Options (Options specific to each task): INFO | jvm 1 | 2008/01/18 17:50:00 | --extdir <dir> - Add the jar files in the directory to the classpath. INFO | jvm 1 | 2008/01/18 17:50:00 | --version - Display the version information. INFO | jvm 1 | 2008/01/18 17:50:00 | -h,-?,--help - Display this help information. To display task specific help, use Main [task] -h,-?,--help INFO | jvm 1 | 2008/01/18 17:50:00 | INFO | jvm 1 | 2008/01/18 17:50:00 | Task Data: INFO | jvm 1 | 2008/01/18 17:50:00 | - Information needed by each specific task. INFO | jvm 1 | 2008/01/18 17:50:00 | INFO | jvm 1 | 2008/01/18 17:50:00 | INFO | jvm 1 | 2008/01/18 17:50:00 | WrapperSimpleApp: main method completed INFO | jvm 1 | 2008/01/18 17:50:00 | WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=null INFO | jvm 1 | 2008/01/18 17:50:00 | returned from listener.start() INFO | jvm 1 | 2008/01/18 17:50:00 | Send a packet STARTED : DEBUG | wrapperp | 2008/01/18 17:50:00 | read a packet STARTED : DEBUG | wrapper | 2008/01/18 17:50:00 | JVM signalled that it was started. DEBUG | wrapperp | 2008/01/18 17:50:03 | send a packet PING : ping INFO | jvm 1 | 2008/01/18 17:50:03 | Received a packet PING : ping INFO | jvm 1 | 2008/01/18 17:50:03 | Send a packet PING : ok INFO | jvm 1 | 2008/01/18 17:50:03 | Non-daemon thread count = 1 - 1(system) = 0 INFO | jvm 1 | 2008/01/18 17:50:03 | All non-daemon threads have stopped. Exiting. INFO | jvm 1 | 2008/01/18 17:50:03 | WrapperManager.stop(0) called by thread: Wrapper-Connection INFO | jvm 1 | 2008/01/18 17:50:03 | Send a packet STOP : 0 DEBUG | wrapperp | 2008/01/18 17:50:03 | read a packet PING : ok DEBUG | wrapper | 2008/01/18 17:50:03 | Got ping response from JVM DEBUG | wrapperp | 2008/01/18 17:50:03 | read a packet STOP : 0 DEBUG | wrapper | 2008/01/18 17:50:03 | JVM requested a shutdown. (0) DEBUG | wrapper | 2008/01/18 17:50:03 | wrapperStopProcess(0) called. DEBUG | wrapper | 2008/01/18 17:50:03 | Sending stop signal to JVM DEBUG | wrapperp | 2008/01/18 17:50:03 | send a packet STOP : NULL INFO | jvm 1 | 2008/01/18 17:50:04 | Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2008/01/18 17:50:04 | calling listener.stop() INFO | jvm 1 | 2008/01/18 17:50:04 | WrapperSimpleApp: stop(0) INFO | jvm 1 | 2008/01/18 17:50:04 | returned from listener.stop() INFO | jvm 1 | 2008/01/18 17:50:04 | Send a packet STOPPED : 0 DEBUG | wrapperp | 2008/01/18 17:50:04 | read a packet STOPPED : 0 DEBUG | wrapper | 2008/01/18 17:50:04 | JVM signalled that it was stopped. INFO | jvm 1 | 2008/01/18 17:50:04 | Closing socket. DEBUG | wrapperp | 2008/01/18 17:50:04 | socket read no code (closed?). DEBUG | wrapperp | 2008/01/18 17:50:04 | server listening on port 32001. INFO | jvm 1 | 2008/01/18 17:50:05 | calling System.exit(0) DEBUG | wrapper | 2008/01/18 17:50:05 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. DEBUG | wrapper | 2008/01/18 17:50:05 | JVM exited normally. STATUS | wrapper | 2008/01/18 17:50:05 | <-- Wrapper Stopped -- View this message in context: http://www.nabble.com/ActiveMQ-5%3A-install-as-windows-service-does-not-work-tp14947392s2354p14947392.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.