1 Reply Latest reply on Mar 1, 2003 8:02 PM by tcmchow

    Why Jboss error out on startup?

    tcmchow

      I am using Apache 2.0.44, mod_jk2 and Jboss3.0.4/Tomcat4.1.12 bundle in Windows 2000P.

      Jboss has a startup error trying to use port 8080, here is the message:
      2003-03-01 16:40:24,075 INFO [STDOUT] Apache Tomcat/4.1.12-LE-jdk14
      2003-03-01 16:40:24,135 INFO [org.jboss.web.localhost.Engine] HttpConnector Opening server socket on all host IP addresses
      2003-03-01 16:40:24,145 ERROR [org.jboss.web.localhost.Engine] HttpConnector httpConnector, io problem:
      java.net.BindException: Address already in use: JVM_Bind:8080
      at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:980)
      at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1187)
      at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCatalinaService41.java:254)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


      I search through the FAQ and forium and do not have a solution. I checked that when I start Apache, it is not only take the port 80 but somehow also 8080 (it may automatically start Jetty or Tomcat through mod_jk2, I suspect). Here is what I get with netstat -a command:
      F:\>netstat -a

      Active Connections

      Proto Local Address Foreign Address State
      TCP tchow3:http tchow3:0 LISTENING
      TCP tchow3:epmap tchow3:0 LISTENING
      TCP tchow3:microsoft-ds tchow3:0 LISTENING
      TCP tchow3:1025 tchow3:0 LISTENING
      TCP tchow3:1026 tchow3:0 LISTENING
      TCP tchow3:1027 tchow3:0 LISTENING
      TCP tchow3:1029 tchow3:0 LISTENING
      TCP tchow3:8009 tchow3:0 LISTENING
      TCP tchow3:8080 tchow3:0 LISTENING
      TCP tchow3:8080 tchow3:1730 TIME_WAIT
      TCP tchow3:netbios-ssn tchow3:0 LISTENING
      UDP tchow3:epmap *:*
      UDP tchow3:snmp *:*
      UDP tchow3:microsoft-ds *:*
      UDP tchow3:1028 *:*
      UDP tchow3:netbios-ns *:*
      UDP tchow3:netbios-dgm *:*
      UDP tchow3:router *:*

      My question is:
      1. why Jboss goes after port 8080 if it is bundled with Tomcat (not sure how they integrate
      2. how do I resolve this error

      Help appreciated. Thanks
      Tom

        • 1. Re: Why Jboss error out on startup?
          tcmchow

          I found some posting suggest to comment out the 8080 port in the
          E:\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\conf\server.xml

          I did it but got following error:
          2003-03-01 19:59:35,359 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/jboss-3.0.4_tomcat-4.1.12/server/all/deploy/ejb-management.jar
          2003-03-01 19:59:35,359 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/jboss-3.0.4_tomcat-4.1.12/server/all/deploy/jbossweb-ejb.jar
          2003-03-01 19:59:35,580 ERROR [org.jboss.ejb.EJBDeployer] Verfiy failed
          java.lang.NoClassDefFoundError: org/mortbay/j2ee/session/interfaces/CMPStateHome
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)

          Am I getting closer, or, I break more stuff.