[
https://issues.jboss.org/browse/AS7-1948?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-1948 at 9/27/11 8:48 AM:
--------------------------------------------------------------
Please also verify that the description is in sync with the model
{code}
[standalone@localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true)
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the OSGi
subsystem",
"attributes" => {"activation" => {
"description" => "How the OSGi subsystem is activated.
Possible values: lazy, eager.",
"type" => STRING,
"default" => "LAZY",
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "no-services"
}},
"children" => {
"configuration" => {
"description" => "OSGi Configuration Admin information.
",
"model-description" => {"*" => {
"description" => "OSGi Configuration Admin
information. ",
"attributes" => {"entries" => {
"description" => "The configuration data
associated with the PID.",
"type" => OBJECT,
"required" => true,
"value-type" => OBJECT,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
},
"property" => {
"description" => "OSGi Framework properties.",
"model-description" => {"*" => {
"description" => "OSGi Framework properties.",
"attributes" => {"value" => {
"description" => "The value of the Framework
property.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
},
"module" => {
"description" => "Pre-loaded modules and
bundles.",
"model-description" => {"*" => {
"description" => "Pre-loaded modules and
bundles.",
"attributes" => {"start" => {
"description" => "Sets the startlevel of a
pre-loaded module. Setting the start level causes the module to be started once the
relevant framework startlevel has been reached. Specifying the start level only applies to
modules which are OSGi bundles.",
"type" => INT,
"required" => false,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
}
}
}
}
{code}
The work should start with defining a correct description. The model should then be
brought in sync with the description.
was (Author: thomas.diesler):
Please also verify that the description is in sync with the model
{code}
[standalone@localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true)
{
"outcome" => "success",
"result" => {
"description" => "The configuration of the OSGi
subsystem",
"attributes" => {"activation" => {
"description" => "How the OSGi subsystem is activated.
Possible values: lazy, eager.",
"type" => STRING,
"default" => "LAZY",
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "no-services"
}},
"children" => {
"configuration" => {
"description" => "OSGi Configuration Admin information.
",
"model-description" => {"*" => {
"description" => "OSGi Configuration Admin
information. ",
"attributes" => {"entries" => {
"description" => "The configuration data
associated with the PID.",
"type" => OBJECT,
"required" => true,
"value-type" => OBJECT,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
},
"property" => {
"description" => "OSGi Framework properties.",
"model-description" => {"*" => {
"description" => "OSGi Framework properties.",
"attributes" => {"value" => {
"description" => "The value of the Framework
property.",
"type" => STRING,
"required" => true,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
},
"module" => {
"description" => "Pre-loaded modules and
bundles.",
"model-description" => {"*" => {
"description" => "Pre-loaded modules and
bundles.",
"attributes" => {"start" => {
"description" => "Sets the startlevel of a
pre-loaded module. Setting the start level causes the module to be started once the
relevant framework startlevel has been reached. Specifying the start level only applies to
modules which are OSGi bundles.",
"type" => INT,
"required" => false,
"access-type" => "read-only",
"storage" => "configuration"
}}
}}
}
}
}
}
{code}
Inconsistent model representation for osgi subsystem
----------------------------------------------------
Key: AS7-1948
URL:
https://issues.jboss.org/browse/AS7-1948
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.1.0.Beta1
There are a number of inconsistencies in the management model
{code}
[standalone@localhost:9999 /] /subsystem=osgi:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"activation" => "lazy",
"configuration" =>
{"org.apache.felix.webconsole.internal.servlet.OsgiManager" =>
{"entries" => {"manager.root" => "jboss-osgi"}}},
"module" => {
"org.apache.felix.scr" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.log" => {
"module" => undefined,
"start" => "1"
},
"org.jboss.osgi.webapp" => {
"module" => undefined,
"start" => "3"
},
"org.jboss.osgi.http" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.metatype" => {
"module" => undefined,
"start" => "2"
},
"org.apache.aries.jmx" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.blueprint" => {
"module" => undefined,
"start" => "3"
},
"org.apache.aries.util" => {"module" =>
undefined},
"org.jboss.osgi.logging" => {
"module" => undefined,
"start" => "1"
},
"org.osgi.compendium" => {"module" => undefined},
"org.jboss.osgi.webconsole" => {"module" =>
undefined},
"org.jboss.logging" => {"module" => undefined},
"org.jboss.as.osgi.configadmin" => {
"module" => undefined,
"start" => "1"
},
"javaee.api" => {"module" => undefined},
"org.jboss.netty" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.eventadmin" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.jmx" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.configadmin" => {
"module" => undefined,
"start" => "1"
},
"org.apache.felix.webconsole" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.xerces" => {
"module" => undefined,
"start" => "3"
},
"org.projectodd.stilts" => {
"module" => undefined,
"start" => "2"
}
},
"property" => {
"org.osgi.framework.startlevel.beginning" => {"value"
=> "1"},
"org.osgi.framework.system.packages.extra" => {"value"
=> "org.apache.commons.logging;version=1.1.1,
org.apache.log4j;version=1.2,
org.jboss.as.osgi.service;version=7.0,
org.jboss.osgi.deployment.interceptor;version=1.0,
org.jboss.osgi.spi.capability;version=1.0,
org.jboss.osgi.spi.util;version=1.0,
org.jboss.osgi.testing;version=1.0,
org.jboss.osgi.vfs;version=1.0,
org.slf4j;version=1.5.10,"},
"org.jboss.osgi.system.modules" => {"value" =>
"org.apache.commons.logging,
org.apache.log4j,
org.jboss.as.osgi,
org.slf4j,"}
}
}
}
{code}
#1 properties should be represented equal for the configuration and framework
#2 "module" => undefined does not make sense
#3 startlevel should be named 'startlevel' not 'start'
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira