4 Replies Latest reply on Jan 18, 2008 2:41 PM by uabramov

    deploying web application as a singleton

    uabramov

      Hi,
      Is it possible to deploy web application as a singleton ?

      When I deploy ear into deploy-hasingleton it looks like the only Web component does not get deployed as singleton.

      Thanks You,

        • 1. Re: deploying web application as a singleton
          brian.stansberry

          That should work. Please describe in more detail what you are seeing.

          • 2. Re: deploying web application as a singleton
            uabramov

            Hi Brian,


            We use jboss 4.05. The ear contains EJB, JCA components and Web application.
            When two nodes are running I can access to web application. Then when I shutdown the main node I can see in the console of the second node the EJB and JCA components are getting activated, but nothing about the web application. I tried to connect to the web application via browser but get no such page error: "Unable to connect. Firefox can't establish a connection to the server at localhost:8080"

            I also can see that the port 8080, which supposed to be used by tomcat is not occupied. I checked server log of the second node - there was nor error there.
            In my development environment I run both node on the same machine.

            Thank You,
            Uri

            • 3. Re: deploying web application as a singleton
              brian.stansberry

              Tomcat listening or not on 'localhost:8080' is independent of whether your WAR is deployed and unrelated to use of deploy-hasingleton. So, you should start investigating there; find out why Tomcat isn't listening on the expected port. The war not deploying may just be a further symptom of a problem with the webserver.

              If you are running 2 nodes on the same machine, how are you avoiding port conflicts? Using ServiceBindingManager or using "-b localhost" on one and "-b www.xxx.yyy.zzz" on the other?

              • 4. Re: deploying web application as a singleton
                uabramov



                You were right the notes were competing for the same port. The problem was gone once I setup different ports for each node.

                Thanks a lot Brain, I really appreciate your help.
                Uri