3 Replies Latest reply on Feb 2, 2010 10:51 AM by Fawad Ali

    Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener

    Fawad Ali Newbie

      Hello All,

                   I am using rich faces with Jsf in myEclipse IDE. But the following exception comes to me.

       

      SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.NoClassDefFoundError: javax/faces/component/ContextCallback
      at org.richfaces.renderkit.html.DropSupportRenderer.<init>(DropSupportRenderer.java:54)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:910)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:961)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:408)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:332)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:516)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
      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:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

       

      I have the following jars:

      1. commons-beanutils.jar
      2. commons-collections-3.2.1.jar
      3. commons-digester.jar
      4. commons-logging-1.0.4.jar
      5. richfaces-api-3.3.2.SR1.jar
      6. richfaces-impl-3.3.2.SR1.jar
      7. richfaces-ui-3.3.2.SR1.jar

       

      And in web.xml, I have these lines.

       

          <!-- Plugging the "Blue Sky" skin into the project -->
      <context-param>
         <param-name>org.richfaces.SKIN</param-name>
         <param-value>blueSky</param-value>
      </context-param>

       

      <!-- Making the RichFaces skin spread to standard HTML controls -->
      <context-param>
            <param-name>org.richfaces.CONTROL_SKINNING</param-name>
            <param-value>enable</param-value>
      </context-param>

       

              <!-- Defining and mapping the RichFaces filter -->
      <filter>
         <display-name>RichFaces Filter</display-name>
         <filter-name>richfaces</filter-name>
         <filter-class>org.ajax4jsf.Filter</filter-class>
         <init-param>
              <param-name>createTempFiles</param-name>
              <param-value>true</param-value>
          </init-param>

       


      </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>

       

       

      WELL THIS CONFIGURATION WORKS IN NETBEANS BUT NOT IN MYECLIPSE. Can anyone tell me as what I should do to remove this problem?