[英]Java Update jetty from Version 8 to 9.2.7: exception “Multiple Servlets to path”
I updated my jetty from 7 to 8. At the moment I'm trying to update from Version 8 to 9. I can't reach the webpage and there is an error:我将码头从 7 更新到 8。目前我正在尝试从版本 8 更新到 9。我无法访问网页,并且出现错误:
org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@16c1863{/,file:"/path/to/workspace/project"/webapp/,STARTING}{./webapp}
java.lang.IllegalStateException: Multiple servlets map to path: /V/administration.cache/app/*: "Vaadin Servlet"
Changed paths and packages are tagged by ".
I found out, that there was a bug, which should be fixed now.我发现,有一个错误,现在应该修复。
Is this caused by a Bug or is there a possibility to solve it with other methods and classes from Version 9. A change of the paths is not possible.这是由错误引起的,还是有可能使用版本 9 中的其他方法和类来解决它。无法更改路径。
Thanks to everyone, who could help.感谢所有可以提供帮助的人。
Your webapp, has multiple declarations for the same url-pattern.您的 web 应用程序对同一个 url-pattern 有多个声明。
Namely /V/administration.cache/app/*
即/V/administration.cache/app/*
That means your webapp's declaration is bad, and can produce unpredictable results.这意味着您的 web 应用程序的声明是错误的,并且会产生不可预测的结果。
What's likely happened is that your move from Jetty 7 which was simple with its declaration handling (Servlet 2.5, only used WEB-INF/web.xml
) to Jetty 9 where everything can participate (Servlet 3.1) including the classes themselves, their annotations, and even the other WEB-INF/lib/*.jar
files as well.可能发生的情况是,您从 Jetty 7 移动,它的声明处理很简单(Servlet 2.5,仅使用WEB-INF/web.xml
)到 Jetty 9,其中一切都可以参与(Servlet 3.1),包括类本身,它们的注释,甚至其他WEB-INF/lib/*.jar
文件也是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.