Skip to main content

Where can I get facelets?

5 replies [Last post]
tommykalafut
Offline
Joined: 2007-08-01
Points: 0

I am trying to solve java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl error by getting the el-ri-*.*.jar file to get a JSF 1.2 app working with Tomcat 6. All the advice I've come across says "download facelets 1.*.*" but with no links. Googling "download facelets" doesn't come up with much. I even saw an announcement regarding a new release of facelets, but alas, still no link.

Can someone please point me to the right place? Is it merely a part of Glassfish?

I'll also entertain other suggestions on how to solve my problem. I have no idea why my app is trying to instantiate this particular implementation(com.sun.el.ExpressionFactoryImpl). Is that merely the default for JSF 1.2?

I'm also willing to try something like this in web.xml if someone knows of an easy to find / good ExpressionFactoryImpl to use:

com.sun.faces.expressionFactory
org.apache.el.ExpressionFactoryImpl

Thanks.

Error trace:
==========
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\web
apps\smfadmin\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spe
c 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener contextInitialized

INFO: Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for conte
xt '/smfadmin'
Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener registerELResolver
AndListenerWithJsp
SEVERE: Error Instantiating ExpressionFactory
java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1204)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerW
ithJsp(ConfigureListener.java:1862)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
stener.java:546)
at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Gl
assFishConfigureListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jacob Hookom

https://facelets.dev.java.net/

Download:
https://facelets.dev.java.net/servlets/ProjectDocumentList?folderID=3635...

There's also mailing lists available:

https://facelets.dev.java.net/servlets/ProjectMailingListList

All the Best,
Jacob

glassfish@javadesktop.org wrote:
> I am trying to solve java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl error by getting the el-ri-*.*.jar file to get a JSF 1.2 app working with Tomcat 6. All the advice I've come across says "download facelets 1.*.*" but with no links. Googling "download facelets" doesn't come up with much. I even saw an announcement regarding a new release of facelets, but alas, still no link.
>
> Can someone please point me to the right place? Is it merely a part of Glassfish?
>
> I'll also entertain other suggestions on how to solve my problem. I have no idea why my app is trying to instantiate this particular implementation(com.sun.el.ExpressionFactoryImpl). Is that merely the default for JSF 1.2?
>
> I'm also willing to try something like this in web.xml if someone knows of an easy to find / good ExpressionFactoryImpl to use:
>
>
>
com.sun.faces.expressionFactory >
org.apache.el.ExpressionFactoryImpl >

>
> Thanks.
>
> Error trace:
> ==========
> INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\web
> apps\smfadmin\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spe
> c 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener contextInitialized
>
> INFO: Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for conte
> xt '/smfadmin'
> Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener registerELResolver
> AndListenerWithJsp
> SEVERE: Error Instantiating ExpressionFactory
> java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1358)
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1204)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerW
> ithJsp(ConfigureListener.java:1862)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
> stener.java:546)
> at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Gl
> assFishConfigureListener.java:47)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
> t.java:3827)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
> 334)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
> [Message sent by forum member 'tommykalafut' (tommykalafut)]
>
> http://forums.java.net/jive/thread.jspa?messageID=229097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Ryan Lubke

Hello,

Looking at the stacktrace, you're using a version of the JSF RI that's
over a year old. I would suggest upgrading to at least 1.2_04 P02 [1].
Also Facelets can be found here: https://facelets.dev.java.net

[1] https://javaserverfaces.dev.java.net

glassfish@javadesktop.org wrote:
> I am trying to solve java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl error by getting the el-ri-*.*.jar file to get a JSF 1.2 app working with Tomcat 6. All the advice I've come across says "download facelets 1.*.*" but with no links. Googling "download facelets" doesn't come up with much. I even saw an announcement regarding a new release of facelets, but alas, still no link.
>
> Can someone please point me to the right place? Is it merely a part of Glassfish?
>
> I'll also entertain other suggestions on how to solve my problem. I have no idea why my app is trying to instantiate this particular implementation(com.sun.el.ExpressionFactoryImpl). Is that merely the default for JSF 1.2?
>
> I'm also willing to try something like this in web.xml if someone knows of an easy to find / good ExpressionFactoryImpl to use:
>
>
>
com.sun.faces.expressionFactory >
org.apache.el.ExpressionFactoryImpl >

>
> Thanks.
>
> Error trace:
> ==========
> INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\web
> apps\smfadmin\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spe
> c 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener contextInitialized
>
> INFO: Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for conte
> xt '/smfadmin'
> Aug 1, 2007 4:59:56 PM com.sun.faces.config.ConfigureListener registerELResolver
> AndListenerWithJsp
> SEVERE: Error Instantiating ExpressionFactory
> java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1358)
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
> der.java:1204)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerW
> ithJsp(ConfigureListener.java:1862)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
> stener.java:546)
> at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Gl
> assFishConfigureListener.java:47)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
> t.java:3827)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
> 334)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
> [Message sent by forum member 'tommykalafut' (tommykalafut)]
>
> http://forums.java.net/jive/thread.jspa?messageID=229097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

tommykalafut
Offline
Joined: 2007-08-01
Points: 0

Thanks. I've gotten farther, but now I get the dreaded "can't cast an instance of class A to class A" (2nd trace below) at Tomcat startup (for smfadmin)!

=========
Aug 2, 2007 11:37:17 AM com.sun.faces.config.ConfigureListener contextInitialize
d
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for co
ntext '/smfadmin'
Aug 2, 2007 11:37:17 AM com.sun.faces.config.ConfigureListener contextInitialize
d
INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for co
ntext '/smfadmin'
Aug 2, 2007 11:15:38 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s com.sun.faces.config.GlassFishConfigureListener
java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate can
not be cast to com.sun.faces.application.ApplicationAssociate
at com.sun.faces.application.ApplicationAssociate.getInstance(Applicatio
nAssociate.java:208)
at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(J
SFVersionTracker.java:269)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
stener.java:551)
at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Gl
assFishConfigureListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

Ryan Lubke

glassfish@javadesktop.org wrote:
> Thanks. I've gotten farther, but now I get the dreaded "can't cast an instance of class A to class A" (2nd trace below) at Tomcat startup (for smfadmin)!
>
I'd suggest deleting the content of the Tomcat work directory and
restarting the server.
GlassFishConfigureListener shouldn't be in the stacktrace at this point.

Also, you may want to consider moving this conversation over to
users@javaserverfaces.dev.java.net,
since we're somewhat out of the realm of GlassFish.
> =========
> Aug 2, 2007 11:37:17 AM com.sun.faces.config.ConfigureListener contextInitialize
> d
> INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for co
> ntext '/smfadmin'
> Aug 2, 2007 11:37:17 AM com.sun.faces.config.ConfigureListener contextInitialize
> d
> INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for co
> ntext '/smfadmin'
> Aug 2, 2007 11:15:38 AM org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener instance of clas
> s com.sun.faces.config.GlassFishConfigureListener
> java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate can
> not be cast to com.sun.faces.application.ApplicationAssociate
> at com.sun.faces.application.ApplicationAssociate.getInstance(Applicatio
> nAssociate.java:208)
> at com.sun.faces.config.JSFVersionTracker.publishInstanceToApplication(J
> SFVersionTracker.java:269)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
> stener.java:551)
> at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(Gl
> assFishConfigureListener.java:47)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
> t.java:3827)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
> 334)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
> .java:791)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
> 1)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>
> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
> [Message sent by forum member 'tommykalafut' (tommykalafut)]
>
> http://forums.java.net/jive/thread.jspa?messageID=229209
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

tommykalafut
Offline
Joined: 2007-08-01
Points: 0

Thanks. Consider it moved.