facebook

java.net.BindException: Address already in use: JVM_Bind

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #252840 Reply

    markusin
    Member

    Hello

    first of all I did not install tomcat as services. I read this article too:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-1927-view-next.html

    So it seems that tomcat is starting up, while I am launching eclipse.
    So I need always: go in tomcat bin dir, shutdown tomcat and than I am able to launch tomcat.

    Any idea what this could be

    using: eclipse 3.1.1 withm myEclipse pro 4.1.1

    error:

    
    java.net.BindException: Address already in use: JVM_Bind
        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 org.apache.catalina.core.StandardServer.await(StandardServer.java:343)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    

    thanks for helping me

    regards Innerebner Markus

    #252896

    Riyad Kalla
    Member

    So when you startup Tomcat, can you switch to the debug perspective and see it’s thread running? If you then click the app server control, go to Tomcat then “Stop” do you see the Thread get “terminated” appropriately?

    #253775

    markusin
    Member

    Hello Ryan

    Sorry for that late answer, but I was away (holiday).

    < If you then click the app server control, go to Tomcat then “Stop” do you see the Thread get “terminated” <appropriately?
    After the exception shown below ALL threads are terminated. I do not need to click the “Stop” button, because the appliciation is already terminated.

    What I probally forget to say. This happens only the first time, when Tomcat is started (after turning on my pc).

    I would try to remove my tomcat installation and reinstall it.

    regards Markus

    #253796

    Riyad Kalla
    Member

    Ahh, I’m willing to bet anything you installed Tomcat using the EXE and it got installed as a system service and is infact starting up when your computer starts up. Go to your administrative tools under Control Panel, then Services. Look for “Apache Tomcat” or “Tomcat”, open the settings and change it from Automatic mode to Manual mode, then hit OK and Stop it. You should be fine then.

    #253886

    markusin
    Member

    Hi,

    I was looking at the services, but tomcat did not run as a service daemon. Then I took a look to the registry and I see that there (don’t ask me why it was set there) tomcat was set to start on startup.

    Sorry again

    Markus

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: java.net.BindException: Address already in use: JVM_Bind

You must be logged in to post in the forum log in