[
https://issues.jboss.org/browse/AS7-1929?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry updated AS7-1929:
----------------------------------
Assignee: Remy Maucherat (was: Brian Stansberry)
Component/s: Web
I'm making an assumption that the exceptions shown in the description are not
resulting in any MSC service failure. Without an MSC failure the management layer is not
going to detect any problem and will not roll back the deployment.
If this assumption is incorrect, please assign back to me.
Invalid webapp deploys without error in management API
------------------------------------------------------
Key: AS7-1929
URL:
https://issues.jboss.org/browse/AS7-1929
Project: Application Server 7
Issue Type: Bug
Components: Web
Reporter: Thomas Diesler
Assignee: Remy Maucherat
Fix For: 7.1.0.Beta1
$ mvn -Dtest=EnterpriseDeploymentTestCase test
Running org.jboss.as.test.embedded.deployment.EnterpriseDeploymentTestCase
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.29 sec <<<
FAILURE!
Results :
Failed tests:
testDistributeBadWar(org.jboss.as.test.embedded.deployment.EnterpriseDeploymentTestCase):
expected:<Failed> but was:<Completed>
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0
{code}
09:20:52,309 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting
deployment of "file:/tmp/deployment-bad-web.war"
09:20:52,381 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3)
Context [/custom-context] startup failed due to previous errors:
java.lang.IllegalArgumentException: Invalid <url-pattern> /myapp
/* in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2235)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2210)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.web.deployment.JBossContextConfig.processWebMetaData(JBossContextConfig.java:482)
[jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.web.deployment.JBossContextConfig.applicationWebConfig(JBossContextConfig.java:167)
[jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:417)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:182)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.as.web.deployment.JBossContextConfig.lifecycleEvent(JBossContextConfig.java:160)
[jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3766)
[jbossweb-7.0.1.Final.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
[jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
09:20:52,387 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3)
Context [/custom-context] startup failed due to previous errors
09:20:52,387 INFO [org.jboss.web] (MSC service thread 1-3) registering web context:
/custom-context
09:20:52,421 INFO [org.jboss.as.server.controller] (pool-1-thread-1) Deployed
"file:/tmp/deployment-bad-web.war"
{code}
--
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