3 Replies Latest reply on Jan 30, 2002 10:17 PM by Junya Yamaguchi

    how to change port on tomcat3.2.3

    Junya Yamaguchi Newbie

      on jboss2.4.3-tomacat3.2.3
      i want to change the http port from defalut to 80.
      once i modified the server.xml, EmbbededTomcat MBean couldn't start.
      i found resolution for tomcat4.0, but didn't it for tomcat3.2.3.
      does anyone have answer?
      thank you.

        • 1. Re: how to change port on tomcat3.2.3
          Sjus Newbie

          you can change the port in the jboss.jcml (folder jboss/conf/tomcat/). my configuration looks like this:


          <!-- ==================================================================== -->
          <!-- Classloading -->
          <!-- ==================================================================== -->

          8083
          <!-- Should resources and non-EJB classes be downloadable -->
          true

          ...


          you can change the port also manually during the server is started in the JMX agent through http://localhost:8082
          and then you can manage the MBean:
          DefaultDomain:service=Webserver
          (but this will not be saved after shutdown the server!)

          so its better to go to the jboss.jcml..

          hope it helps!
          sjus

          • 2. Re: how to change port on tomcat3.2.3
            Junya Yamaguchi Newbie

            thank you for reply, but
            i change the jboss.jcml like this.

            80


            but,it doesn't work.
            so, i change the port from 8080 to 80 in the server.xml like this.
            <!-- Normal HTTP -->





            it occurs error...
            ********************************************************
            [EmbeddedTomcatServiceSX] Starting
            [EmbeddedTomcatServiceSX] Starting EmbeddedTomcatSX....
            [Default] Starting tomcat. Check logs/tomcat.log for error messages
            [Default] java.net.BindException: Address in use: JVM_Bind
            [Default] at java.net.PlainSocketImpl.socketBind(Native Method)
            [Default]
            [Default] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
            [Default]
            [Default] at java.net.ServerSocket.(ServerSocket.java:170)
            [Default]
            [Default] at java.net.ServerSocket.(ServerSocket.java:121)
            [Default]
            [Default] at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocket
            Factory.java:97)
            [Default]
            [Default] at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239)

            [Default]
            [Default] at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
            [Default]
            [Default] at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
            [Default]
            [Default] at org.jboss.tomcat.TomcatEntry.execute(TomcatEntry.java:338)
            [Default]
            [Default] at org.jboss.tomcat.TomcatEntry.(TomcatEntry.java:76)
            [Default]
            [Default] at org.jboss.tomcat.EmbeddedTomcatServiceSX.startService(EmbeddedTomcatServiceSX.jav
            a:88)
            [Default]
            [Default] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationSer
            vice.java:836)
            [Default]
            [Default] at $Proxy0.start(Unknown Source)
            [Default]
            [Default] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
            [Default]
            [Default] at java.lang.reflect.Method.invoke(Native Method)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            [Default]
            [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            [Default]
            [Default] at org.jboss.Main.(Main.java:221)
            [Default]
            [Default] at org.jboss.Main$1.run(Main.java:127)
            [Default]
            [Default] at java.security.AccessController.doPrivileged(Native Method)
            [Default]
            [Default] at org.jboss.Main.main(Main.java:123)
            [Default]
            ********************************************************

            i also tried changing the port to 9200, it works well.
            i think port 80 is already used by JVM..?

            • 3. Re: how to change port on tomcat3.2.3
              Junya Yamaguchi Newbie

              thank you, it was resolved!
              IIS service has hold port 80.
              once i stopped that service, it works well.
              thank you so much.