5 Replies Latest reply on May 4, 2007 10:41 PM by int2

    Unable to deploy / run to JBoss from Netbeans, port 8080, 10

    xeion

      Hello,

      Im using NetBeans 5.5 and just installed JBoss-4.0.5.GA for evaluation and I run into problems when I try to deploy or run projects from NetBeans.
      It seems like NetBeans try to start JBoss everytime I try to deploy or run an J2EE application and is unable trying to rebind the port already used by JBoss..
      First it was port 8080 then I tried changeing port 8080 in server.xml but then it was port 1099 and if I try to change that port it only fails on the new port. Have anyone got this working?

      Also I never get a indication in Netbeans under Runtime->Servers that JBoss is running, I can start JBoss but it does not seem to have be able to get any status.

      Here are some error messages from Netbeans

      pre-init:
      init-private:
      init-userdir:
      init-user:
      init-project:
      do-init:
      post-init:
      init-check:
      init:
      deps-jar:
      deps-j2ee-archive:
      init:
      init:
      deps-jar:
      compile:
      library-inclusion-in-manifest:
      dist-ear:
      deps-jar:
      compile:
      library-inclusion-in-manifest:
      dist-ear:
      init:
      deps-jar:
      compile:
      library-inclusion-in-manifest:
      dist-ear:
      pre-pre-compile:
      pre-compile:
      do-compile:
      post-compile:
      compile:
      pre-dist:
      do-dist-without-manifest:
      do-dist-with-manifest:
      Building jar: E:\Development\Java\JBbossTest1\dist\JBbossTest1.ear
      post-dist:
      dist:
      pre-run-deploy:
      Starting server JBoss Application Server 4
      JBoss Application Server 4 Start Failed. HTTP Connector port 8080 is already in use.
      E:\Development\Java\JBbossTest1\nbproject\build-impl.xml:182: Deployment error:
      JBoss Application Server 4 Start Failed. HTTP Connector port 8080 is already in use.
      See the server log for details.
      BUILD FAILED (total time: 1 second)


      ....
      pre-dist:
      do-dist-without-manifest:
      do-dist-with-manifest:
      post-dist:
      dist:
      pre-run-deploy:
      Starting server JBoss Application Server 4
      JBoss Application Server 4 Start Failed. JNP service port 1199 is already in use.
      E:\Development\Java\JBbossTest1\nbproject\build-impl.xml:182: Deployment error:
      JBoss Application Server 4 Start Failed. JNP service port 1199 is already in use.
      See the server log for details.
      BUILD FAILED (total time: 4 seconds)
      


        • 1. Re: Unable to deploy / run to JBoss from Netbeans, port 8080

          Looks like a port conflict - you are probably running another server on the same port. Try stopping any other servers that run on your machine, or change port numbers in JBoss configuration files.

          • 2. Re: Unable to deploy / run to JBoss from Netbeans, port 8080
            xeion

            The strange thing is that im able to start JBoss server without any errors but when I try to deploy from Netbeans it tries to start JBoss again and then the ports are already used by JBoss.

            Netbeans does not seem to notice that JBoss already is running, not even under servers.

            • 3. Re: Unable to deploy / run to JBoss from Netbeans, port 8080
              carlosaq

              I have the same issue.
              I'm install NetBeans IDE 5.5 Build 200612070100 and previous have
              installed jboss-4.0.5.GA, then I add the server in Runtime Window. I can
              start the server without any problem, but when try to see the server info
              it don't show the server status and can Restart or Stop the server. It's
              like the server is not starter, but i go to the server console and the
              server is running.
              Any tips in order to correct this issue?

              • 4. Re: Unable to deploy / run to JBoss from Netbeans, port 8080
                dkoslu

                This is just a guess but I think the problem is that NetBeans is not able to manage or signal to/from JBoss. So it deploys the first time (starting Jboss) but is not receiving any further communication with JBoss and thinks it is not started.

                The only clue I've found is that there is a Tomcat account that NetBeans looks like it uses to communicate with Jboss. The account name is "ide", and it seems to be supplying a hidden password. Perhaps resetting or recreating this account is the key?

                I'm posting this because I'm having the same problem as of yesterday and looking for help on fixing it. Up until then, I generally had good interaction between Netbeans and JBoss.

                • 5. Re: Unable to deploy / run to JBoss from Netbeans, port 8080
                  int2

                  I got similar problem. Update your netbeans to 5.5.1 Rc1 to fix it.

                  Cheers