On 07/05/2015 17:02, [email protected] wrote:
On 07/05/2015 16:34, Romain Manni-Bucau wrote:
hmm did you try not putting hk2 in your war?
Yes, I added various hk2 parts, and now it is working.
It still not works for tests, but it is a secondary problem.
+ <dependency>
+ <groupId>org.glassfish.jersey.core</groupId>
+ <artifactId>jersey-server</artifactId>
</dependency>
-
+ <dependency>
+ <groupId>org.glassfish.hk2</groupId>
+ <artifactId>hk2-api</artifactId>
+ <version>2.4.0-b19</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.glassfish.hk2</groupId>
+ <artifactId>hk2-locator</artifactId>
+ <version>2.4.0-b19</version>
+ </dependency>
Huuum.
To get it to working in all my webapps, I also had to add :
<dependency>
<groupId>org.glassfish.jersey.ext.cdi</groupId>
<artifactId>jersey-cdi1x</artifactId>
</dependency>
<dependency>
<groupId>org.apache.openwebbeans</groupId>
<artifactId>openwebbeans-tomcat7</artifactId>
<version>1.5.0</version>
</dependency>
and in web.xml, explicitely declare listener :
<listener>
<listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
</listener>
Hope this will help someone else. :-)
Ludovic
|
| AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
|