13 Replies Latest reply on Jan 10, 2012 2:21 PM by Timothy Freyne

    Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)

    Devi S Newbie

      Hi all,
            
              I am try to develop sample application using seam3,JSF2.0 with Richfaces4.x. i am using tomcat6 with maven2 environment.


      While deploying i am getting following stack trace:


      SEVERE: Critical error during deployment:
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Failed to locate BeanManager using any of t
      hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be
      anManager.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:3830)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
              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:920)
              at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
              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:566)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: org.jboss.seam.solder.beanManager.BeanManagerUnavailableException: Failed to locate BeanManager usi
      ng any of these providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.sea
      m.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(DelegatingSystemEventLis
      tener.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.jav
      a:330)
              at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:600)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
              ... 25 more


      I try to use simple @Named annotation.This is 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.weld.environment.servlet.Listener</listener-class>
      </listener>
      
       <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>client</param-value>
       </context-param>
      
      <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>true</param-value>
      </context-param>
      
      <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
      </context-param>
      
      <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>0</load-on-startup>
      </servlet>
      
      <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.seam</url-pattern>
      </servlet-mapping>
      
              <resource-env-ref>
                      <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>
      
      
      





      I kept my beans.xml as empty. face-config.xml with root element.
      This is my context.xml




      <?xml version="1.0" encoding="UTF-8"?>
      <Context>
         <Manager pathname=""/>
         <Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.jboss.weld.resources.ManagerObjectFactory"/>
      </Context>





      I am using following dependency in pom.xml for jsf 2.1.2



      <dependency>
                              <groupId>jsf</groupId>
                              <artifactId>jsf-api</artifactId>
                              <version>2.1.2</version>
                      </dependency>
      
                      <dependency>
                              <groupId>jsf</groupId>
                              <artifactId>jsf-impl</artifactId>
                              <version>2.1.2</version>
                      </dependency>





      If i remove these dependency i didnt get any error while deploying. Instead of those jars i used jsf-api.jar.


      Now i am getting new error while giving request,
      javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
              org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
              org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
              org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              java.lang.Thread.run(Thread.java:662)


      root cause


      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
              javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:800)
              javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302)
              javax.faces.webapp.FacesServlet.init(FacesServlet.java:162)
              org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
              org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
              org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              java.lang.Thread.run(Thread.java:662)


      Help me! where i am going wrong.


      Thanks in advance.
      S.Devi

        • 2. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
          Devi S Newbie

          Hi jason,


                     While using tomcat 7 i am getting different error stack trace.


          com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
                  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(FutureTask.java:303)
                  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                  at java.lang.Thread.run(Thread.java:662)
          Caused by: java.util.NoSuchElementException
                  at com.google.common.collect.Iterators$1.next(Iterators.java:65)
                  at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25)
                  at org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventLis
          tener.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.jav
          a:330)
                  at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:600)
                  at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
                  ... 9 more
          Sep 20, 2011 12:09:49 PM org.apache.catalina.core.StandardContext startInternal


          What is the problem? waiting for your reply.


          Thanks in advance,
          Devi



          • 4. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
            Devi S Newbie

            My faces-config.xml,




            <?xml version='1.0' encoding='UTF-8'?>
            <faces-config version="2.0"
                          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/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
            </faces-config>



            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.STATE_SAVING_METHOD</param-name>
                    <param-value>client</param-value>
             </context-param>
            
            <context-param>
                    <param-name>facelets.DEVELOPMENT</param-name>
                    <param-value>true</param-value>
            </context-param>
            
            <context-param>
                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                 <param-value>.xhtml</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>*.seam</url-pattern>
            </servlet-mapping>
            
            <session-config>
                 <session-timeout>30</session-timeout>
            </session-config>
            
                 <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>




            Thanks.




            • 6. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
              Devi S Newbie

              I already mentioned in my first post itself. i am using the following dependency,




              <dependency>
               <groupId>jsf</groupId>
               <artifactId>jsf-api</artifactId>
               <version>2.1.2</version>
              </dependency>
              
              <dependency>
                <groupId>jsf</groupId>
                <artifactId>jsf-impl</artifactId>
                <version>2.1.2</version>
              </dependency>



              • 7. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
                Jason Porter Master

                Ah, that may be it. Try something in the 2.0.4 range, see if that clears things up. JSF and CDI don't really play well together until probably 2.2.

                • 10. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
                  Devi S Newbie

                     While putting the 2.0.4 version jars also i am getting same error stack trace.


                  Here i paste full stack trace in my server,




                  INFO: WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Tr
                  ansactional observers will be invoked synchronously.
                  Sep 20, 2011 2:05:09 PM org.jboss.seam.solder.core.VersionLoggerUtil logVersionInformation
                  INFO: Seam Solder 3.0.0.Final (build id: 3.0.0.Final)
                  Sep 20, 2011 2:05:09 PM org.jboss.weld.environment.tomcat7.Tomcat7Container initialize
                  INFO: Tomcat 7 detected, CDI injection will be available in Servlets and Filters. Injection into Listeners is
                  not supported
                  Sep 20, 2011 2:05:10 PM org.jboss.interceptor.util.InterceptionTypeRegistry <clinit>
                  WARNING: Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
                  Sep 20, 2011 2:05:10 PM org.jboss.interceptor.util.InterceptionTypeRegistry <clinit>
                  WARNING: Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
                  Sep 20, 2011 2:05:10 PM com.sun.faces.config.ConfigureListener contextInitialized
                  INFO: Initializing Mojarra 2.0.4 (FCS b09) for context '/Seam3Example'
                  Sep 20, 2011 2:05:12 PM com.sun.faces.spi.InjectionProviderFactory createInstance
                  INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotatio
                  ns will have said annotations processed.
                  Sep 20, 2011 2:05:15 PM org.richfaces.javascript.ClientServiceConfigParser parse
                  WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that
                   class is not presented
                  Sep 20, 2011 2:05:15 PM org.richfaces.cache.CacheManager getCacheFactory
                  INFO: Selected fallback cache factory
                  Sep 20, 2011 2:05:15 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache
                  INFO: Creating LRUMap cache instance using parameters: {javax.faces.PROJECT_STAGE=Development}
                  Sep 20, 2011 2:05:15 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache
                  INFO: Creating LRUMap cache instance of 512 items capacity
                  Sep 20, 2011 2:05:15 PM org.richfaces.application.InitializationListener onStart
                  INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.Final SVN r.22269
                  Sep 20, 2011 2:05:15 PM com.sun.faces.config.ConfigManager initialize
                  INFO: Unsanitized stacktrace from failed start...
                  java.util.NoSuchElementException
                          at com.google.common.collect.Iterators$1.next(Iterators.java:65)
                          at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25)
                          at org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventLis
                  tener.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:2102)
                          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2078)
                          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:301)
                          at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.publishEvent(ForwardingApplication.jav
                  a:330)
                          at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:604)
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:347)
                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226)
                          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(FutureTask.java:303)
                          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                          at java.lang.Thread.run(Thread.java:662)
                  Sep 20, 2011 2:05:15 PM com.sun.faces.config.ConfigureListener contextInitialized
                  SEVERE: Critical error during deployment:
                  com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:357)
                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226)
                          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(FutureTask.java:303)
                          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                          at java.lang.Thread.run(Thread.java:662)
                  Caused by: java.util.NoSuchElementException
                          at com.google.common.collect.Iterators$1.next(Iterators.java:65)
                          at org.jboss.seam.faces.event.AbstractListener.getListeners(AbstractListener.java:25)
                          at org.jboss.seam.faces.event.DelegatingSystemEventListener.getEventListeners(DelegatingSystemEventLis
                  tener.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:2102)
                          at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2078)
                          at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:301)
                          at org.jboss.weld.environment.servlet.jsf.ForwardingApplication.publishEvent(ForwardingApplication.jav
                  a:330)
                          at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:604)
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:347)
                          ... 9 more
                  Sep 20, 2011 2:05:16 PM org.apache.catalina.core.StandardContext startInternal
                  SEVERE: Error listenerStart
                  Sep 20, 2011 2:05:16 PM org.apache.catalina.core.StandardContext startInternal
                  SEVERE: Context [/Seam3Example] startup failed due to previous errors
                  Sep 20, 2011 2:05:16 PM com.sun.faces.config.ConfigureListener contextDestroyed
                  SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
                  java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory:
                  javax.faces.application.ApplicationFactory
                          at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
                          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
                          at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:108)
                          at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:327)
                          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763)
                          at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5472)
                          at java.lang.Thread.run(Thread.java:662)
                          at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5481)
                          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225)
                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
                          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
                          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
                          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
                          at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1055)
                          at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:978)
                          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
                          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
                          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
                          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
                          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
                          at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:379)
                          at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:324)
                          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
                          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
                          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
                          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
                          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
                          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
                          at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:597)
                          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
                          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
                  
                  



                  • 12. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
                    Devi S Newbie

                    Hi,


                         I cleared my errors when using tomcat 7. Previously i configured tomcat 7 in my destop. At that time it shows the following warnings


                    WARNING: could not read entries
                    java.io.FileNotFoundException: C:\Documents%2520and%2520Settings\devi\Desktop\apache-tomcat-7.0.14-windows-x86
                    \apache-tomcat-7.0.14\webapps\Seam3Example\WEB-INF\lib\seam-solder-3.0.0.Final.jar (The system cannot find the
                     path specified)



                    Now i changed that into different drive.now its working fine.


                    Thanks a lot for your help!
                    Devi

                    • 13. Re: Failed to locate BeanManager using any of t hese providers: org.jboss.seam.solder.beanManager.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.be anManager.ServletContainerJndiBeanManagerProvider(10)
                      Timothy Freyne Newbie

                      SOLUTION:


                      If you are using Tomcat 6 you must register the BeanManager with the META-INF/context.xml file.



                      <?xml version="1.0" encoding="UTF-8"?>
                      <Context>
                         <!-- disable storage of sessions across restarts -->
                         <Manager pathname=""/>
                         <Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.jboss.weld.resources.ManagerObjectFactory"/>
                         <!-- Uncomment to enable injection into Servlets, Servlet Listeners and Filters in Tomcat -->
                         <!-- <Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> -->
                      </Context>



                      if using jetty use jetty-env.xml




                      <?xml version="1.0" encoding="UTF-8"?>
                      <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
                      <Configure id="webAppCtx" class="org.mortbay.jetty.webapp.WebAppContext">
                         <New id="beanManager" class="org.mortbay.jetty.plus.naming.Resource">
                            <Arg>
                               <Ref id="webAppCtx"/>
                            </Arg>
                            <Arg>BeanManager</Arg>
                            <Arg>
                               <New class="javax.naming.Reference">
                                  <Arg>javax.enterprise.inject.spi.BeanManager</Arg>
                                  <Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>
                                  <Arg/>
                               </New>
                            </Arg>
                         </New>
                      </Configure>