Hi.
Thanks for the answer. But i didn't quite catch, what i should do?
Eclipse refused to start Tomcat. I don't have any annotations i my
application.
Basil.
From: Violeta Georgieva
Sent: Monday, April 04, 2016 10:30 AM
To: Tomcat Users List
Subject: Re: Exception Both the UrlPattern and value attribute were set for
the WebServlet annotation on class ...
Hi,
2016-04-04 9:53 GMT+03:00 basilk <bas...@obninsk.com>:
Hi.
I try to start tomcat 8.0.33 in debug mode under Eclipse Mars.2.
I get the following errors:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/isogdquery]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/isogdquery]]
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
... 6 more
Caused by: java.lang.IllegalArgumentException: Both the UrlPattern and
value attribute were set for the WebServlet annotation on class
[test.org.apache.catalina.startup.DuplicateMappingParamFilter]
at
org.apache.catalina.startup.ContextConfig.processAnnotationWebFilter(ContextConfig.java:2426)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2057)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1940)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1934)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1934)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1934)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1934)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1934)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1147)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:306)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5150)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 6 more
This exception means that the filter with
class test.org.apache.catalina.startup.DuplicateMappingParamFilter has
wrong annotation i.e. the @WebFilter annotation is used with both "value"
and "urlPatterns" which is wrong.
If this filter is the one from Tomcat tests sources it is stated clearly in
the javadoc that this class is used for testing wrong annotations.
About the message itself, it needs some rewording because the problem is
not with @WebServlet but with @WebFilter.
I'll fix that.
Regards,
Violeta
When i start tomcat as service in Windows everything is ok.
What seems to be a problem?
Thank you.
Basil.
---
Это сообщение проверено на вирусы антивирусом Avast.
https://www.avast.com/antivirus
---
Это сообщение проверено на вирусы антивирусом Avast.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org