0
Caused by: java.lang.IllegalArgumentException: The servlets named [JavaQuestionForm] and [JavaQuestion] are both mapped to the url-pattern [/JavaQuestion] which is not permitted
    at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)
    at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2443)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:2041)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1948)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1311)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5479)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 6 more
4

2 に答える 2

2

例外で述べたように、2 つの異なるサーブレットを同じ URI にバインドしようとしています。

The servlets named [JavaQuestionForm] and [JavaQuestion] are both mapped to the url-pattern [/JavaQuestion] which is not permitted

あなたはあなたを変える必要がありますweb.xml

于 2016-01-26T07:06:28.940 に答える
0

web.xmlまたは Web 構成の注釈を確認してください。どうやら、2 つの異なるサーブレット (JavaQuestionおよびJavaQuestionForm) を同じ URL にマップしたようです: /JavaQuestion

于 2016-01-26T07:05:05.930 に答える