Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-410

Unable to test an archive with comments in web.xml

    Details

      Description

      I had errorneous in-container-web.xml, so parsing it failed with ContainerDeployController.forEachManagedDeployment .
      Successively, Arquillian threw the exception below.
      To reproduce, you can run Tomcat remote container from the commit
      [tomcat e7572f3] Some progress with ArquillianServletRunner
      from https://github.com/OndraZizka/arquillian .

      org.jboss.arquillian.container.tomcat.remote_6.TomcatRemoteInContainerTestCase Time elapsed: 1.419 sec <<< ERROR!
      java.lang.NullPointerException
      at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:204)
      at org.jboss.arquillian.impl.client.container.ContainerDeployController.undeployManaged(ContainerDeployController.java:99)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)
      at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

      Full ST attached.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            ozizka Ondrej Zizka added a comment - - edited

            BTW the "invalid" web.xml is caused by a presence of comment. I'd consider that being a bug too. Perhaps ShrinkWrap's?

            Show
            ozizka Ondrej Zizka added a comment - - edited BTW the "invalid" web.xml is caused by a presence of comment. I'd consider that being a bug too. Perhaps ShrinkWrap's?
            Hide
            ozizka Ondrej Zizka added a comment -

            Another example of this NPE: https://gist.github.com/908497

            Show
            ozizka Ondrej Zizka added a comment - Another example of this NPE: https://gist.github.com/908497
            Hide
            kpiwko Karel Piwko added a comment - - edited

            This issue is due to ShrinkDesc modifying web.xml of the archive during deployment.

            Root cause (from stacktrace):

            org.jboss.shrinkwrap.descriptor.api.DescriptorExportException: Could not export Node strcuture to XML

            Show
            kpiwko Karel Piwko added a comment - - edited This issue is due to ShrinkDesc modifying web.xml of the archive during deployment. Root cause (from stacktrace): org.jboss.shrinkwrap.descriptor.api.DescriptorExportException: Could not export Node strcuture to XML
            Hide
            aslak Aslak Knutsen added a comment -

            this should be fixed in current core after Shrinkwrap Descriptor update

            Show
            aslak Aslak Knutsen added a comment - this should be fixed in current core after Shrinkwrap Descriptor update
            Hide
            aslak Aslak Knutsen added a comment -

            shrinkwrap updated

            Show
            aslak Aslak Knutsen added a comment - shrinkwrap updated
            Hide
            aslak Aslak Knutsen added a comment -

            released, pushed upstream

            Show
            aslak Aslak Knutsen added a comment - released, pushed upstream

              People

              • Assignee:
                aslak Aslak Knutsen
                Reporter:
                ozizka Ondrej Zizka
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development