I'm using appfuse-basic-struts. I am getting the same errors on my linux box,
so it must be something with the Tomcat plugin. I think I'll take your
suggestion and use Jetty...it's not worth the headache =)

I appreciate your help!


mraible wrote:
> 
> What web framework are you using? The Tomcat plugin is alpha quality,
> doesn't seem to be maintained and uses Tomcat 5.5.15. I recommend
> using the Jetty plugin for development - especially since it can
> monitor your project and detect changes on-the-fly.
> 
> Matt
> 
> On 9/6/07, emartin24 <[EMAIL PROTECTED]> wrote:
>>
>> Same error... I can stick with cargo:start, I just thought it was
>> interesting
>> that I was getting these errors when using the Tomcat plugin. I started
>> with
>> a fresh copy of Appfuse...maybe it's an environment issue.
>>
>> I'll try it elsewhere and see if I get the same error.
>>
>>
>>
>>
>> mraible wrote:
>> >
>> > If you've run "appfuse:full-source" or "war:inplace", you can probably
>> > use "tomcat:run". If you haven't, you'll need to use "tomcat:run-war".
>> >
>> > Matt
>> >
>> > On 9/6/07, emartin24 <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hmm...actually, there isn't a lib directory there. There are 3 lib
>> >> directories, but they are all under target/
>> >>
>> >> target/test-1.0-SNAPSHOT/WEB-INF
>> >> target/work/webapp/WEB-INF
>> >> target/tomcat5x/container/webapps/test-1.0-SNAPSHOT/WEB-INF
>> >>
>> >> http://www.qos.ch/logging/classloader.jsp (Example-4) talks about this
>> >> error, but I'm not sure how to resolve it.
>> >>
>> >> Thanks,
>> >> Eric
>> >>
>> >>
>> >>
>> >> mraible wrote:
>> >> >
>> >> > 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]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/2.0-RC1%3A-FATAL-ERROR-when-using-tomcat%3Arun-tf4394579s2369.html#a12531372
>> >>
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/2.0-RC1%3A-FATAL-ERROR-when-using-tomcat%3Arun-tf4394579s2369.html#a12531492
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/2.0-RC1%3A-FATAL-ERROR-when-using-tomcat%3Arun-tf4394579s2369.html#a12531708
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to