3 Replies Latest reply on Jul 28, 2011 2:58 AM by hantsy bai

    Exception ocurred in Seam3 + Tomcat 6

    hantsy bai Master

      I run it in the embeded tomcat(tomcat maven plugin 1.0 used 6.0.26 by default) ,it it no problem, but run in tomcat 6.0.29 through NetBeans IDE, I got the following exception info in Output Windows.


      
      严重: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
      java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/jboss/weld/environment/servlet/Listener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ELResolver used in the signature
              at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:196)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
              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:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
              at org.apache.catalina.core.StandardService.start(StandardService.java:519)
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
              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:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      2011-7-27 15:24:10 org.apache.catalina.core.StandardContext listenerStart
      严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.RuntimeException: 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.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
              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:546)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
              at org.apache.catalina.core.StandardService.start(StandardService.java:519)
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
              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:289)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: 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.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10), 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)
              ... 24 more
      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.DefaultJndiBeanManagerProvider(11), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10), org.jboss.seam.solder.beanManager.ServletContainerJndiBeanManagerProvider(10)
              at org.jboss.seam.solder.beanManager.BeanManagerLocator.getBeanManager(BeanManagerLocator.java:91)
              at org.jboss.seam.faces.environment.SeamApplicationFactory.getApplication(SeamApplicationFactory.java:47)
              at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:91)
              at com.sun.faces.config.processor.AbstractConfigProcessor.getApplication(AbstractConfigProcessor.java:130)
              at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:255)
              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
              at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
              at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)
              ... 25 more
      2