1 2 Previous Next 23 Replies Latest reply on Jul 12, 2011 5:50 AM by Emanuel Muckenhuber

    AS7 domain deployment failed

    Weinan Li Newbie

      Hi,

      I've created a webapp using maven command:

       

      mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
      
      


      And it creates a war with the following contents:

       

      |-- my-webapp
      |   |-- META-INF
      |   |-- WEB-INF
      |   |   |-- classes
      |   |   `-- web.xml
      |   `-- index.jsp
      

       

      It's a very simple WAR. I've tried to deploy it in a server group called 'main-server-group' with http management console: http://myip:9990/App.html, but the deployment get failed with following message on both master and slave host:

       

      [Server:server-one] 22:34:52,146 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "my-webapp.war"
      [Server:server-one] 22:34:52,462 INFO  [org.jboss.as.server.controller] (pool-1-thread-2) Deployment of "my-webapp.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.web.\"my-webapp.war\""]}
      [Server:server-one] 22:34:52,462 INFO  [org.jboss.as.controller] (pool-1-thread-2) Service status report
      [Server:server-one]    New missing/unsatisfied dependencies:
      [Server:server-one]       service jboss.web.host.localhost (missing)
      [Server:server-one] 
      [Server:server-one] 22:34:52,484 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped deployment my-webapp.war in 22ms
      [Server:server-one] 22:34:52,485 INFO  [org.jboss.as.controller] (MSC service thread 1-8) Service status report
      [Server:server-one]    Newly corrected services:
      [Server:server-one]       service jboss.web.host.localhost (no longer required)
      [Server:server-one] 
      

       

      I have no idea how I can solve the problem. Can anyone help? Thanks!

        • 1. Re: AS7 domain deployment failed
          jaikiran pai Master

          Have you done any changes to the clean installation of JBoss AS? Also can you please attach the entire server.log file?

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

            I've downloaded jboss-7.0.0.CR1(whiterabbit) from http://www.jboss.org/jbossas/downloads

             

            I have two hosts to run the server group:

             

            ***master: 10.0.1.3***

             

            - domain.xml:

             

            <server-groups>

            ...

                    <deployments>

                        <deployment name="my-webapp.war" runtime-name="my-webapp.war" enabled="false"/>

                    </deployments>

                </server-group>

            ...

            </server-groups>

             

            host.xml:

             

            <host xmlns="urn:jboss:domain:1.0"

                  name="master">

            ...

            <domain-controller>

               <local/>

            </domain-controller>

            <interfaces>

                <interface name="management">

                    <inet-address value="10.0.1.3"/>

                </interface>

                <interface name="public">

                   <inet-address value="10.0.1.3"/>

                </interface>

            </interfaces>

             

            ***slave: 10.0.1.18***

             

            - host.xml:

            <host xmlns="urn:jboss:domain:1.0"

                  name="slave">

            ...

                <domain-controller>

                   <remote host="10.0.1.3" port="9999"/>

                </domain-controller>

            ...

                <interfaces>

                    <interface name="management">

                        <inet-address value="10.0.1.18"/>

                    </interface>

                    <interface name="public">

                       <inet-address value="10.0.1.18"/>

                    </interface>

                </interfaces>

             

            I've deleted the domain.xml from slave host. That's all what I didn't to the configurations, and haven't touch other parts of config(didn't add/remove any modules).

             

            report.jpg

             

            The result is that the deployment not cannot be enabled. When I tried to enable it in server group it will report the error.

             

            The master's log is here:

             

            http://pastebin.com/vRjgvV1q

             

            The slave's log is here:

             

            http://pastebin.com/0RzUE8y7

            • 3. Re: AS7 domain deployment failed
              jaikiran pai Master

              Did you do any changes to the domain.xml in the "web" subsystem configuration? Can you attach your updated domain.xml?

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

                I have a similar issue.

                This is my standalone.xml:

                 

                    <subsystem xmlns="urn:jboss:domain:web:1.0">
                        <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
                        <virtual-server name="sipa-rhel6.eng.lab.tlv.redhat.com" enable-welcome-root="true">
                        </virtual-server>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:webservices:1.0" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:jaxwsconfig="urn:jboss:jbossws-jaxws-config:4.0">
                        <wsdl-host>
                            sipa-rhel6.eng.lab.tlv.redhat.com
                        </wsdl-host>
                        <modify-wsdl-address>
                            true
                        </modify-wsdl-address>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:weld:1.0"/>

                 

                I don't use localhost in the standalone.xml file, and yet I get the error:

                 

                   New missing/unsatisfied dependencies:

                      service jboss.web.host.localhost (missing)

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

                  I haven't changed any configurations in domain.xml, just remove 'other-server-group' and keep 'main-server-group' in 'server-groups'

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

                    In this case you would either need to change the virtual host configuration in jboss-web.xml or you can set the "default-virtual-server" attribute in web subsystem to the host you defined.

                    • 7. Re: AS7 domain deployment failed
                      jaikiran pai Master

                      Emanuel Muckenhuber wrote:

                       

                      In this case you would either need to change the virtual host configuration in jboss-web.xml or you can set the "default-virtual-server" attribute in web subsystem to the host you defined.

                      Should perhaps have been handled internally, isn't it? Instead of users having to do that. Thoughts?

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

                         

                        jaikiran pai wrote:

                         

                        Emanuel Muckenhuber wrote:

                         

                        In this case you would either need to change the virtual host configuration in jboss-web.xml or you can set the "default-virtual-server" attribute in web subsystem to the host you defined.

                        Should perhaps have been handled internally, isn't it? Instead of users having to do that. Thoughts?

                        Hmm, perhaps. In case there is a single configured virtual server we could automatically make it the default, in case there a multiple we might still want to require either the attribute in the domain config or jboss-web.xml. Is that what you were thinking?

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

                          Is there jboss-web.xml exists in AS7? I've searched the AS7 server dir and cannot find the file. I've also tried to find to documentations in https://docs.jboss.org/author/display/AS7/Admin+Guide but cannot find anything related to 'jboss-web.xml' or 'default-virtual-server' informations. Could you please provide any docs/ details on these configurations so that I can find a way to solve the problem? Thanks!

                          • 10. Re: AS7 domain deployment failed
                            jaikiran pai Master

                            Weinan Li wrote:

                             

                            Is there jboss-web.xml exists in AS7? I've searched the AS7 server dir and cannot find the file. I've also tried to find to documentations in https://docs.jboss.org/author/display/AS7/Admin+Guide but cannot find anything related to 'jboss-web.xml' or 'default-virtual-server' informations. Could you please provide any docs/ details on these configurations so that I can find a way to solve the problem? Thanks!

                            You'll find that xsd at JBOSS_HOME/docs/schema/jboss-web.xsd.

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

                              Where should the jboss-web.xml to put in? Should I put it in 'domain/configuration' ?

                              • 12. Re: AS7 domain deployment failed
                                jaikiran pai Master

                                Weinan Li wrote:

                                 

                                Where should the jboss-web.xml to put in? Should I put it in 'domain/configuration' ?

                                You shouldn't be requiring a jboss-web.xml. Emanuel was referring to setting the default-virtual-server attribute of the web subsytem in the domain.xml. For example:

                                 

                                <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server=".....">
                                
                                • 13. Re: AS7 domain deployment failed
                                  Weinan Li Newbie

                                  I've tried to set the configuration of domain.xml on master host:

                                   

                                  <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="10.0.1.3">

                                      <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>

                                      <virtual-server name="10.0.1.3" enable-welcome-root="true">

                                          <alias name="example.com"/>

                                      </virtual-server>

                                  </subsystem>

                                   

                                  And started the server and slave. After both hosts started, the domain.xml was edited back automatically by master server:

                                   

                                  <subsystem xmlns="urn:jboss:domain:web:1.0">

                                   

                                  ^^^ The 'default-virtual-server' was removed by the process. From the log I see nothing differenet with before. And here's the log from admin console:

                                   

                                  liweinan@mg:~/projs/jboss-7.0.0.CR1/bin$ ./jboss-admin.sh

                                  You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

                                  [disconnected /] connect 10.0.1.3                                       

                                  Connected to domain controller at 10.0.1.3:9999

                                  [domain@10.0.1.3:9999 /] /subsystem=web:read-children-names(child-type=connector)

                                  {

                                      "outcome" => "failed",

                                      "failure-description" => "No handler for read-children-names at address [(\"subsystem\" => \"web\")]",

                                      "rolled-back" => true

                                  }

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

                                    Weinan Li wrote:

                                     

                                    I've tried to set the configuration of domain.xml on master host:

                                     

                                    <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="10.0.1.3">

                                        <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>

                                        <virtual-server name="10.0.1.3" enable-welcome-root="true">

                                            <alias name="example.com"/>

                                        </virtual-server>

                                    </subsystem>

                                     

                                    And started the server and slave. After both hosts started, the domain.xml was edited back automatically by master server:

                                     

                                    <subsystem xmlns="urn:jboss:domain:web:1.0">

                                     

                                    ^^^ The 'default-virtual-server' was removed by the process. From the log I see nothing differenet with before. And here's the log from admin console:

                                    Hmm, yeah at the moment you need to stop the processes first, then edit the configuration file for this to work.

                                     

                                    Weinan Li wrote:

                                     

                                    liweinan@mg:~/projs/jboss-7.0.0.CR1/bin$ ./jboss-admin.sh

                                    You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.

                                    [disconnected /] connect 10.0.1.3                                       

                                    Connected to domain controller at 10.0.1.3:9999

                                    [domain@10.0.1.3:9999 /] /subsystem=web:read-children-names(child-type=connector)

                                    {

                                        "outcome" => "failed",

                                        "failure-description" => "No handler for read-children-names at address [(\"subsystem\" => \"web\")]",

                                        "rolled-back" => true

                                    }

                                    You are missing to address the profile as well like - '/profile=default/subsystem=web'

                                    1 of 1 people found this helpful
                                    1 2 Previous Next