-
1. Re: Jetty8 support ?
kpiwko Sep 17, 2012 8:39 AM (in response to julien_viet)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 Sep 17, 2012 10:30 AM (in response to kpiwko)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 Sep 17, 2012 10:45 AM (in response to aslak)no I haven't tried yet.
so just changing the dependencies in my pom.xml could make it work?
thanks for the advice.
-
-
5. Re: Jetty8 support ?
julien_viet Sep 17, 2012 11:18 AM (in response to aslak)I'll update this thread and mark it as corrected if it works out! (otherwise I'll bitch!!)
-
6. Re: Jetty8 support ?
aslak Sep 17, 2012 1:16 PM (in response to julien_viet)Looking forward to either one hehe
-
7. Re: Jetty8 support ?
julien_viet Sep 17, 2012 5:05 PM (in response to aslak)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 Sep 17, 2012 6:17 PM (in response to julien_viet)looks like you're suppose to use the old version from mortbay? http://stackoverflow.com/questions/4235082/configuring-jetty-jsp-support-in-embedded-mode-in-maven-project