5 Replies Latest reply on Jan 19, 2007 4:24 PM by rkhurana

    CoExist JBoss4.0.5.GA with apache Tomcat

    rkhurana

      EXperts :

      I have Apache Tomcat installed on my solaris machine. I want to install JBoss 4.0.5.GA and slowly migrate all my applications from Tomcat to JBoss. I installed JBoss, shutdown Tomcat, start JBoss - everything is good.

      But I want both to coexist for some time. So in the conf/jboss-service.xml, I uncommented the ServiceBindingManager property and tried with ports-01, ports-02 but I never get to make JBoss work. There are no exceptions reported when I start it with run.sh, I tried the URL http://:8180 or http://:8280 but I never see the JBoss welcome main page. I keep getting the page that says IE cannt display the page. Any clues? . I have even tried to manually change all the ports by prefixing 1 to them as advised in some of the posts I came across in Google but nothing helped.

      Pls help..

        • 1. Re: CoExist JBoss4.0.5.GA with apache Tomcat
          rkhurana

          Ok I know what the problem is. My machine has IP 192.168.1.201 and another static IP say 1.2.3.4. After the changes made to use ports-01, if I type http://192.168.1.201:8180, then it works but not with http://1.2.3.4:8180. In the server.log, I see that jboss.bind.address is taken as 0.0.0.0. I somehow need to change jboss.bind.address to 1.2.3.4. How do I do it?

          • 2. Re: CoExist JBoss4.0.5.GA with apache Tomcat
            rkhurana

            And If I use ./run.sh -b 1.2.3.4, then I get all sorts of Bind Exceptions saying that the port is being used. I have stopped Tomcat and web server. I dont understand who is using all those ports.

            • 3. Re: CoExist JBoss4.0.5.GA with apache Tomcat
              rkhurana

              Ok I now globally replaced ${jboss.bind.address} with my IP 1.2.3.4 but I get the same errors (Bind Exceptions) as using "run.sh -b 1.2.3.4"

              I have no clue now... the experts, pls reply.

              • 4. Re: CoExist JBoss4.0.5.GA with apache Tomcat
                peterj

                If the bind address is 0.0.0.0, then the server should be accepting input from all ip address (both 1.2.3.4 and 192.168.1.201). Since using http://192.168.1.201:8180 works, I would say that the server is reading the bindings file correctly.

                Since running "run.sh -b 1.2.3.4" caused binding exceptions, it would be safe to say that either the ports are already in use on that IP address, or there is something on your system (say a firewall) that is not allowing the server to open those ports on that IP address. I don't use Solaris, so I could not offer any suggestions along those lines.

                • 5. Re: CoExist JBoss4.0.5.GA with apache Tomcat
                  rkhurana

                  I dont think the ports are in use, since I have tried to use ports-01, ports-02 and ports-03 and the same error is reported. So it boils down to the fact that something is preventing to open those ports on the external IP (1.2.3.4) whereas on the internal IP (192.168.1.201, its fine)..