1 Reply Latest reply on Jun 10, 2013 7:02 AM by Martin Kouba

    Weld2 final and tomcat 7

    Alberto Souza Newbie

      Hi, i followed the steps to use the example project in tomcat7 but i got an strange EL error...


      [code java]

      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 "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" 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 ELResolver;)V used in the signature



      I put the weld-servlet.jar in my classpath and, i saw that it has a package called javax.el.