You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Mark Swanson <ma...@ScheduleWorld.com> on 2006/07/07 23:02:40 UTC

Q: rmiPort does not work?

Hello,

ServiceMix is always binding to port 1099.
When I use rmiPort="1098" ServiceMix binds to 1099 _and_ 1098.

The problem seems to be with activemq. It always starts listening on 
port 1099 even though I changed the activemq.xml to disable jmx or use a 
different port:

<broker useJmx="false">
     <connector>
       <tcpServerTransport uri="tcp://localhost:61617" backlog="1000" 
useAsyncSend="true" maxOutstandingMessages="50"/>
     </connector>

     <managementContext>
       <managementContext connectorPort="1097"/>
     <managementContext>

Any ideas?

-- 
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

Re: Q: rmiPort does not work?

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
Mark Swanson wrote:
> 
> I worked around this by fixing the servicemix.conf to include the line:
> 
>     load ${servicemix.home}/lib/optional/*.jar

sorry, components/lib/*.jar

as lib/optional is already there in servicemix.conf

-- 
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

Re: Q: rmiPort does not work?

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
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

Re: Q: rmiPort does not work?

Posted by Philip Dodds <ph...@gmail.com>.
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..

Cheers

P

On 7/7/06, Mark Swanson <ma...@scheduleworld.com> wrote:
>
> Mark Swanson wrote:
> > Hello,
> >
> > ServiceMix is always binding to port 1099.
> > When I use rmiPort="1098" ServiceMix binds to 1099 _and_ 1098.
> >
> > The problem seems to be with activemq. It always starts listening on
> > port 1099 even though I changed the activemq.xml to disable jmx or use a
> > different port:
> >
> > <broker useJmx="false">
> >     <connector>
> >       <tcpServerTransport uri="tcp://localhost:61617" backlog="1000"
> > useAsyncSend="true" maxOutstandingMessages="50"/>
> >     </connector>
> >
> >     <managementContext>
> >       <managementContext connectorPort="1097"/>
> >     <managementContext>
> >
> > Any ideas?
> >
> Note: I was able to:
> export JAVA_OPTS=-Dcom.sun.management.jmxremote=false
> (both jvms)
>
> and I was able to get a bit further
> However, I still can't get 2 servicemix implementations running on the
> same box (with activemq) because they both want to listen on port 34939.
>
> I don't have 34939 anywhere in my xml documents. Any ideas?
>
> Thanks.
> --
> 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
>

Re: Q: rmiPort does not work?

Posted by Mark Swanson <ma...@ScheduleWorld.com>.
Mark Swanson wrote:
> Hello,
> 
> ServiceMix is always binding to port 1099.
> When I use rmiPort="1098" ServiceMix binds to 1099 _and_ 1098.
> 
> The problem seems to be with activemq. It always starts listening on 
> port 1099 even though I changed the activemq.xml to disable jmx or use a 
> different port:
> 
> <broker useJmx="false">
>     <connector>
>       <tcpServerTransport uri="tcp://localhost:61617" backlog="1000" 
> useAsyncSend="true" maxOutstandingMessages="50"/>
>     </connector>
> 
>     <managementContext>
>       <managementContext connectorPort="1097"/>
>     <managementContext>
> 
> Any ideas?
> 
Note: I was able to:
export JAVA_OPTS=-Dcom.sun.management.jmxremote=false
(both jvms)

and I was able to get a bit further
However, I still can't get 2 servicemix implementations running on the 
same box (with activemq) because they both want to listen on port 34939.

I don't have 34939 anywhere in my xml documents. Any ideas?

Thanks.
-- 
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