JVM Bind Error

21 views
Skip to first unread message

Lelo

unread,
Oct 10, 2011, 3:12:13 AM10/10/11
to mobicents-public
Hi guys

I'm using MSS-2.0.0.ALPHA2-apache-tomcat-7.0.8.
I have a registered domain name.
I recently re-installed XP on my system.
Now when I start my MSS instances, I get a "Cannot bind requested
address: JVM Bind" error.

I tried alternating between my domain name and IP address in my
server.xml file but still "Cannot assign requested address:JVM Bind"

What am I missing?

Regards
Lelo

Jean Deruelle

unread,
Oct 10, 2011, 3:17:44 AM10/10/11
to mobicent...@googlegroups.com
Maybe the SIP port is already taken, did you try to modify that ?
Please attach the full error if you can just in case it gives more detail.

Jean

Lelo

unread,
Oct 10, 2011, 3:33:31 AM10/10/11
to mobicents-public
Hi Jean

I changed the port, still same problem.
Here's my log..


10 Oct 2011 9:27:27 AM org.apache.catalina.core.AprLifecycleListener
init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files\Java\jdk1.6.0_24\bin;.;C:\WINDOWS
\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:
\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Alky for
Applications\Libraries\;C:\Program Files\QuickTime\QTSystem\
10 Oct 2011 9:27:27 AM
org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting
property 'httpFollowsSip' to 'false' did not find a matching property.
10 Oct 2011 9:27:28 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
10 Oct 2011 9:27:28 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
10 Oct 2011 9:27:37 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10438 ms
10 Oct 2011 9:27:38 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Sip-Servlets
10 Oct 2011 9:27:38 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.8
10 Oct 2011 9:27:38 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive chatroom-
servlet-2.0.0.ALPHA2(1).war
10 Oct 2011 9:27:40 AM org.apache.catalina.loader.WebappLoader
setRepositories
INFO: No work dir for
org.mobicents.servlet.sip.startup.ConvergedApplicationContextFacade@1ac3379
10 Oct 2011 9:27:40 AM org.apache.catalina.util.LifecycleBase start
INFO: The start() method was called on component [WebappLoader[/
chatroom-servlet-2.0.0.ALPHA2(1)]] after start() had already been
called. The second call will be ignored.
10 Oct 2011 9:27:45 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive Click2CallAsync.war
10 Oct 2011 9:27:46 AM org.apache.catalina.loader.WebappLoader
setRepositories
INFO: No work dir for
org.mobicents.servlet.sip.startup.ConvergedApplicationContextFacade@109ea96
10 Oct 2011 9:27:47 AM org.apache.catalina.util.LifecycleBase start
INFO: The start() method was called on component [WebappLoader[/
Click2CallAsync]] after start() had already been called. The second
call will be ignored.
10 Oct 2011 9:27:52 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive conference-
demo-2.0.0.ALPHA2.war
10 Oct 2011 9:27:53 AM org.apache.catalina.loader.WebappLoader
setRepositories
INFO: No work dir for
org.mobicents.servlet.sip.startup.ConvergedApplicationContextFacade@c063ad
10 Oct 2011 9:27:54 AM org.apache.catalina.util.LifecycleBase start
INFO: The start() method was called on component [WebappLoader[/
conference-demo-2.0.0.ALPHA2]] after start() had already been called.
The second call will be ignored.
10 Oct 2011 9:27:58 AM org.apache.catalina.startup.HostConfig
deployWAR
INFO: Deploying web application archive sip-servlets-management.war
10 Oct 2011 9:27:58 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory docs
10 Oct 2011 9:27:58 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
10 Oct 2011 9:27:59 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
10 Oct 2011 9:27:59 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
10 Oct 2011 9:28:00 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory host-manager
10 Oct 2011 9:28:00 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory manager
10 Oct 2011 9:28:00 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory ROOT
10 Oct 2011 9:28:01 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
10 Oct 2011 9:28:01 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
10 Oct 2011 9:28:02 AM net.java.stun4j.stack.NetAccessManager
installNetAccessPoint
WARNING: The NAPD(net.java.stun4j....@lelo.dyndns.org/
41.240.129.119:48057 status: running) failed to bind
java.net.BindException: Cannot assign requested address: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:
91)
at java.net.DatagramSocket.bind(DatagramSocket.java:372)
at java.net.DatagramSocket.<init>(DatagramSocket.java:211)
at net.java.stun4j.stack.NetAccessPoint.start(NetAccessPoint.java:
114)
at
net.java.stun4j.stack.NetAccessManager.installNetAccessPoint(NetAccessManager.java:
229)
at
net.java.stun4j.stack.StunStack.installNetAccessPoint(StunStack.java:
108)
at
net.java.stun4j.client.NetworkConfigurationDiscoveryProcess.start(NetworkConfigurationDiscoveryProcess.java:
173)
at
org.mobicents.servlet.sip.startup.SipProtocolHandler.start(SipProtocolHandler.java:
242)
at
org.apache.catalina.connector.Connector.startInternal(Connector.java:
933)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
145)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:
459)
at
org.mobicents.servlet.sip.startup.SipStandardService.startInternal(SipStandardService.java:
282)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
145)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:
724)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
145)
at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:304)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
10 Oct 2011 9:28:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 51958 ms

gvag

unread,
Oct 10, 2011, 3:35:23 AM10/10/11
to mobicents-public
It seems you are already running Tomcat somewhere.
> WARNING: The NAPD(net.java.stun4j.stack.AccessPo...@lelo.dyndns.org/

Lelo

unread,
Oct 10, 2011, 3:39:29 AM10/10/11
to mobicents-public
Hi Gvag

No, I'm not running Tomcat elsewhere. I've stopped my Tomcat service
to accomodate MSS.

George Vagenas

unread,
Oct 10, 2011, 4:15:07 AM10/10/11
to mobicent...@googlegroups.com
Looking closer to the log you provided, i think you are trying to bind to your external IP Address from your local machine which is not correct.

10 Oct 2011 9:28:02 AM net.java.stun4j.stack.NetAccessManager
installNetAccessPoint

41.240.129.119:48057 status:  running) failed to bind

gvag

--
George Vagenas

Jean Deruelle

unread,
Oct 10, 2011, 4:24:01 AM10/10/11
to mobicent...@googlegroups.com

Lelo

unread,
Oct 10, 2011, 5:05:50 AM10/10/11
to mobicents-public
My problem gentlemen, is that I've started my instances before with
the exact same config.
This problem arose after I re-installed XP.

On Oct 10, 10:24 am, Jean Deruelle <jean.derue...@gmail.com> wrote:
> You can try to disable stun to see if that helpshttp://ci.jboss.org/jenkins/view/Mobicents/job/Mobicents-Books/lastSu...
>
>
>
>
>
>
>
> On Mon, Oct 10, 2011 at 10:15 AM, George Vagenas <gvage...@gmail.com> wrote:
> > Looking closer to the log you provided, i think you are trying to bind to
> > your external IP Address from your local machine which is not correct.
>
> > 10 Oct 2011 9:28:02 AM net.java.stun4j.stack.NetAccessManager
> > installNetAccessPoint
> > WARNING: The NAPD(net.java.stun4j.stack.AccessPo...@lelo.dyndns.org/
>
> > 41.240.129.119:48057 status:  running) failed to bind
>
> > gvag

Jean Deruelle

unread,
Oct 10, 2011, 5:13:31 AM10/10/11
to mobicent...@googlegroups.com
Dump the OS then and switch to linux :-)
did you try disabling STUN to see if that helps at least ?

Lelo

unread,
Oct 10, 2011, 6:38:04 AM10/10/11
to mobicents-public
I'll check the STUN as soon as my cousin gets off the pc ;-)
I'm pursuing the linux option as well, started a new post, please
check it out.
> ...
>
> read more »

Jean Deruelle

unread,
Oct 10, 2011, 10:47:14 AM10/10/11
to mobicent...@googlegroups.com
It's OS independent. The issue here is related to a problem opening a local connection for STUN.
Reply all
Reply to author
Forward
0 new messages