1 Reply Latest reply on Feb 11, 2010 2:24 PM by Peter Johnson

    JBoss install on Windows XP using port 8082

    Gerald Joyce Newbie

      Hi All,

       

      First off, I appreciate this user community.

       

      I'm trying to get jboss-6.0.0.M1 up and running on Windows XP

       

      Q1.  I read somewhere that JBoss cannot be installed to to a path with spaces in the names, so the following would not work, i.e.,

      C:\Program Files\JBoss  .  Also that the same goes for the java installation,  C:\Program Files\Java\jdk1.6.0_18     Is this true?

       

      Q2.  I changed the port that JBoss runs on to 8082 by editing C:\Program Files\JBoss\jboss-6.0.0.M1\server\web\deploy\jbossweb.sar\server.xml

       

      as follows:

       

         <Service name="jboss.web">

         <!-- A HTTP/1.1 Connector on port 8082 -->

            <Connector protocol="HTTP/1.1" port="8082" address="${jboss.bind.address}"

                     connectionTimeout="20000" redirectPort="8443" />

       

      Is this OK?

       

      Q3.  I followed the steps in  C:\Program Files\JBoss\jboss-6.0.0.M1\bin\README-service.txt

          

       

      Service JBoss Application Server 5.1 installed

       

      C:\Program Files\JBoss\jboss-6.0.0.M1\bin>net start JBAS50SVC

      The JBoss Application Server 5.1 service could not be started

      The service did not report an error.

                    

      More help is available by typing NET HELPMSG 3534.

       

      C:\Program Files\JBoss\jboss-6.0.0.M1\bin>

       

      The JBoss Application Server 5.1 service is starting

      C:\Program Files\JBoss\jboss-6.0.0.M1\bin>service.bat install

       

       

       

       

       

      Any suggestions will be much appreciated.

       

      -Jerry

        • 1. Re: JBoss install on Windows XP using port 8082
          Peter Johnson Master

          Q1) Yes, the recommendation is to place neither the JDK nor JBoss AS into Program Files or in Documents and Settings on XP. I have JBoss AS at:


          c:/opt/jboss/as/jboss-5.1.0.GA

           

          and the JDK at:

           

          c:/apps/Java/jdk1.6.0_18

           

          Q2) Yes, that is OK. However, the better approach to changing any of the ports (including the HTTP port) is to edit the server/xxx/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml file.

           

          Q3) To start JBoss AS, open a command prompt an 'cd' to the bin directory and run:

           

          run

           

          What you did was attempt to start JBoss AS as a service, but you first need to register it as a service. Since you are just now starting out with JBoss AS I highly recommend you run it from the command line (as indicated about) until you are comfortable with it. Later we can discuss how to set it up as a service. It is not hard to do, but it is much easier to debug problems you might encounter if it is not running as a service.