4 Replies Latest reply on Jan 4, 2012 4:59 PM by feuyeux

    Can't run tomcat 7 on eclipse helios 3.6.1

    890340
      i have eclipse helios 3.6.1 with WTP 3.1.2
      and i downloaded Tomcat 7.0.22 and added it to servers
      but when i tried to run my application (BTW my application uses servlet-api 3.0.1, jsp-api 2.2.1 , el-api 2.2.2, JSF 2.1 , Maven 2 as build tool) on server, i got the following exception:

          WARNING: Unable to load class [Testing.MyTest] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. 
          java.lang.ClassNotFoundException: Testing.MyTest
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
               at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2006)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1969)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1914)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1905)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1905)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1905)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1905)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1828)
               at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1295)
               at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)
               at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)
               at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               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.deployDescriptor(HostConfig.java:633)
               at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
               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:90)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
               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:148)
               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:148)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
               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:322)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
          Oct 19, 2011 6:32:12 PM org.apache.catalina.startup.ContextConfig checkHandlesTypes
          WARNING: Unable to load class [com.sun.jmx.mbeanserver.MBeanInstantiatorImpl] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. 
          java.lang.IncompatibleClassChangeError: Implementing class
               at java.lang.ClassLoader.defineClass1(Native Method)
               at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
               at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
               at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
               at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2820)
               at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1150)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
               at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2006)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1969)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1858)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1826)
               at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1812)
               at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1306)
               at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)
               at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)
               at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               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.deployDescriptor(HostConfig.java:633)
               at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
               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:90)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
               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:148)
               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:148)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
               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:322)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
          Oct 19, 2011 6:32:12 PM org.apache.catalina.startup.ContextConfig checkHandlesTypes
          WARNING: Unable to load class [com.sun.jmx.mbeanserver.RepositorySupport] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. 
          java.lang.IncompatibleClassChangeError: Implementing class
               at java.lang.ClassLoader.defineClass1(Native Method)
               at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
               at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
               at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
               at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2820)
               at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1150)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
               at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
               at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2006)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1969)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1858)
               at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1826)
               at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1812)
               at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1306)
               at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896)
               at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322)
               at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
               at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
               at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               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.deployDescriptor(HostConfig.java:633)
               at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:558)
               at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)
               at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
               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:90)
               at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
               at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
               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:148)
               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:148)
               at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
               at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
               at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
               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:322)
               at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
      so any ideas why i get this exception ?