Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedOperationException loading simple JSF page  RSS feed

Dave Hill
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the beginnings of a new JSF/Facelets app up and running locally using

server side I am running tomcat-5.5.9 and it looks like JDK1.5.0_05

but when I WAR everything up and deploy it to my server and browse to
I get


The WAR's WEB-INF/lib contains mostly files downloaded from the June 6 facelets-1.1.9 draft release:
11/09/2006 04:49 PM 118,726 commons-beanutils-1.6.jar
06/12/2006 10:29 AM 118,726 commons-beanutils.jar
11/09/2006 04:49 PM 46,725 commons-codec-1.3.jar
11/09/2006 04:49 PM 165,119 commons-collections-2.1.jar
06/12/2006 10:29 AM 165,119 commons-collections.jar
11/09/2006 04:49 PM 139,966 commons-digester-1.7.jar
06/12/2006 10:29 AM 109,096 commons-digester.jar
11/09/2006 04:49 PM 68,756 commons-logging-1.0.3.jar
06/12/2006 10:29 AM 68,756 commons-logging.jar
06/12/2006 10:29 AM 24,432 el-api.jar
06/12/2006 10:29 AM 97,471 el-ri.jar
06/12/2006 10:29 AM 315,382 jsf-api.jar
11/09/2006 04:49 PM 291,366 jsf-facelets.jar
06/12/2006 10:29 AM 1,136,609 jsf-impl.jar
06/12/2006 10:29 AM 50,491 jsp-api.jar
11/09/2006 04:49 PM 21,029 jstl.jar
05/02/2006 09:54 PM 112,249 junit-4.1.jar
06/12/2006 10:29 AM 6,882 maven-repository-importer-1.1.jar
06/12/2006 10:29 AM 252,186 myfaces-api-1.1.3-SNAPSHOT.jar
06/12/2006 10:29 AM 516,661 myfaces-impl-1.1.3-SNAPSHOT.jar
11/09/2006 04:49 PM 246,317 mysql-connector-java-3.0.17-ga-bin.jar
06/12/2006 10:29 AM 15,420 portlet.jar
11/09/2006 04:49 PM 393,259 standard.jar

the very simplified index.jspx looks like this:

<jsp:root xmlns:jsp="" xmlns="" version="2.0"
Welcome to!

I get noting in the logs when I shift-reload the web page, even after restarting Tomcat. Interesting, in preparing this post I killed the logs and restarted Tomcat and I get a clean startup in catalina.err but in catalina.out I find this apparent startup problem:

[Loaded javax.faces.event.PhaseListener from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/jsf-api.jar]
[Loaded javax.faces.event.PhaseEvent from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/jsf-api.jar]
[Loaded javax.faces.convert.EnumConverter from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/jsf-api.jar]
[Loaded javax.servlet.jsp.JspFactory from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/jsp-api.jar]
[Loaded com.sun.el.ExpressionFactoryImpl from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/el-ri.jar]
[Loaded com.sun.el.ValueExpressionLiteral from file:/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/PaperTrade/WEB-INF/lib/el-ri.jar]
Nov 12, 2006 9:53:40 PM com.sun.faces.config.ConfigureListener registerELResolverAndListenerWithJsp
SEVERE: Error Instantiating ExpressionFactory
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(
at com.sun.faces.config.ConfigureListener.contextInitialized(
at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployWAR(
at org.apache.catalina.startup.HostConfig.deployWARs(
at org.apache.catalina.startup.HostConfig.deployApps(

Alright, I've beat my head against the wall enough tonight, time to break down and beg for help. Thanks!
[ November 13, 2006: Message edited by: Dave Hill ]
Tim Holloway
Posts: 18661
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely you have a version conflict between different component jars.

I do know that EL has some major warts, since just last week I was fighting a situation where the EL Exception class couldn't be located. I wish I could remember the details, but basically, there was something like an EL definition in Tomcat's jsp-api.jar, but a different EL definition in Tomahawk . Or something like that. Apache commons-el was also involved in the fight, IIRC.

I think the problem is ultimately rooted in the transition between different EL versions and the whole movement towards unified EL. Maybe a little googling will help you.
Lars Behnke
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,

have you read this?

Dave Hill
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys.

Lars, actually that was MyFaces (who can remember all these different faces), but I experimented with removing the JSP jar and then found that the 2.0 jar was deployed with the facelets-1.1.9 jars. Then I figured what the heck, and uploaded one of their sample jars. Runs great.

It's midnight, but tomorrow I'll work on figuring out what jars they used, what else I might need, and what versions all play nice together. Thanks!
Dave Hill
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it (finally). There were two things that needed changed.

Had to revert back to an OLDER version of JSF (jsf-1.1_02-b08) since the newer version isn't compatible with the version of JSP that Tomcat 5.5.x runs

Also had to delete the JSP-API.jar that I was including in my WAR.

The two things together, plus the delay of having to upload the war, made this a bugger to solve. Thanks everyone! I'm glad I asked for help on this one.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!