Hi Olivier,
It's actually the act of declaring a context.xml with a Loader element
that causes the application to fail. A new instance of WebAppLoader is
created, overriding the one carefully created by the plugin, without the
benefit of a properly configured class path. I've included a small
Hi,
2012/4/13 Leigh Anderson leigh.ander...@betfair.com:
Hi Olivier,
It's actually the act of declaring a context.xml with a Loader element
that causes the application to fail. A new instance of WebAppLoader is
created, overriding the one carefully created by the plugin, without the
benefit
I'd added
classLoaderClassorg.springframework.instrument.classloading.tomcat.Tomc
at
InstrumentableClassLoader/classLoaderClass to the plugin
configuration,
which was then picked up correctly and used by the WebAppLoader.
Could you attach the patch to an issue ?
MTOMCAT-140 created.
Hello,
Apologize for delay.
That should be fixed now (I have deployed 2.0-SNAPSHOT).
If you could try with your use case.
Thanks,
2012/4/8 Olivier Lamy ol...@apache.org:
Hello Leigh,
Thanks for creating issue.
Until now I tried to reproduce the issue but I failed.
I wonder if you could attach
Hi Olivier,
That's solved the problem, thanks. Unfortunately, declaring a custom class
loader in a context.xml causes Tomcat to use that one, instead of the one
set up with the correct class path by the plugin. I'll keep looking to see
if I can find a way around this.
Thanks for your prompt help
The plugin has an option to setup context.xml to use see [1].
You can try to write an other context.xml only for using with the plugin ?
--
Olivier
[1]
http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/run-mojo.html#contextFile
2012/4/12 Leigh Anderson
Hello Leigh,
Thanks for creating issue.
Until now I tried to reproduce the issue but I failed.
I wonder if you could attach a build log using -e mvn flag.
2012/4/5 Leigh Anderson leigh.ander...@betfair.com:
Hi Olivier,
I'm not able to run this with tomcat6 as it's a Servlet 3.0 project. I'll
Hi Olivier,
I'm not able to run this with tomcat6 as it's a Servlet 3.0 project. I'll
get the issue created -- should have some time next week to put together a
sample project.
Thanks,
Leigh
On 04/04/2012 11:36, Olivier Lamy ol...@apache.org wrote:
Hello,
Looks to be an issue (does that work
Hello,
Looks to be an issue (does that work with tomcat6:run ?)
Could you create an issue here:
https://issues.apache.org/jira/browse/MTOMCAT (if possible with a
small sample project to reproduce).
Thanks
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy |
Hi All,
I'm trying to start a web application with 'mvn tomcat7:run'. It seems
that with the configuration below it fails with the following error:
[INFO]
[ERROR] Failed to execute goal
10 matches
Mail list logo