Btw, did you look at catalina.properties ’shared.loader’ ?
With this feature you can specify a directory with shared libs.
Those will get a child ClassLoader under tomcats own CL but will be used as 
parent for all the WebAppClassLoaders. That way they are essentially shared. 
Note that @ApplicationScoped still will give you one instance per webapp. But 
static fields only exist once per the whole Tomcat.

LieGrue,
strub
  

> Am 13.05.2015 um 14:54 schrieb [email protected]:
> 
> On 13/05/2015 11:20, Romain Manni-Bucau wrote:
>> Bonjour Ludovic,
>> 
>> are you sure there is no javax.inject API in the webapp?
> You got it right once again !
> 
> In tomcat/lib I had :
> * geronimo-atinject_1.0_spec-1.0.jar
> 
> And my webapp WEB-INF/lib I had  :
> * javax.inject-1.jar
> * javax.inject-2.4.0-b10.jar
> 
> I excluded the later ones from transitive dependencies in my pom.xml and 
> everything went right.
> 
> Thank you,
> 
> Ludovic
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
> 

Reply via email to