eclipse中启动Tomcat7 server失败Caused by: java.lang.IllegalArgumentException: The servlets named...
来源:互联网 发布:mac os 快压 知乎 编辑:程序博客网 时间:2024/05/27 06:51
Caused by: java.lang.IllegalArgumentException: The servlets named [ServletDemo] and [day05.ServletDemo] are both mapped to the url-pattern [/ServletDemo] which is not permitted
应该是 /ServletDemo 一个请求映射了 [ServletDemo] and [day05.ServletDemo] 两个servlet
找到原因了
是因为在类定义上面:
@WebServlet("/ServletDemo")//这里
public class ServletDemo extends HttpServlet {
不需要再在web.xml中定义servlet属性了。
0 0
- eclipse中启动Tomcat7 server失败Caused by: java.lang.IllegalArgumentException: The servlets named...
- ClassPathXmlApplicationContext Caused by: java.lang.IllegalArgumentException
- FeignClient Caused by: java.lang.IllegalArgumentException
- Eclipse启动tomcat-》Caused by: java.lang.NoClassDefFoundError解决方案
- AndroidStudio启动异常:Caused by: java.lang.IllegalArgumentException: Argument for @NotNull paramet
- Caused by: java.lang.IllegalArgumentException: The handle attribute is must refer to an existing chi
- Caused by: java.lang.IllegalArgumentException: you must specify a way to create the tab indicator.
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- Caused by: java.lang.IllegalArgumentException: the bind value at index 1 is null
- Tomcat7启动报错Caused by: java.lang.NoClassDefFoundError: Lorg/apache/AnnotationProcessor;
- Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: testcluster
- Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: mycluster
- Fragment中测量宽度、高度, Caused by: java.lang.IllegalArgumentException: width and height must be > 0
- Caused by: java.lang.IllegalArgumentException: bad base-64
- Caused by: java.lang.IllegalArgumentException: Original must not be null
- Caused by: java.lang.IllegalArgumentException: argument type mismatch错误
- Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit:
- 项目PMO工作
- iframe获取父、子窗口的方法
- Joomla插件构造函数后门分析
- JavaBean中使用JDBC方式进行事务处理
- js 获取网页高度等信息
- eclipse中启动Tomcat7 server失败Caused by: java.lang.IllegalArgumentException: The servlets named...
- 怎样发高质量的外链
- hibernate事务并发机制
- box2d -ApplyForce, ApplyImpulse, SetLinearVelocity
- diacuzX】门户diy风格模版制作教程。
- Android项目中的编译问题及appcompatv7
- IE6浏览器为啥还是死不了?
- 一道淘汰85%面试者的百度开发者面试题
- 对提高ASP执行效率的几点看法