Permalink
Browse files

AS7-4187 jsp configuration is ignored

  • Loading branch information...
ctomc authored and bstansberry committed Mar 15, 2012
1 parent c34cb03 commit f3468453008c7b329f24e0681c83f32604fc82b5
Showing with 6 additions and 3 deletions.
  1. +6 −3 web/src/main/java/org/jboss/as/web/WebSubsystemAdd.java
@@ -140,14 +140,17 @@ protected boolean requiresRuntimeVerification() {
private ModelNode resolveConfiguration(OperationContext context, ModelNode model) throws OperationFailedException {
ModelNode res = new ModelNode();
ModelNode unresolvedContainer = model.get(Constants.CONTAINER);
for (AttributeDefinition attr : WebContainerDefinition.CONTAINER_ATTRIBUTES) {
res.get(Constants.CONTAINER).get(attr.getName()).set(attr.resolveModelAttribute(context, model));
res.get(Constants.CONTAINER).get(attr.getName()).set(attr.resolveModelAttribute(context, unresolvedContainer));
}
ModelNode unresolvedStaticResources = model.get(Constants.STATIC_RESOURCES);
for (SimpleAttributeDefinition attr : WebStaticResources.STATIC_ATTRIBUTES) {
res.get(Constants.STATIC_RESOURCES).get(attr.getName()).set(attr.resolveModelAttribute(context, model));
res.get(Constants.STATIC_RESOURCES).get(attr.getName()).set(attr.resolveModelAttribute(context, unresolvedStaticResources));
}
ModelNode unresolvedJspConf = model.get(Constants.JSP_CONFIGURATION);
for (SimpleAttributeDefinition attr : WebJSPDefinition.JSP_ATTRIBUTES) {
res.get(Constants.JSP_CONFIGURATION).get(attr.getName()).set(attr.resolveModelAttribute(context, model));
res.get(Constants.JSP_CONFIGURATION).get(attr.getName()).set(attr.resolveModelAttribute(context, unresolvedJspConf));
}
return res;

0 comments on commit f346845

Please sign in to comment.