[
https://issues.jboss.org/browse/AS7-2854?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler commented on AS7-2854:
-------------------------------------
I wonder whether it is the correct approach to validate the DDs in the JSR88 layer. It
seems more natural/correct to validate the DDs in the subsystem that consumes the
deployment. The behaviour I would expect is that the (invalid) deployment reaches the
server, fails during deploy and that the deployment failure is communicated back to the
jsr88 layer.
{code}
16:59:32,801 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting
deployment of "file:/tmp/BadFilterMapping.war"
16:59:35,889 INFO [org.jboss.web] (MSC service thread 1-3) registering web context:
/ordering_filter-mapping_bad_war
16:59:36,102 INFO [org.jboss.as.server.controller] (pool-1-thread-1) Deployed
"file:/tmp/BadFilterMapping.war"
16:59:36,495 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped
deployment file:/tmp/BadFilterMapping.war in 123ms
16:59:36,542 INFO [org.jboss.as.server.controller] (pool-1-thread-1) Undeployed
"file:/tmp/BadFilterMapping.war"
{code}
JSR88 does not validate deployment descriptors
----------------------------------------------
Key: AS7-2854
URL:
https://issues.jboss.org/browse/AS7-2854
Project: Application Server 7
Issue Type: Bug
Components: JSR88
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Java EE Platform Specification EE8.5:
The deployment tools for Java EE containers must validate the deployment descriptors
against the Java EE deployment descriptor schemas or DTDs that correspond to the
deployment descriptors being processed. The appropriate schema or DTD is chosen by
analyzing the deployment descriptor to determine which version it claims to conform to.
Validation errors must cause an error to be reported to the Deployer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira