tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Ben Guilherme Fonseca <>
Subject CDI(Weld) / EL 2.2 on Tomcat 6.0.24
Date Mon, 01 Mar 2010 19:55:18 GMT
Hi, i'm tring to use weld the implementation of the JSR 299 (*Java Contexts
and Dependency Injection* ) on tomcat and it's working pretty well. The only
problem so fat is when i try to override the built-in el-api/el-impl from
Tomcat lib directory, with the new EL 2.2 that support parameters.

I put the libs on my WEB-INF/lib but it seems that somewhat the tomcat libs
are still being used cause i got this error:

SEVERE: Exception sending context initialized event to listener instance of
class org.jboss.weld.environment.servlet.Listener
java.lang.LinkageError: loader constraint violation: when resolving
interface method
the class loader (instance of org/apache/catalina/loader/WebappClassLoader)
of the current class, org/jboss/weld/environment/servlet/Listener, and the
class loader (instance of org/apache/catalina/loader/StandardClassLoader)
for resolved class, javax/servlet/jsp/JspApplicationContext, have different
Class objects for the type javax/el/ELResolver used in the signature

Messy error, but to me it shows that the application is somewhat trying to
use at the same time diferent implementations of the EL.

Basically i was trying to use the Cay Horstmann tutorial at:

Did anyone try that? I heard something about changing the libs of
tomcat-home/lib, but that's not a good thing to do on production time if
other applications do use the older lib.


Is tomcat 6 going to support the new EL? What should be the write way to
override it on my app?

Thanks in advance,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message