aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener" Watch "Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener" New topic
Author

Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

Ramu Valivarthi
Ranch Hand

Joined: Apr 24, 2007
Posts: 37

Tomcat 7 is trying to load com.sun.faces.config.ConfigureListener at startup and giving below error, even we are NOT using faces in our project.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Are there any jar files in your application deployment which contain references to that class. For example in some jar's META-INF/services/javax.servlet.ServletContainerInitializer file?

[My Blog] [JavaRanch Journal]
Ramu Valivarthi
Ranch Hand

Joined: Apr 24, 2007
Posts: 37

No nothing like that.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Post the output of:

jar -tf yourwar.war
Ramu Valivarthi
Ranch Hand

Joined: Apr 24, 2007
Posts: 37

Thanks Jaikiran,

Its got resolved.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Ramu Valivarthi wrote:

Its got resolved.


It's always good to post the solution so that when someone else runs into this, they will know possible ways to solve it.
Catalin Stoiovici
Greenhorn

Joined: Feb 11, 2013
Posts: 1
Ramu Valivarthi wrote:Thanks Jaikiran,

Its got resolved.


What was the solution? I am having the same issue...
mr Morena
Greenhorn

Joined: Jan 15, 2008
Posts: 6
Catalin Stoiovici wrote:
Ramu Valivarthi wrote:Thanks Jaikiran,

Its got resolved.


What was the solution? I am having the same issue...



I had same issue, once I checked my war file then I came to know that classes folder was empty. Actually I was using one phaseListener in my project ,it was configured into face-config.xml but its compiled class file was not.


SCJP 6.0
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

Thank you for posting that hint.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat 7 java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener