Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1529

permalink example embedded tomcat ftest profile broken with servlet3 api dependency

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.1.Final
    • 2.1.0.Final
    • Examples
    • None

      The embedded tomcat ftest is broken in the permalink example.

      Running

      mvn clean verify -Ptomcat -Darquillian=tomcat-embedded-6

      will fail the tests with

      SEVERE: Exception sending request destroyed lifecycle event to listener instance of class org.jboss.weld.environment.servlet.Listener
      java.lang.AbstractMethodError: org.apache.catalina.connector.RequestFacade.isAsyncStarted()Z
              at org.jboss.weld.servlet.HttpContextLifecycle.requestDestroyed(HttpContextLifecycle.java:222)
              at org.jboss.weld.servlet.WeldInitialListener.requestDestroyed(WeldInitialListener.java:118)
              at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestDestroyed(ForwardingServletListener.java:38)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:204)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
              at java.lang.Thread.run(Thread.java:724)
      

      The problem is the servlet api 3 dependency on the classpath when running the embedded test, as it confuses Weld into thinking isAsync is supported on tomcat6.

              maschmid@redhat.com Marek Schmidt
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: