I agree, but the bottom line is that this error is not at
all ServiceMix
related. You'll see it with JBoss, you'll see it with pretty
much every
Application Server that has JNDI registry.
The issue here is to quickly realize how to figure out where
is the
problem.
netstat would be the best place to start and if you see a
process that
is taking port 1099, then this is the problem regardless
weather it's a
ServiceMix process (hanging test) or anything else.
________________________________
From: Andreas Schaefer (2) [mailto:andreas.schaefer madplanet.com]
Sent: Tuesday, October 16, 2007 12:13 PM
To: servicemix-users geronimo.apache.org
Cc: Andreas Schaefer (2)
Subject: Re: Port already in use
Well, it is not that simple from time to time because the
port can also
be taken by a test with an in-memory servicemix instance.
But maybe if that is such a common problem then it should be
added to
the Wiki, shouldn't it.
I am going to mention it at the wiki:
http://incubator.apache.org/servicemix/1
-quick-start.html#1.Quickstart-S
tarttheServer
please check it out and tell me if I missed something.
-Andy
On Oct 16, 2007, at 8:43 AM, Zhurakousky, Oleg wrote:
Search through this mailing list. This is a very common
issue which is
very easy to fix (not really a servicemix issue but the fact
that
something else taking the port). It is popping up every
other week on
this forum
-----Original Message-----
From: Gordon Dickens [mailto:gdickens anexinet.com]
Sent: Tuesday, October 16, 2007 11:39 AM
To: servicemix-users geronimo.apache.org
Subject: Re: Port already in use
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.j
ava:382)
at
sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
at
sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRe
f.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(LocateRegist
ry.java:1
86)
at
org.apache.servicemix.jbi.jmx.RmiRegistryFactoryBean.afterPr
opertiesS
et(RmiRegistryFactoryBean.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCa
pableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory
.java:1201)
at
org.springframework.beans.factory.support.AbstractAutowireCa
pableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.ja
va:1171)
at
org.springframework.beans.factory.support.AbstractAutowireCa
pableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:
425)
at
org.springframework.beans.factory.support.AbstractBeanFactor
y$1.getOb
ject(AbstractBeanFactory.java:251)
at
org.springframework.beans.factory.support.DefaultSingletonBe
anRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at
org.springframework.beans.factory.support.AbstractBeanFactor
y.getBean
(AbstractBeanFactory.java:248)
at
org.springframework.beans.factory.support.AbstractBeanFactor
y.getBean
(AbstractBeanFactory.java:160)
at
org.springframework.beans.factory.support.DefaultListableBea
nFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:28
4)
at
org.springframework.context.support.AbstractApplicationConte
xt.refres
h(AbstractApplicationContext.java:352)
at
org.apache.xbean.spring.context.ClassPathXmlApplicationConte
xt.<init>
(ClassPathXmlApplicationContext.java:161)
at
org.apache.xbean.spring.context.ClassPathXmlApplicationConte
xt.<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(NativeMethodAcce
ssorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchStandard(Launcher.ja
va: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.createServerS
ocket(RMI
DirectSocketFactory.java:27)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerS
ocket(RMI
MasterSocketFactory.java:333)
at
sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoin
t.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-us
e-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
Andreas Schaefer
CEO of Madplanet.com Inc.
andreas.schaefer madplanet.com
|