Try:
rm -r src/main/webapp/WEB-INF/lib
On 9/6/07, emartin24 <[EMAIL PROTECTED]> wrote:
> I'm trying to use the Tomcat plugin, but get the following when I run mvn
> tomcat:run: C:\appfuse\test>mvn tomcat:run [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'tomcat'. [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building AppFuse Struts 2 Application [INFO] task-segment:
> [tomcat:run] [INFO]
> ----------------------------------------------------------------------------
> [INFO] Preparing tomcat:run [INFO] [warpath:add-classes {execution:
> default}] [INFO] [aspectj:compile {execution: default}] [INFO]
> [native2ascii:native2ascii {execution: native2ascii-utf8}] [INFO]
> [native2ascii:native2ascii {execution: native2ascii-8859_1}] [INFO]
> [resources:resources] [INFO] Using default encoding to copy filtered
> resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes
> are up to date [INFO] [tomcat:run] [INFO] Using existing Tomcat server
> configuration at C:\appfuse\test\target/tomcat [INFO] Starting tomcat server
> [INFO] Starting Servlet Engine: Apache Tomcat/5.5.15 [INFO] XML validation
> disabled [INFO] Can't register valve
> org.apache.catalina.core.StandardContextValve[/test-1.0-SNAPSHOT]
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationExc eption:
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierarchy. You h ave more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationEx ception:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logg ing.Log' visible, which is not allowed. (Caused by
> org.apache.commons.logging.LogConfigurationExcept ion:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logging. Log' visible, which is not allowed.)) at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
> at
> org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
> at
> org.apache.catalina.valves.ValveBase.createObjectName(ValveBase.java:256)
> at
> org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:296)
> at
> org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:233)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4103)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> at
> org.apache.catalina.startup.Embedded.start(Embedded.java:821)
> at
> org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:253)
> at
> org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:113)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
> .java:539) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycl
> eExecutor.java:493) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
> java:463) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
> ifecycleExecutor.java:311) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
> xecutor.java:278) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> :143) at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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)
> Caused by:
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfi gurationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.co mmons.logging.Log' visible, which is not allowed. (Caused by
> org.apache.commons.logging.LogConfigura tionException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.common s.logging.Log' visible, which is not allowed.) at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
> ... 32 more Caused by:
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierarchy. Yo u have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed. at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
> ... 33 more [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR [INFO]
> ------------------------------------------------------------------------
> [INFO] null Invalid class loader hierarchy. You have more than one version
> of 'org.apache.commons.logging.Log' visible, which is not allowed. [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace java.lang.ExceptionInInitializerError at
> org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4230)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4107)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> at
> org.apache.catalina.startup.Embedded.start(Embedded.java:821)
> at
> org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:253)
> at
> org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:113)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
> .java:539) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycl
> eExecutor.java:493) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
> java:463) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
> ifecycleExecutor.java:311) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
> xecutor.java:278) at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> :143) at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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)
> Caused by:
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfi gurationException:
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierar chy. You have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allow ed. (Caused by
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConf igurationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.c ommons.logging.Log' visible, which is not allowed. (Caused by
> org.apache.commons.logging.LogConfigur ationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.commo ns.logging.Log' visible, which is not allowed.)) at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
> at
> org.apache.catalina.startup.TldConfig.(TldConfig.java:66)
> ... 27 more Caused by:
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfi gurationException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.co mmons.logging.Log' visible, which is not allowed. (Caused by
> org.apache.commons.logging.LogConfigura tionException:
> Invalid class loader hierarchy. You have more than one version of
> 'org.apache.common s.logging.Log' visible, which is not allowed.) at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
> ... 31 more Caused by:
> org.apache.commons.logging.LogConfigurationException:
> Invalid class loader hierarchy. Yo u have more than one version of
> 'org.apache.commons.logging.Log' visible, which is not allowed. at
> org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
> ... 32 more [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds [INFO] Finished at: Thu Sep 06 13:25:47 PDT
> 2007 [INFO] Final Memory: 17M/31M [INFO]
> ------------------------------------------------------------------------
> Any ideas? I can run mvn cargo:start -Dcargo.wait=true and
> it works fine.
> ________________________________
> View this message in context: 2.0-RC1: FATAL ERROR when using tomcat:run
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]