Hi,
I need to configure ServiceMix 2.0.2 in a mixed Java 1.3 and 1.5
environment. There is already a 1.3 Java server using the default
1099 RMI
port. When I try to bring up ServiceMix using Java 5, getting the
following errors. Looks like it is due to the port 1099 already
being in
use. Is there a config file where I can specify a different RMI
port (e.g.
8099) for ServiceMix?
18:07:10,850 ERROR [ManagementContext] Could not start the remote:
JMX
ConnectorServer
java.io.IOException: Cannot bind to URL
[rmi://localhost:1099/defaultJBIJMX]:
javax.naming.CommunicationException
[Root exception is java.rmi.ServerException: RemoteException
occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested
exception is:
java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub]
at
javax.management.remote.rmi.RMIConnectorServer.newIOException
(RMIConnectorServer.java:814)
at
javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:431)
at
org.servicemix.jbi.management.ManagementContext.findMBeanServer
(ManagementContext.java:634)
at
org.servicemix.jbi.management.ManagementContext.init
(ManagementContext.java:179)
at
org.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:392)
at
org.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet
(SpringJBIContainer.java:39)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1058)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:147)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:318)
at
org.xbean.spring.context.ClassPathXmlApplicationContext.<init>
(ClassPathXmlApplicationContext.java:158)
at
org.xbean.spring.context.ClassPathXmlApplicationContext.<init>
(ClassPathXmlApplicationContext.java:48)
at org.servicemix.Main.main(Main.java:50)
Caused by: javax.naming.CommunicationException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested
exception is:
java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub]
at
com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:122)
at
com.sun.jndi.toolkit.url.GenericURLContext.bind
(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at
javax.management.remote.rmi.RMIConnectorServer.bind
(RMIConnectorServer.java:635)
at
javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:427)
... 13 more
Caused by: java.rmi.ServerException: RemoteException occurred in
server
thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments;
nested
exception is:
java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at
sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at
com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:116)
... 17 more
Caused by: java.rmi.UnmarshalException: error unmarshalling
arguments;
nested exception is:
java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub
Caused by: java.lang.ClassNotFoundException:
javax.management.remote.rmi.RMIServerImpl_Stub
Thanks,
Mark
Technical Services
Sirvisetti Systems
347 Plainfield Avenue
Edison NJ 08817
Tel:(866) 985-2200 Ext 1106
Fax:(732) 985-4448
http://www.sirvisetti.com
http://autostream.sirvisetti.com
---------------------------------------------------------------------
-
This email has been sent by Sirvisetti Systems. If you believe
this email
has reached you in error or if you no longer wish to receive email
updates
from Sirvisetti Systems, reply to this email with Remove in the
Subject
line. We regret for the inconvenience caused.