Philip Dodds wrote:
I would recommend looking at ServiceMix 3.0 - in this case simply changing
the two references to 1099 in /conf/jmx.xml and also the port number in
/conf/activemq.xml will allow you to run two instances side by side..
Thanks Philip, but I am running a 3.0 snapshot from about 2 months ago.
Hmm. jmx.xml? It sounds like that will solve my jmx issue properly. Will
look into it shortly.
Note: I did work around the jmx issue using
JAVA_OPTS=-Dcom.sun.management.jmxremote=false.
The problem seemed to be some other port (34939) was bound and I can't
find out where this is configured. Both instances wanted to bind to
34939...
I have M2 now and see I need to have a separate M2 directory so the
conf/jmx.xml isn't shared. Ok. Configured the separate M2 dir to use
1098 for JMX and 61617 for activemq. Files edited: jmx.xml,
servicemix.xml, activemq.xml
Now neither my original or copied/modified servicemix will start the
jms-binding example. :-(
Both of them now give me:
Loading Apache ServiceMix from file: ./servicemix.xml
Caught: org.springframework.beans.factory.BeanDefinitionStoreException:
Error 'Bean class
[org.apache.servicemix.components.jms.JmsInUsingJCABinding] not found'
in resource 'file
[/home/mswanson/downloads/java/servicemix/apache-servicemix-3.0-M2-incubating/examples/jms-binding/./servicemix.xml]'
at:
Bean ''; nested exception is java.lang.ClassNotFoundException:
org.apache.servicemix.components.jms.JmsInUsingJCABinding
org.springframework.beans.factory.BeanDefinitionStoreException: Error
'Bean class [org.apache.servicemix.components.jms.JmsInUsingJCABinding]
not found' in resource 'file
[/home/mswanson/downloads/java/servicemix/apache-servicemix-3.0-M2-incubating/examples/jms-binding/./servicemix.xml]'
at:
Bean ''; nested exception is java.lang.ClassNotFoundException:
org.apache.servicemix.components.jms.JmsInUsingJCABinding
Caused by: java.lang.ClassNotFoundException:
org.apache.servicemix.components.jms.JmsInUsingJCABinding
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClassDirect(DefaultClassRealm.java:412)
I worked around this by fixing the servicemix.conf to include the line:
load ${servicemix.home}/lib/optional/*.jar
Servicemix startup proceeded further, but eventually died here:
Bean 'jmsFactory'; nested exception is java.lang.NoClassDefFoundError:
org/apache/commons/pool/ObjectPoolFactory
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/pool/ObjectPoolFactory
For some reason, M2 is missing all of the optional jars that used to be
present in previous 3.0 snapshots. Without these jars it's not going to
work. What's the recommended way of getting the correct jars? Build from
latest SVN?
Cheers.
--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/tg/
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb