8 Replies Latest reply on Sep 17, 2012 6:17 PM by aslak

    Jetty8 support ?

    julien_viet

      Hi,

       

      there is no support ATM for Jetty8, is there a reason why the container is not implemented or is it by lack of a valuable contribution ?

       

      Julien

        • 1. Re: Jetty8 support ?
          kpiwko

          Hello Julien,

           

          the reason why Jetty8 is not supported yet is that nobody had written Arquillian container for it or shouted for it loudly  . I expect the implementation should be easily reused from Jetty 7 available at https://github.com/arquillian/arquillian-container-jetty, likely some unification as we done for Tomcats would make sense. If would like to implement Jetty 8 support, I'd be happy to guide you through.

           

          Karel

          • 2. Re: Jetty8 support ?
            aslak

            Hvae you treid using the Jett7 container adaptor for 8?  I believe it should work.

             

            The naming conventions on the container adaptors is suppose to reflect the 'earliest' tested version and should work up til the next versioned conainer adaptor.

             

            container_1 -> works with 1 and 2

            container_3 -> works with 3 -> etc

             

             

            https://github.com/arquillian/arquillian-container-jetty/blob/master/jetty-embedded-7/pom.xml#L15

            • 3. Re: Jetty8 support ?
              julien_viet

              no I haven't tried yet.

               

              so just changing the dependencies in my pom.xml could make it work?

               

              thanks for the advice.

              • 4. Re: Jetty8 support ?
                aslak

                That's the idea

                • 5. Re: Jetty8 support ?
                  julien_viet

                  I'll update this thread and mark it as corrected if it works out! (otherwise I'll bitch!!)

                  • 6. Re: Jetty8 support ?
                    aslak

                    Looking forward to either one hehe

                    • 7. Re: Jetty8 support ?
                      julien_viet

                      Good news it works, however I have support for JSP not working (yet), my previous dependencies:

                       

                           <dependency>

                             <groupId>org.eclipse.jetty</groupId>

                             <artifactId>jetty-webapp</artifactId>

                             <version>7.0.2.v20100331</version>

                           </dependency>

                           <dependency>

                             <groupId>org.eclipse.jetty</groupId>

                             <artifactId>jetty-plus</artifactId>

                             <version>7.0.2.v20100331</version>

                           </dependency>

                           <dependency>

                             <groupId>org.mortbay.jetty</groupId>

                             <artifactId>jsp-2.1-glassfish</artifactId>

                             <version>2.1.v20100127</version>

                           </dependency>

                       

                      My new dependency that make it work except for JSP:

                       

                           <dependency>

                             <groupId>org.eclipse.jetty</groupId>

                             <artifactId>jetty-webapp</artifactId>

                             <version>8.1.7.v20120910</version>

                           </dependency>

                           <dependency>

                             <groupId>org.eclipse.jetty</groupId>

                             <artifactId>jetty-plus</artifactId>

                             <version>8.1.7.v20120910</version>

                           </dependency>

                           <dependency>

                             <groupId>org.eclipse.jetty</groupId>

                             <artifactId>jetty-jsp</artifactId>

                             <version>8.1.7.v20120910</version>

                           </dependency>

                       

                      I blindly changed: org.mortbay.jetty:sp-2.1-glassfish by org.eclipse.jetty:jetty-jsp but it does not work. Any idea what I did wrong ?

                       

                      Beside that thank for the advice!

                      • 8. Re: Jetty8 support ?
                        aslak