6 Replies Latest reply on Nov 10, 2003 3:09 AM by jonlee

    BindException on startup

    mmfive

      Hi,
      When I start JBoss ver. 3.2.1 I get this error, "17:03:15,824 ERROR [Http11Protocol] Error initializing endpoint, java.net.BindException: Address already in use: JVM_Bind:8080." I also get two other errors, which are shown on attached file of the startup output. All seems to work okay, any suggestions?

      Thanks Marco.

        • 1. Re: BindException on startup
          jonlee

          It looks like you have something already running on port 8080 of your system. It means the embedded servlet container (Jetty/Tomcat) cannot start. This can cause a number of other services to fail that are dependent on the service - such as your HTTP invoker.

          • 2. Re: BindException on startup
            jonlee

            Either change the binding for the servlet container HTTP port - situated in JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml or jbossweb-tomcat41.sar or jbossweb-jetty.sar or similar. However, it is usually better to disable the other service unless it is vital for some other function. Usually, this clash means you have another web server running.

            Hope that helps.

            • 3. Re: BindException on startup
              mmfive

              Hi,
              Thanks for the response. I noticed that it only happens when I use Oracle9i as my datasource (i.e it is running as service, it must have a http server in it). I was testing to get a different datasource instead of Hypersonic).

              Thanks Marco

              • 4. Re: BindException on startup
                mmfive

                Hi,
                Any suggestions on a port number? Sorry I'm still on my learner plates with JBoss and Enterprise Java.

                Thanks Marco.

                • 5. Re: BindException on startup
                  mmfive

                  Hi,
                  Still having problems with Oracle9i working with JBoss. If I changed to using MySQL, will I still have the same problem if the database / datasource resides on the same machine as JBoss (i.e. localhost)?

                  Thanks Marco.

                  • 6. Re: BindException on startup
                    jonlee

                    Oracle 9i has a web server at 8080 that is used as an administration port into Oracle - via a web interface. Switching to MySQL will avoid your port clash for JBoss as MySQL doesn't have a native web management interface. It should also be less resource hungry than Oracle so JBoss won't be fighting as hard for resource. It is good for learning when you are deploying applications often.