Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [wtp-jsf-dev] Error: javax/el/ExpressionFactory

Is it possible for you to try using JSF 1.1? I suspect you are using JSF 1.2, which requires the javax.el package, thus requiring Java EE 5. You can most likely do JSF 1.2, but the tutorial doesn't cover rounding up and configuring all of the required libraries, you'd need to work through this yourself (I haven't done it yet and can't commit to it at present).
 
 - Ian
-----Original Message-----
From: wtp-jsf-dev-bounces@xxxxxxxxxxx [mailto:wtp-jsf-dev-bounces@xxxxxxxxxxx]On Behalf Of Ian Trimble
Sent: Friday, March 16, 2007 9:17 AM
To: Java Server Faces Tools developer discussion
Subject: RE: [wtp-jsf-dev] Error: javax/el/ExpressionFactory

It looks from the stacktrace like you are hitting a problem with Tomcat itself (GlassFishConfigureListener is trying to initialize, for reasons I do not understand, and is failing to find the javax.el package).
 
Are you setting up your JSF implementation correctly according to instructions for whatever version you are running? Any idea why you have an application listener configured (GlassFishConfigureListener)?
 
I've been using JSF v1.1 for a while now, and have never hit an issue. Your configuration appears to require the javax.el package, while mine has never complained about this.
 
 - Ian Trimble (Oracle)
-----Original Message-----
From: wtp-jsf-dev-bounces@xxxxxxxxxxx [mailto:wtp-jsf-dev-bounces@xxxxxxxxxxx]On Behalf Of Mathieu Guertin
Sent: Friday, March 16, 2007 6:31 AM
To: Java Server Faces Tools developer discussion
Subject: RE: [wtp-jsf-dev] Error: javax/el/ExpressionFactory

OK i will tell you so you can run your first

 

Download jdk6

Download tomcat core : http://apache.sunsite.ualberta.ca/tomcat/tomcat-6/v6.0.10/bin/apache-tomcat-6.0.10.zip  unzip it under c:/tomcat6

Set JAVA_HOME = C:\Program Files\Java\jdk6

Download jsf 1.2: https://javaserverfaces.dev.java.net/files/documents/1866/52042/jsf-1.2_04-b07-FCS.zip

Download jstl found in: http://people.apache.org/builds/jakarta-taglibs/nightly/projects/standard/jakarta-taglibs-standard-20060829.zip

 

Put jsf-api.jar into tomcat6/lib/

Put jsf-impl.jar into tomcat6/lib/

Put jstl.jar into tomcat6/lib/

 

Now take one demo from jsf unzipped a .war and put it into tomcat6/webapps

 

START tomcat6/tomcat.bat

 

Go to localhost:8080/the name of the demo

 

This is it

 

Math, frenchy

 


De : wtp-jsf-dev-bounces@xxxxxxxxxxx [mailto:wtp-jsf-dev-bounces@xxxxxxxxxxx] De la part de Mathieu Guertin
Envoyé : 16 mars 2007 09:23
À : Java Server Faces Tools developer discussion
Objet : RE: [wtp-jsf-dev] Error: javax/el/ExpressionFactory

 

Be careful about your faces-config et web.xml headers… http://java.sun.com/javaee/javaserverfaces/reference/docs/index.html

 

Also… be sure to include jsf-api.jar jsp-api.jar and jstl.jar directly into your lib folder of tomcat… and don’t have to include it into your app…. I stay simple and basic regard of technologies so not too much framework on top ideally….

 

I tell you all that because I don’t use glassfish.

My environement

 

Tomcat 6 ------- jsf 1.2 ---------

 

 

Math, frenchy


De : wtp-jsf-dev-bounces@xxxxxxxxxxx [mailto:wtp-jsf-dev-bounces@xxxxxxxxxxx] De la part de Shehab
Envoyé : 15 mars 2007 20:04
À : wtp-jsf-dev@xxxxxxxxxxx
Objet : [wtp-jsf-dev] Error: javax/el/ExpressionFactory

 

Hello all!

I am very new to JSF and have not even run my first JSF code successfully yet. I was trying to follow and run the example(available at http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial-RC3/JSFTools_tutorial.html) provided with JSF Web Tool RC3 official page.

I did all the steps but when I tried to run the login page on my Tomcat server it gives the following error:

Mar 16, 2007 5:25:44 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\bin
Mar 16, 2007 5:25:44 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 16, 2007 5:25:44 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1141 ms
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.GlassFishConfigureListener
java.lang.NoClassDefFoundError: javax/el/ExpressionFactory
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 16, 2007 5:25:45 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/JSFTutorial] startup failed due to previous errors
Mar 16, 2007 5:25:46 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 16, 2007 5:25:46 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 16, 2007 5:25:46 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/188  config=null
Mar 16, 2007 5:25:46 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 16, 2007 5:25:46 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1938 ms


I am using the following versions:

Tomcat: 5.5
Eclipse: 3.2 Updated


In some forum, I found a half-clear indication that I should use some kind of Facelets but I am not clear with these stuffs.
Would anybody please help me out so that I can successfully run at least one JSF project successfully?

Thanks in advance.

-- Shehab

 


Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.


Back to the top