title: Unable to load class [com.sun.jmx.mbeanserver.RepositorySupport] to check against the @HandlesTypes
body: <p>after migrating to tomcat <strong>7.0.22</strong>
  and installing <strong>t7mp</strong> (<strong>tomcat 7 plugin from google code</strong>) i am running on <strong>maven 2</strong> btw
  when trying to run <strong>mvn t7:run</strong>, i got the following exception:</p>
  
  <pre><code>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: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: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.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: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:288)
          at com.googlecode.t7mp.RunMojo.execute(RunMojo.java:52)
          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
          at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
          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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Oct 18, 2011 11:50:00 AM org.apache.catalina.startup.ContextConfig checkHandlesTypes
  </code></pre>
  
  <p>here's my configuration for t7mp:</p>
  
  <pre><code>&lt;plugin&gt;
                  &lt;groupId&gt;com.googlecode.t7mp&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-t7-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.9.6&lt;/version&gt;
                  &lt;configuration&gt;
                       &lt;tomcatHttpPort&gt;8081&lt;/tomcatHttpPort&gt;
                       &lt;tomcatShutdownPort&gt;8008&lt;/tomcatShutdownPort&gt;
                       &lt;tomcatVersion&gt;7.0.22&lt;/tomcatVersion&gt;                                     
                  &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>so any ideas why i am getting this error, and how to solve it ?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>i got the same error when trying to run my external tomcat7 from eclipse.</p>