-
1. Re: AS7 domain deployment failed
jaikiran Jul 9, 2011 10:57 AM (in response to weinanli)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
weinanli Jul 9, 2011 11:21 AM (in response to jaikiran)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).
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:
The slave's log is here:
-
3. Re: AS7 domain deployment failed
jaikiran Jul 9, 2011 11:33 AM (in response to weinanli)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
oourfali Jul 10, 2011 6:18 AM (in response to jaikiran)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
weinanli Jul 10, 2011 9:47 AM (in response to jaikiran)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
emuckenhuber Jul 11, 2011 5:19 AM (in response to weinanli)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 Jul 11, 2011 5:35 AM (in response to emuckenhuber)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
emuckenhuber Jul 11, 2011 5:55 AM (in response to jaikiran)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
weinanli Jul 11, 2011 6:31 AM (in response to emuckenhuber)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 Jul 11, 2011 6:42 AM (in response to weinanli)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
weinanli Jul 11, 2011 7:14 AM (in response to jaikiran)Where should the jboss-web.xml to put in? Should I put it in 'domain/configuration' ?
-
12. Re: AS7 domain deployment failed
jaikiran Jul 11, 2011 7:38 AM (in response to weinanli)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
weinanli Jul 11, 2011 11:03 AM (in response to jaikiran)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
emuckenhuber Jul 11, 2011 11:08 AM (in response to weinanli)1 of 1 people found this helpfulWeinan 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'