youness.bout
youness.bout

Reputation: 373

Migration from richfaces 3.1.6 to 3.3.3 has java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

Good evening guys. Thank you so much in advance for giving up your time to just read my problem, and i'll appreciate it if someone could help me.

I'm responsible now for migrating a big project from richefaces 3.1.6 to 3.3.3, but i'm stuck having this issue at the startup of tomcat: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

The same issue has been reported in this link: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener. But it's may be way different than the one i'm facing. I tried many configuration(like changing jsf implementation to mojarra) but with no conclusive result. Now I'm trying to go with it step by step, and seek your help when I'm stuck.

Here are the old list of jar libraries of our project .

these libraries are placed in a shared lib inside tomcat 5.5.36 : C:\apache-tomcat-5.5.36_\shared\lib

Our web.xml contains this lines :

`

<context-param>
        <param-name>org.richfaces.SKIN</param-name>
        <param-value>classic</param-value>
    </context-param>
    <filter>
        <display-name>RichFaces Filter</display-name>
        <filter-name>richfaces</filter-name>
        <filter-class>org.ajax4jsf.Filter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>richfaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <listener>
        <listener-class>
            org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>

`

The only thing I change is the 3 jar files for richefaces :

and I replace them with these :

Once I start tomcat i get this stacktrace :

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3743)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

Upvotes: 0

Views: 342

Answers (1)

user22593567
user22593567

Reputation: 1

this post is old, but you might check the tomahawk and JSF versions. I think the version of richfaces chosen supports JSF 2.x.

Upvotes: -1

Related Questions