aspose file tools*
The moose likes JSF and the fly likes Jar files for JSF 2.0 + Primefaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Jar files for JSF 2.0 + Primefaces" Watch "Jar files for JSF 2.0 + Primefaces" New topic
Author

Jar files for JSF 2.0 + Primefaces

N Deepu
Greenhorn

Joined: Jul 28, 2011
Posts: 25

Hi,

I'm using JSF 2.2 with the Primefaces 2.2. What are the jar files required? Sometimes it throws unusual exceptions which I'm not able to debug.
These are the Jar files I'm using. But I feel something is missing or something is extra.



And I just read that the Myfaces and the jsf libraries should not be mixed. To extend from UIComponent class, I had to use jsf-api.jar. And to use @Managedbean annotation and others I had to use jsf-api-2.0.3,jsf-impl-2.0.3,jstl-1.2 jars.. Kindly help me with the same.

Thanks in advance
Daniel Cabral
Greenhorn

Joined: Aug 18, 2011
Posts: 13

Hi,

Your list is correct, what exception is thrown?


Sun Certified Java Programmer SE 5.0
N Deepu
Greenhorn

Joined: Jul 28, 2011
Posts: 25

Hi,

I've been getting the following exception with the configListener. I'm not understanding the problem!!

INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
Aug 29, 2011 11:00:54 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: javax/faces/FacesException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
... 14 more
N Deepu
Greenhorn

Joined: Jul 28, 2011
Posts: 25

This is my web.xml entry.



This is the exception I'm getting along with the exception already posted :

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(Unknown Source)
at javax.faces.event.SystemEvent.<init>(SystemEvent.java:67)
at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:69)
at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:69)
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:256)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:245)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)

SEVERE: Servlet.service() for servlet [jsp] in context with path [/New_Dynamic] threw exception [javax.servlet.ServletException: null source] with root cause
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(Unknown Source)
at javax.faces.event.SystemEvent.<init>(SystemEvent.java:67)
at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:69)
at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:69)
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:256)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:245)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)


What is the reason? Are the Jar files that are causing the problem? Or is it the web.xml mapping? I'm using JSF 2.0 with Primefaces 2. I should use the UIComponentBase class to define the JSF custom component. the Jar files might not be compatible is my analysis. Kindly help me. I'm stuck since 3 days.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jar files for JSF 2.0 + Primefaces
 
Similar Threads
Starting a JSF 2.0 project with PrimeFaces 2.2. M1 and Glassfish 3.0
java.io.IOException: Error parsing - jsf-core.taglib.xml
a4j is undefined in JSF Portlet(a4j:support tag)
Missing tag library?
Using imageCropper with JSF and primefaces