I am new to jsf and eclipse. I tried to build an application with jsf using eclipse IDE. However, whenever i tried to run a test index.jsp page, i always get the following server error:
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
I have done a lot of research and included the following jars in the web-inf/lib directory
but could NOT make it work. Anyone with any thought? I really appreciate it.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Originally posted by Michael Lee Jordan: SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
You're likely mixing different JSF implementations. Don't do that. Use one implementation. Thus not for example having both Sun Mojarra and Apache MyFaces in the classpath, but only one of them.
I followed what the tutorial says and this time, i could n't start the tomcat server. I got the error while trying to start the server
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler.JspRuntimeContext
Does that mean new apis jars need to be included?
Thanks
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Did you run it from Eclipse? If so, did you integrate it properly, exactly as stated in the tutorial? Sounds like that you didn't let Eclipse take control of Tomcat (select "Use Tomcat installation" under "Server locations" in Eclipse Tomcat configuration).
Or did you run it from command console? If so, then you'll have to set some environment variables such as JAVA_HOME and CATALINA_HOME. Consult Tomcat documentation for details.
Michael Lee Jordan
Greenhorn
Joined: Sep 03, 2008
Posts: 14
posted
0
Thanks!
I got it working. In fact, the problem lied with missing a jsp-api.jar in the tomcat\lib -- after I downloaded it moved it to the folder, everything seems to be working now.
I will need to pass the tutorial to others interested.
Victor Chirita
Greenhorn
Joined: Jun 02, 2011
Posts: 1
posted
0
I confirm that by mixing Mojarra 2.0 and Apache Myfaces JSF Core 2.0 Api one would get the above error.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.