File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!" Watch "PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!" New topic
Author

PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!

Tanya Ruttenberg
Ranch Hand

Joined: Jun 22, 2009
Posts: 40
I am quite new to java and JSF. I have a project I built using seam-gen. In trying to understand JSF better I am trying to implement a simple PhaseListener that I got off someone's blog. Here it is:



I added it to my faces-config.xml file:



And now I get this error when I try and build my project:



a whole bunch more of the stack trace I'm leaving off -- someone tell me if it's useful.

What is going on here? Please only ask which JSF I'm using if you tell me how to find out which JSF I am using. I only know I'm using what came out of the box with Seam.

I so so so want to understand this stuff!

TDR
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

dne.nmt.ond.action.MyPhaseListener


Well, it certainly seems that at runtime, the class you have created cannot be picked up by your runtime environment?

Do you know where the compiled class sits on your classpath, and for that matter, if it can be picked up by your runtime environment?

-Cameron McKenzie
Tanya Ruttenberg
Ranch Hand

Joined: Jun 22, 2009
Posts: 40
The class sits with all the other action classes in package dne.nmt.ond.acton and these are always picked up at compile time.

I have about 10 action classes in the same package all working correctly. Except this one. The other classes are Seam entities and therefore not included in the faces-config.xml file.

I'm using eclipse and used eclipse's auto-complete/auto-find feature to find this class so eclipse is finding it in the classpath, too.

I tried to add something else once to faces-config.xml and JSF was unable to locate that, too. Same problem, different task. I can't remember what. There is something amiss with my JSF configuration I think. But I don't really understand it very well yet so I'm not sure.

Thanks,
TDR
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PhaseListener problems com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
 
Similar Threads
Question on rendering
On First Time load of a Page
control the running order of different back bean functions
HTTP 404 error on migrating : JBOSS EAP 5.1 and SEAM 2.2
Phase-listener not being called