I'm having problems using the included wrapper.conf to start/stop ActiveMQ
(conf below).  I have modified the conf to include the appropriate start
command as well as some missing parameters to the startup so that the
executed java command more closely matches the one run by 'bin/activemq'. 
ActiveMQ can be started normally via 'bin/activemq'.  The error I am getting
is:

INFO   | jvm 1    | Could not load class:
org.apache.activemq.console.command.ShellCommand
INFO   | jvm 1    | Class loader setup:
INFO   | jvm 1    | sun.misc.Launcher$ExtClassLoader {
INFO   | jvm 1    |   file:/installpath/opt/jre/lib/ext/sunpkcs11.jar
INFO   | jvm 1    |   file:/installpath/opt/jre/lib/ext/dnsns.jar
INFO   | jvm 1    |   file:/installpath/opt/jre/lib/ext/localedata.jar
INFO   | jvm 1    |   file:/installpath/opt/jre/lib/ext/sunjce_provider.jar
INFO   | jvm 1    | }
INFO   | jvm 1    |   sun.misc.Launcher$AppClassLoader {
INFO   | jvm 1    |     file:/installpath/opt/activemq/bin/wrapper.jar
INFO   | jvm 1    |     file:/installpath/opt/activemq/bin/run.jar
INFO   | jvm 1    |   }
INFO   | jvm 1    |     java.net.URLClassLoader {
INFO   | jvm 1    |       file:/installpath/opt/activemq/conf/
INFO   | jvm 1    |      
file:/installpath/opt/activemq/bin/linux/"/installpath/opt/activemq"/conf
INFO   | jvm 1    |     }

I'm guessing its something to do with the bad URLClassLoader path, however,
the bad entry is not anywhere in my wrapper.conf file.  Any ideas?

Relevant lines in wrapper.conf:

# -- snip -----------------------------
wrapper.debug=TRUE
set.default.ACTIVEMQ_HOME=../opt/activemq
set.default.ACTIVEMQ_BASE=../opt/activemq
wrapper.working.dir=.

# Java Application
wrapper.java.command=java

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

# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=%ACTIVEMQ_HOME%/bin/wrapper.jar
wrapper.java.classpath.2=%ACTIVEMQ_HOME%/bin/run.jar

# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=%ACTIVEMQ_HOME%/bin/linux

# Java Additional Parameters
# note that n is the parameter number starting from 1.
wrapper.java.additional.1=-Dactivemq.home="%ACTIVEMQ_HOME%"
wrapper.java.additional.2=-Dactivemq.base="%ACTIVEMQ_BASE%"
wrapper.java.additional.3=-Dactivemq.classpath=%ACTIVEMQ_HOME%/conf
wrapper.java.additional.4=-Djavax.net.ssl.keyStorePassword=password
wrapper.java.additional.5=-Djavax.net.ssl.trustStorePassword=password
wrapper.java.additional.6=-Djavax.net.ssl.keyStore="%ACTIVEMQ_BASE%/conf/broker.ks"
wrapper.java.additional.7=-Djavax.net.ssl.trustStore="%ACTIVEMQ_BASE%/conf/broker.ts"
wrapper.java.additional.8=-Dorg.apache.activemq.UseDedicatedTaskRunner=true
wrapper.java.additional.9=-Dderby.system.home="%ACTIVEMQ_BASE%/data"
wrapper.java.additional.10=-Dderby.storage.fileSyncTransactionLog=true
wrapper.java.additional.11=-Dcom.sun.management.jmxremote


# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3

# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512

# Application Startup parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=org.apache.activemq.console.Main
wrapper.app.parameter.2=start
wrapper.app.parameter.3="xbean:file:%MQROOT%/etc/activemq.xml"

# -- snip -----------------------------

Thanks,
-Greg
-- 
View this message in context: 
http://www.nabble.com/Wrapper.conf-and-5.0.0-RC3----Could-not-load-class%3A-org.apache.activemq.console.command.ShellCommand-tf4920062s2354.html#a14080568
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to