2013-08-20 71 views
0

我已经通过jboss-cli为所有我的服务器组部署了应用程序,并且该应用程序已启用到所有组。直到那里没关系!jboss as 7:JBAS014639:启用的属性不可写(部署属性)

我需要禁用(未取消部署)的应用程序从我的集团之一(称为 “本田”),尽管JBoss的-CLI。问题是只有通过Web控制台才能使用此选项。

,当我经过的jboss-CLI和执行该

/server-group=honda/deployment=app01.war:write-attribute(name=enabled, value=false) 

我得到的回应

{ 
    "outcome" => "failed", 
    "failure-description" => {"domain-failure-description" => "JBAS014639: Attribute enabled is not writable"}, 
    "rolled-back" => true 
} 

我已经看了“JBAS014639:启用属性是不可写”在谷歌,但没有发现关于属性的启用部署的任何资源

请帮我

回答

0

用:读资源描述你看到WAR:

 "enabled" => { 
      "type" => BOOLEAN, 
      "description" => "Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts.)", 
      "expressions-allowed" => false, 
      "nillable" => true, 
      "default" => false, 
      "access-type" => "read-only", 
      "storage" => "configuration" 
     }, 

由于访问类型=只读你的错误。你有另一场:

  "status" => { 
      "type" => STRING, 
      "description" => "The current runtime status of a deployment. Possible status modes are OK, FAILED, and STOPPED. FAILED indicates a dependency is missing or a service could not start. STOPPED indicates that the deployment was not enabled or was manually stopped.", 

所以我猜你想要的是你的战争已经启用=假,状态=停下来,你的战争是不会被删除。您可以通过使用一个得到这个:

:read-operation-names 
{ 
"outcome" => "success", 
"result" => [ 
    "add", 
    "deploy", 
    "read-attribute", 
    "read-children-names", 
    "read-children-resources", 
    "read-children-types", 
    "read-operation-description", 
    "read-operation-names", 
    "read-resource", 
    "read-resource-description", 
    "redeploy", 
    "remove", 
    "undefine-attribute", 
    "undeploy", 
    "whoami", 
    "write-attribute" 
] 
} 

在这种情况下,你使用:取消部署禁用应用程序和:部署启用它。这就是网络控制台的功能。