2013/1/10 <[email protected]>:
> Author: markt
> Date: Thu Jan 10 11:39:46 2013
> New Revision: 1431293
>
> URL: http://svn.apache.org/viewvc?rev=1431293&view=rev
> Log:
> Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54379
> Implement support for post-construct and pre-destroy elements in web.xml
> Patch by Violeta Georgieva.
>
I observe a failure in org.apache.catalina.core.TestStandardContextResources
Failing test: testResourcesAbsoluteOrdering
Testcase: testResourcesAbsoluteOrdering took 0,984 sec
Caused an ERROR
Failed to start component
[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/test]]
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/test]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.TestStandardContextResources.testResourcesAbsoluteOrdering(TestStandardContextResources.java:179)
Caused by: java.lang.IllegalArgumentException: Duplicate post
construct method definition for class
org.apache.catalina.startup.TesterServletWithLifeCycleMethods
at
org.apache.catalina.core.StandardContext.addPostConstructMethod(StandardContext.java:5857)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1424)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1219)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:814)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:321)
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:5008)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
I have not found the cause yet, but
if I hide <post-construct>/<pre-destroy> elements in
webapp-3.0-fragments/WEB-INF/web.xml in a comment, the test passes.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]