File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tanya Ruttenberg
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic