-
15. Re: AS7 domain deployment failed
weinanli Jul 11, 2011 11:10 AM (in response to emuckenhuber)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
weinanli Jul 11, 2011 11:13 AM (in response to emuckenhuber)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
emuckenhuber Jul 11, 2011 11:22 AM (in response to weinanli)1 of 1 people found this helpfulWeinan 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.
-
18. Re: AS7 domain deployment failed
weinanli Jul 11, 2011 11:27 AM (in response to weinanli)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
oourfali Jul 11, 2011 1:53 PM (in response to emuckenhuber)I had the same problem.
Adding two virtual hosts (localhost + another one) will solve the problem.
-
20. Re: AS7 domain deployment failed
weinanli Jul 11, 2011 6:33 PM (in response to oourfali)Yes it works now! :-) Is it a bug?
-
21. Re: AS7 domain deployment failed
emuckenhuber Jul 12, 2011 4:44 AM (in response to weinanli)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
weinanli Jul 12, 2011 5:42 AM (in response to emuckenhuber)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
emuckenhuber Jul 12, 2011 5:50 AM (in response to weinanli)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.