martymusk wrote:
Hi, I'm new to the serviemix, I've downloaded Servicemix and I've built it
with maven, but when I start servicemix I've the follow message:

servicemix: Ignoring predefined value for SERVICEMIX_HOME
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)

Starting Apache ServiceMix ESB: 3.1.2

Loading Apache ServiceMix from servicemix.xml on the CLASSPATH
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'rmiRegistry' defined in class path resource
[jmx.xml]: Invocatio n of init method failed; nested exception is
java.rmi.server.ExportException: Po rt already in use: 1099; nested
exception is:
        java.net.BindException: Address already in use
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit h name 'rmiRegistry' defined in class path resource [jmx.xml]:
Invocation of ini t method failed; nested exception is
java.rmi.server.ExportException: Port alrea dy in use: 1099; nested
exception is:
        java.net.BindException: Address already in use
Caused by: java.rmi.server.ExportException: Port already in use: 1099;
nested ex ception is:
        java.net.BindException: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:249)
        at
sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:184 )
        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:18 0)
        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:1 86)
        at
org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPropertiesS
et(RmiRegistryFactoryBean.java:106)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:284)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>
(ClassPathXmlApplicationContext.java:161)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>
(ClassPathXmlApplicationContext.java:51)
        at org.apache.servicemix.Main.main(Main.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:461)
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:97)
        at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMI
DirectSocketFactory.java:27)
        at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMI
MasterSocketFactory.java:333)
        at
sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:62 2)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:237)
        ... 27 more

Can you help me?
Thanks,
Martina Muscariello
--
View this message in context: 
http://www.nabble.com/Port-already-in-use-tf4634836s12049.html#a13235709
Sent from the ServiceMix - User mailing list archive at Nabble.com.

.

Something has already taken that port. Do you have ActiveMQ running separately on that machine? You can change the port number in your servicemix_home/conf/servicemix.properties file.

Check if some other process has the port from the command line with netstat -a

Regards,
Gordon

Reply via email to