facebook

[Closed] Port already in use error while deploying app

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #247560 Reply

    Ghazalawahid
    Member

    I had my J2EE project successfully running,then afterwards i just for experience sake,changed the JNDI name in all files whereever it was specified.Then i deploy it again and start the jboss server,but its giving error :

    “Caused by: javax.naming.NameNotFoundException: comp not bound”

    there are hundreds of line,in which few of them are:

    ” MBeans waiting for other MBeans:
    ObjectName: jboss:service=Naming
    state: FAILED
    I Depend On:
    Depends On Me: MBeanException: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    Cause: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind
    ObjectName: jboss.web.deployment:war=invoker.war,id=-595404997
    state: FAILED”

    Have any idea whats going on?

    #247578 Reply

    Riyad Kalla
    Member

    Try and reboot your machine. If you think you are starting/stopping things correctly and you are getting a “Port in use” that makes me think you have a hung process somewhere. Just rebooting is the easiest solution, see if it works after that.

    #247593 Reply

    Ghazalawahid
    Member

    Yes,its working after rebooting.Thanks.

    #297630 Reply

    tauzinger
    Member

    Worked for me too!

    #297642 Reply

    rmcvay
    Member

    Here’s a tip if you’re running on Windows. Send stop commands to your known running app server(s), exit ME, open the task manager and kill all running java. That may be a little quicker than a reboot depending on your overall environment.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] Port already in use error while deploying app

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