Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1929

Invalid webapp deploys without error in management API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Beta1
    • None
    • Web
    • None

      $ 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

      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"
      

              rhn-engineering-jclere Jean-Frederic Clere
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: