1 2 Previous Next 23 Replies Latest reply on Jul 12, 2011 5:50 AM by Emanuel Muckenhuber Go to original post
      • 15. Re: AS7 domain deployment failed
        Weinan Li Newbie

        I stopped the server and edited the domain.xml, then start the server with domain.sh. Then the 'default-virtual-server' is removed automatically.

        • 16. Re: AS7 domain deployment failed
          Weinan Li Newbie

          Yes now the '/profile=default/subsystem=web:read-children-names(child-type=connector)' works :-)

           

          The log is here:

          /profile=default/subsystem=web:read-children-names(child-type=connector)

           

          {

              "outcome" => "success",

              "result" => ["http"]

          }

           

          But:

           

          /profile=default/subsystem=web/connector=http:read-resource(recursive=true)

          {

              "outcome" => "success",

              "result" => {

                  "protocol" => "HTTP/1.1",

                  "scheme" => "http",

                  "socket-binding" => "http",

                  "ssl" => undefined,

                  "virtual-server" => undefined

              }

          }

          • 17. Re: AS7 domain deployment failed
            Emanuel Muckenhuber Master

            Weinan Li wrote:

             

            I stopped the server and edited the domain.xml, then start the server with domain.sh. Then the 'default-virtual-server' is removed automatically.

            Ok, thanks. That's a bug which i'm going to fix. Maybe using an <alias /> is the easiest in the meantime, if that works for you.

            1 of 1 people found this helpful
            • 18. Re: AS7 domain deployment failed
              Weinan Li Newbie

              I've tried to add the virutal server dynamically:

               

               

              [domain@10.0.1.3:9999 /] /profile=default/subsystem=web/virtual-server=example.com:add              
              {
                  "outcome" => "success",
                  "result" => {"server-groups" => [("main-server-group" => {
                  "master" => {
                      "host" => "master",
                      "response" => {"outcome" => "success"}
                  },
                  "slave" => {
                      "host" => "slave",
                      "response" => {
                          "outcome" => "success",
                          "result" => undefined
                      }
                  }
              })]}
              
              

               

              And then deploy the war, and get the following result from server log:

               

              [Server:server-one] 23:17:20,975 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "my-webapp.war"
              [Server:server-one] 23:17:21,221 INFO  [org.jboss.as.server.controller] (pool-1-thread-4) Deployment of "my-webapp.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.web.\"my-webapp.war\""]}
              [Server:server-one] 23:17:21,245 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment my-webapp.war in 24ms 
              

               

              my-webapp.war is just an 'empty' web project. How to futher investigate the problem?

              • 19. Re: AS7 domain deployment failed
                Oved Ourfali Newbie

                I had the same problem.

                Adding two virtual hosts (localhost + another one) will solve the problem.

                • 20. Re: AS7 domain deployment failed
                  Weinan Li Newbie

                  Yes it works now! :-) Is it a bug?

                  • 21. Re: AS7 domain deployment failed
                    Emanuel Muckenhuber Master

                    Well unless you change the 'default-virtual-server' the virtual server 'localhost' is required. We are going to change the name 'localhost' since it's also used for internal wiring and therefore misleading. The persistence for the 'default-virtual-server' attribute will be fixed in the next release.

                    • 22. Re: AS7 domain deployment failed
                      Weinan Li Newbie

                      Even I changed default-virtual-server to the things other than the localhost, it is still required.

                       

                      I don't know whether this is caused by the same bug as reported above.

                      • 23. Re: AS7 domain deployment failed
                        Emanuel Muckenhuber Master

                        Weinan Li wrote:

                         

                        Even I changed default-virtual-server to the things other than the localhost, it is still required.

                         

                        I don't know whether this is caused by the same bug as reported above.

                        I see. Ok, that's an unrelated bug. I'll fix that as well. Thanks.

                        1 2 Previous Next