12 Replies Latest reply on Sep 27, 2002 4:09 AM by ewen

    jboss 8080

    barinek

      how do I change the default jboss port?

        • 1. Re: jboss 8080
          mentox

          You have to add attributes to the mbean node in jboss.jcml.

          I think it is like this

          80

          or try to search this string or add this.

          <!-- A HTTP Connector on port 8080 -->

          • 2. Re: jboss 8080
            benw

            Depends which version of JBoss you are using and whether you are using the Tomcat or Jetty version.

            For JBoss 3.0 Tomcat (assuming you are running the default server):

            1. Go to the default/deploy directory. You should see a file called tomcat4-service.xml. Edit that file and look for port="8080" and change it to whatever you like.

            For JBoss 3.0 Jetty (again assuming you are running the default server):

            1. Go to the default/deploy directory. You should see a jbossweb.sar/META-INF subdirectory. Look for a file called jboss-service.xml file. Edit that file and look for default="8080" and change it to whatever you like.

            Ben

            • 3. Re: jboss 8080
              barinek

              i have 4 jboss-service.xml files and none contain default=8080


              ./server/all/conf/
              ./server/default/conf
              ./server/minimal/conf
              ./client/METE-INF

              • 4. Re: jboss 8080
                eliotc

                Doesn't Jboss have a web console? If so what is the default port and url for it?

                I tried http://localhost:8082 but found nothing.

                • 5. Re: jboss 8080

                  The latest versions of jboss use a true j2ee web-app
                  try
                  http://localhost:8080/jmx-console

                  Regards,
                  Adrian

                  • 6. Re: jboss 8080

                    The config for the embedded webserver is at:

                    Tomcat
                    server/default/deploy/tomcat4-service.xml

                    Jetty (JBoss/WEB)
                    server/default/deploy/JBossWEB.sar/META-INF/jboss-service.xml

                    Regards,
                    Adrian

                    • 7. Re: jboss 8080
                      barinek

                      server/default/deploy/JBossWEB.sar/META-INF/jboss-service.xml

                      this file does not exist!

                      • 8. Re: jboss 8080

                        I used to be called something like

                        server/default/deploy/jetty-plugin.sar/META-INF/jboss-service.xml

                        If you have the Tomcat distribution it won't exist.

                        Regards,
                        Adrian

                        • 9. Re: jboss 8080
                          roger01

                          I am currently running JBoss 3.0.2 with embedded Tomcat 4.0.4 on Linux and have changed tomcat4-service.xml so that it is on port 80. I have two questions:

                          1. When do I need to change the system properties section of conf/jboss-service.xml to also be port 80 instead of 8080. Perhaps an equivalent question is when do I need to use http-invoker.sar? Since I have already made the change to tomcat4-service.xml should I make the change to conf/jboss-service.xml just to be safe?

                          2. What is the role of port 8083 now please? When I try localhost:8083 there is a response, but the response is a completely blank page. Is this correct?

                          Thanks in anticipation
                          Roger

                          • 10. Re: jboss 8080

                            The HTTPInvoker allows ejb requests to go over
                            http using a servlet. So yes it needs to
                            match the web service in the port settings.

                            8083 is a simple webserver for downloading of classes
                            from the server to the client. Read the RMI docs
                            about codebase.

                            Regards,
                            Adrian

                            • 11. Re: jboss 8080
                              roger01

                              Thanks very much Adrian.

                              Regards,
                              Roger

                              • 12. Re: jboss 8080
                                ewen

                                add a Java VM Argument: -Djetty.port=8888 to u start script.

                                everything is ok.