voyent
Icefaces-facelets-1.8.1.jar dependeds of el-api-1.1.11.jar? Or Maven is crazy?  XML
Forum Index -> General Help
Author Message
caioformiga

Joined: 12/Oct/2009 00:00:00
Messages: 9
Offline


I`m trying to deploy outputProgress-multiple-tutorial sample and what seams to be easy becomes a hard work between me, MyFaces impl, IceFaces, Facelets, .jspx, but in the end I won :P.

I have adapted the original sample to use Maven and after add icefaces-facelets-1.8.1.jar at pom.xml file Maven complains about el-api-1.1.11.jar. "Missing indirectly referenced artifact javax.el:el-api:jar:1.0:compile". So I added this dependency and Maven could successfully build the project.war.

The problem is, during Tomcat6.0.20 startup it throws this exception:
org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
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/apache/myfaces/webapp/Jsp21FacesInitializer, 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
at org.apache.myfaces.webapp.Jsp21FacesInitializer.configureResolverForJSP(Jsp21FacesInitializer.java:114)

After reading a few tutorials and a lot of tests, I discovered that removing the el-api-1.1.11.jar problem is over.

Right now I just want to know if icefaces-facelets-1.8.1.jar depends of el-api-1.1.11.jar? Or Maven is crazy? Should I change icefaces-facelets version? Which one?

THANKS A LOT
Caio Formiga

davidfg

Joined: 04/Feb/2009 00:00:00
Messages: 161
Offline


Works for me with 1.8.2

<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-facelets</artifactId>
<version>1.8.2</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.icefaces</groupId>
<artifactId>icefaces-comps</artifactId>
<version>1.8.2</version>
<scope>compile</scope>
</dependency>
caioformiga

Joined: 12/Oct/2009 00:00:00
Messages: 9
Offline



Oh man..THANK YOU A LOT...it worked...
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team