Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mojarra samples ... the bean-validator  RSS feed

 
Vernon Singleton
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get one of the mojarra samples up and running under tomcat :-/
The sample is called "bean-validator".

I editted the pom.xml to use the dependencies for "a simple servlet container instead of a Java EE Application Server", but when I execute "mvn tomcat:run", i get:

Dec 15, 2009 10:46:15 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/codehaus/classworlds/RealmClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:669)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:241)

I think this is a conflict between apache's el-api.jar and sun's el-api.jar ... but i do not know how to get around this issue.

Any ideas?
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As of Tomcat6, EL is part of the Tomcat server, so don't include the EL implementation jar in your WAR.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!