1 Reply Latest reply on Sep 30, 2011 1:17 PM by Jason Porter

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

    selvam as Newbie
      Hi , I created sample application using seam3,JSF2.0, Richfaces4.x,tomcat7 with maven2 environment.

      While deploying i faced the  following stack trace:

      com.sun.faces.config.ConfigureListener contextInitialized
      SEVERE: Critical error during deployment:
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Failed to locate BeanManager using any of these providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:375)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
              at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
              at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)
      Caused by: org.jboss.seam.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager using any of these providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
              at org.jboss.seam.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:91)
              at org.jboss.seam.solder.beanManager.BeanManagerAware.getBeanManager(BeanManagerAware.java:56)
              at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25)
              at org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventListener.java:43)
              at org.jboss.seam.faces.event.DelegatingSystemEventListener.processEvent(DelegatingSystemEventListener.java:34)
              at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
              at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
              at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
              at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
              at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.publishEvent(ForwardingApplication.java:330)
              at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:600)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
              ... 9 more
      org.apache.catalina.core.StandardContext startInternal
      SEVERE: Error listenerStart
      org.apache.catalina.util.SessionIdGenerator createSecureRandom



      I used the following jars in my application:

      seam-solder-3.0
      seam-persistence-3.0
      seam-faces-3.0
      seam-config-xml-3.0
      seam-catch-3.0
      weld-servlet-1.1.2
      jsf-api-2.1.2
      jsf-impl-2.1.2
      jstl-1.2
      cdi-api-1.0
      el-impl-3.0
      javax.inject-1.0
      hibernate-3.2.7.ga
      mysql-connector-java-5.1.9


      My web.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
          <listener>
              <listener-class>org.jboss.seam.faces.beanManager.BeanManagerServletContextListener</listener-class>
          </listener>
          <listener>
              <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
          </listener>
          <context-param>
              <param-name>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Development</param-value>
          </context-param>
          <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.xhtml</url-pattern>
          </servlet-mapping>
          <session-config>
              <session-timeout>30</session-timeout>
          </session-config>
          <welcome-file-list>
              <welcome-file>hello.xhtml</welcome-file>
          </welcome-file-list>
          <resource-env-ref>
              <description>Object factory for the CDI Bean Manager</description>
              <resource-env-ref-name>BeanManager</resource-env-ref-name>
              <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
          </resource-env-ref>
      </web-app>


      ..
      can u please help me to solve this issues..