[jboss-jira] [JBoss JIRA] Created: (JBAS-9326) Deploy operation reported as failure even if it was successful
Heiko Rupp (JIRA)
jira-events at lists.jboss.org
Thu Apr 14 16:36:33 EDT 2011
Deploy operation reported as failure even if it was successful
--------------------------------------------------------------
Key: JBAS-9326
URL: https://issues.jboss.org/browse/JBAS-9326
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Domain Management
Affects Versions: 7.0.0.Beta2
Reporter: Heiko Rupp
I've created a new servergroup 'frobnitz' with one managed AS that was not started.
I have deployed a war to it and get a failure back.
This makes on one side some sense, as it was not applied to the downed host, but as the war was applied to the SG itself, it should get a different kind of result:
After I have started the managed AS, the war file got successfully installed in it and deployed and I can call it as it should.
I think the scenario of deploying stuff to downed AS is common in scenarios, where you only want to start machines on demand when the load increases.
Upload:
{"outcome":"success","result":{"BYTES_VALUE":"7jgpMVmynfxpqp8UDleKLmtgbrA="},"compensating-operation":null}
Adding + deploy:
Json to send: {"steps":[{"address":[{"deployment":"test-simple.war"}],"operation":"add","runtime-name":"test-simple.war","hash":{"BYTES_VALUE":"7jgpMVmynfxpqp8UDleKLmtgbrA="},"name":"test-simple.war"},{"address":[{"server-group":"frobnitz"},{"deployment":"test-simple.war"}],"operation":"add","enabled":"true"}],"address":[],"operation":"composite"}
Return value from the domain:
==> {"outcome" : "failed", "result" : {"server-groups" : {"frobnitz" : {"myDemo" : {"host" : "local", "response" : {"outcome" : "failed", "failure-description" : [{ "java.lang.IllegalStateException" : "No handler for add at address [\n (\"host\" => \"local\"),\n (\"server\" => \"myDemo\"),\n (\"deployment\" => \"test-simple.war\")\n]" }]}}}}}, "failure-description" : "Operation was not applied successfully to any servers"}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list