You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bernard Lupin <be...@yahoo.fr> on 2006/10/02 15:32:26 UTC
rmi registry error with Jonas
Hi all,
I'm runing ServiceMix 3.0 within Jonas 4.6.6.
I've just moved from a trunk version to the 3.0 release, and I have now an
exception when deploying my web application, without any component :
- Failed to start rmi registry: internal error: ObjID already in use
- Failed to start rmi registry
java.rmi.server.ExportException: internal error: ObjID already in use
at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
at sun.rmi.transport.Transport.exportObject(Transport.java:75)
at
sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
at
sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
at
java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
at
org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
at
org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
at
org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
at
org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
...
I suppose that I'm trying to start two rmi registry, but don't know how to
solve this problem, which dosn't appear in the forum...
Regards,
Bernard
--
View this message in context: http://www.nabble.com/rmi-registry-error-with-Jonas-tf2369618.html#a6601220
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: rmi registry error with Jonas
Posted by Bernard Lupin <be...@yahoo.fr>.
Right, it works !
gnodet wrote:
>
> I guess JOnAS already creates a registry.
> You should be able to disable the jmx connector
> creation by setting the createJmxConnector
> attribute to false on the JBI container.
>
>
> On 10/2/06, Bernard Lupin <be...@yahoo.fr> wrote:
>>
>> Hi all,
>> I'm runing ServiceMix 3.0 within Jonas 4.6.6.
>> I've just moved from a trunk version to the 3.0 release, and I have now
>> an
>> exception when deploying my web application, without any component :
>>
>> - Failed to start rmi registry: internal error: ObjID already in use
>> - Failed to start rmi registry
>> java.rmi.server.ExportException: internal error: ObjID already in use
>> at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
>> at sun.rmi.transport.Transport.exportObject(Transport.java:75)
>> at
>> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
>> at
>> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
>> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
>> at
>> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
>> at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
>> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
>> at
>> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
>> at
>> org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
>> at
>> org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
>> at
>> org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
>> at
>> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
>> at
>> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
>> ...
>>
>> I suppose that I'm trying to start two rmi registry, but don't know how
>> to
>> solve this problem, which dosn't appear in the forum...
>>
>> Regards,
>> Bernard
>>
>> --
>> View this message in context:
>> http://www.nabble.com/rmi-registry-error-with-Jonas-tf2369618.html#a6601220
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>
--
View this message in context: http://www.nabble.com/rmi-registry-error-with-Jonas-tf2369618.html#a6602127
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: rmi registry error with Jonas
Posted by Guillaume Nodet <gn...@gmail.com>.
I guess JOnAS already creates a registry.
You should be able to disable the jmx connector
creation by setting the createJmxConnector
attribute to false on the JBI container.
On 10/2/06, Bernard Lupin <be...@yahoo.fr> wrote:
>
> Hi all,
> I'm runing ServiceMix 3.0 within Jonas 4.6.6.
> I've just moved from a trunk version to the 3.0 release, and I have now an
> exception when deploying my web application, without any component :
>
> - Failed to start rmi registry: internal error: ObjID already in use
> - Failed to start rmi registry
> java.rmi.server.ExportException: internal error: ObjID already in use
> at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
> at sun.rmi.transport.Transport.exportObject(Transport.java:75)
> at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
> at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
> at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
> at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
> at
> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
> at
> org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
> at
> org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
> at
> org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
> at
> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
> at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
> ...
>
> I suppose that I'm trying to start two rmi registry, but don't know how to
> solve this problem, which dosn't appear in the forum...
>
> Regards,
> Bernard
>
> --
> View this message in context: http://www.nabble.com/rmi-registry-error-with-Jonas-tf2369618.html#a6601220
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
Re: rmi registry error with Jonas
Posted by khanh <kv...@syys.com>.
I'm getting a similar problem. I am running ServiceMix 3.0 with Jonas 4.8.4.
This is the error that I am getting.
12:43:19,272 INFO [JBIContainer] ServiceMix 3.0-incubating JBI Container
(Servi
ceMix) is starting
INFO - JBIContainer - For help or more informations
please se
e: http://incubator.apache.org/servicemix/
12:43:19,272 INFO [JBIContainer] For help or more informations please see:
http
://incubator.apache.org/servicemix/
WARN - ManagementContext - Failed to start rmi registry:
internal
error: ObjID already in use
12:43:19,412 WARN [ManagementContext] Failed to start rmi registry:
internal er
ror: ObjID already in use
INFO - ConnectorServerFactoryBean - JMX connector available at:
service:jmx
:rmi:///jndi/rmi://localhost:1099/jmxrmi
12:43:19,482 INFO [ConnectorServerFactoryBean] JMX connector available at:
serv
ice:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
The createJmxConnector attribute is already set to false.
Could this error be the reason why I can't deploy the ServiceMix/Jonas
example?
Thanks
Khanh
Bernard Lupin wrote:
>
> Hi all,
> I'm runing ServiceMix 3.0 within Jonas 4.6.6.
> I've just moved from a trunk version to the 3.0 release, and I have now an
> exception when deploying my web application, without any component :
>
> - Failed to start rmi registry: internal error: ObjID already in use
> - Failed to start rmi registry
> java.rmi.server.ExportException: internal error: ObjID already in use
> at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
> at sun.rmi.transport.Transport.exportObject(Transport.java:75)
> at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
> at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
> at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
> at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
> at
> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
> at
> org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
> at
> org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
> at
> org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
> at
> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
> at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
> ...
>
> I suppose that I'm trying to start two rmi registry, but don't know how to
> solve this problem, which dosn't appear in the forum...
>
> Regards,
> Bernard
>
>
--
View this message in context: http://www.nabble.com/rmi-registry-error-with-Jonas-tf2369618s12049.html#a8130717
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: rmi registry error with Jonas
Posted by Guillaume Nodet <gn...@gmail.com>.
I guess JOnAS is already starting a rmi registry on port 1099.
You need to change the port on the container if you want ServiceMix to start
another registry.
On 10/2/06, Hélène JOANIN <he...@bull.net> wrote:
>
> Hi,
>
> Note that I got this same problem with ServiceMix standalone.
> Here are the logs I got when I launch ServiceMix ESB version
> 3.0-incubating:
>
> $ servicemix ./servicemix.xml
> servicemix: Ignoring predefined value for SERVICEMIX_HOME
> java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
> Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)
>
> Starting Apache ServiceMix ESB: 3.0-incubating
>
> Loading Apache ServiceMix from file: ./servicemix.xml
> INFO - JBIContainer - ServiceMix 3.0-incubating JBI
> Container (ServiceMix) is starting
> INFO - JBIContainer - For help or more informations
> please see: http://incubator.apache.org/servicemix/
> WARN - ManagementContext - Failed to start rmi registry:
> internal error: ObjID already in use
> WARN - ManagementContext - Failed to start jmx connector:
> Cannot bind to URL [rmi://localhost:1099/jmxrmi]:
> javax.naming.NameAlreadyBoundException: jmxrmi [Root
> exception is java.rmi.AlreadyBoundException: jmxrmi]
> INFO - ComponentMBeanImpl - Initializing component:
> #SubscriptionManager#
> INFO - DeploymentService - Restoring service assemblies
> INFO - JBIContainer - ServiceMix JBI Container
> (ServiceMix) started
> ......
> Regards.
> Hélène.
>
>
>
> Bernard Lupin wrote:
> Hi all,
> I'm runing ServiceMix 3.0 within Jonas 4.6.6.
> I've just moved from a trunk version to the 3.0 release, and I have now an
> exception when deploying my web application, without any component :
>
> - Failed to start rmi registry: internal error: ObjID already in use
> - Failed to start rmi registry
> java.rmi.server.ExportException: internal error: ObjID already in use
> at
> sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
> at
> sun.rmi.transport.Transport.exportObject(Transport.java:75)
> at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
> at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
> at
> sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
> at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
> at
> sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
> at
> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
> at
> org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
> at
> org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
> at
> org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
> at
> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
> at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
> ...
>
> I suppose that I'm trying to start two rmi registry, but don't know how to
> solve this problem, which dosn't appear in the forum...
>
> Regards,
> Bernard
>
>
>
>
--
Cheers,
Guillaume Nodet
Re: rmi registry error with Jonas
Posted by Hélène JOANIN <he...@bull.net>.
Hi,
Note that I got this same problem with ServiceMix standalone.
Here are the logs I got when I launch ServiceMix ESB version 3.0-incubating:
$ servicemix ./servicemix.xml
servicemix: Ignoring predefined value for SERVICEMIX_HOME
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)
Starting Apache ServiceMix ESB: 3.0-incubating
Loading Apache ServiceMix from file: ./servicemix.xml
INFO - JBIContainer - ServiceMix 3.0-incubating
JBI Container (ServiceMix) is starting
INFO - JBIContainer - For help or more
informations please see: http://incubator.apache.org/servicemix/
WARN - ManagementContext - Failed to start rmi
registry: internal error: ObjID already in use
WARN - ManagementContext - Failed to start jmx
connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]:
javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is
java.rmi.AlreadyBoundException: jmxrmi]
INFO - ComponentMBeanImpl - Initializing component:
#SubscriptionManager#
INFO - DeploymentService - Restoring service assemblies
INFO - JBIContainer - ServiceMix JBI Container
(ServiceMix) started
......
Regards.
Hélène.
Bernard Lupin wrote:
> Hi all,
> I'm runing ServiceMix 3.0 within Jonas 4.6.6.
> I've just moved from a trunk version to the 3.0 release, and I have now an
> exception when deploying my web application, without any component :
>
> - Failed to start rmi registry: internal error: ObjID already in use
> - Failed to start rmi registry
> java.rmi.server.ExportException: internal error: ObjID already in use
> at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
> at sun.rmi.transport.Transport.exportObject(Transport.java:75)
> at
> sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:190)
> at
> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
> at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
> at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:180)
> at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
> at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
> at
> java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
> at
> org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesSet(RmiRegistryFactoryBean.java:106)
> at
> org.apache.servicemix.jbi.management.MBeanServerContext.start(MBeanServerContext.java:79)
> at
> org.apache.servicemix.jbi.management.ManagementContext.init(ManagementContext.java:153)
> at
> org.apache.servicemix.jbi.container.JBIContainer.init(JBIContainer.java:551)
> at
> org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:55)
> ...
>
> I suppose that I'm trying to start two rmi registry, but don't know how to
> solve this problem, which dosn't appear in the forum...
>
> Regards,
> Bernard
>
>