1 Reply Latest reply on Jul 28, 2011 3:02 AM by hantsy bai

    Exception when deploy Seam 3 web project on Tomcat 7

    hantsy bai Master

      I tried to deploy my before project on tomcat7 , and get the following exception.




      严重: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
      java.lang.NoClassDefFoundError: org/apache/AnnotationProcessor
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
           at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
           at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
           at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
           at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
           at org.jboss.weld.environment.tomcat.Tomcat6Container.initialize(Tomcat6Container.java:47)
           at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:184)
           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.lang.ClassNotFoundException: org.apache.AnnotationProcessor
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
           ... 26 more
      2011-7-27 20:38:29 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: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: 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)
           ... 8 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)
           ... 9 more