bug宝典JAVA篇 package javax.servlet.http does not exis
来源:互联网 发布:matlab怎么用数据画图 编辑:程序博客网 时间:2024/05/16 07:33
执行maven install命令时,出现了下面的错误
result is :[ERROR] /root/.jenkins/workspace/fontal/dzmsoft-ccs/src/main/java/com/dzmsoft/ccs/base/controller/CcsDataDictionaryController.java:[7,26] package javax.servlet.http does not exisresult is :[ERROR] /root/.jenkins/workspace/fontal/dzmsoft-ccs/src/main/java/com/dzmsoft/ccs/base/controller/CcsDataDictionaryController.java:[68,37] cannot find symboresult is :[ERROR] symbol: class HttpServletRequesresult is :[ERROR] location: class com.dzmsoft.ccs.base.controller.CcsDataDictionaryControlleresult is :[ERROR] /root/.jenkins/workspace/fontal/dzmsoft-ccs/src/main/java/com/dzmsoft/ccs/base/controller/CcsDataDictTypeController.java:[7,26] package javax.servlet.http does not exisresult is :[ERROR] /root/.jenkins/workspace/fontal/dzmsoft-ccs/src/main/java/com/dzmsoft/ccs/base/controller/CcsDataDictTypeController.java:[65,40] cannot find symboresult is :[ERROR] symbol: class HttpServletRequesresult is :[ERROR] location: class com.dzmsoft.ccs.base.controller.CcsDataDictTypeControlleresult is :[ERROR] /root/.jenkins/workspace/fontal/dzmsoft-ccs/src/main/java/com/dzmsoft/ccs/base/controller/CcsDataDictionaryTreeController.java:[66,40] cannot find symbo
检查pom.xml,发现scope是test,改成provided,应该就可以。
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <scope>test</scope> </dependency>
不过查看我的web.xml,已经是3.0了,servlet-api2.5已经过时了
于是改用了
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency>
0 0
- bug宝典JAVA篇 package javax.servlet.http does not exis
- tomcat7解决package javax.servlet does not exist的问题
- 【Bug笔记】The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 【JSP引入报错】--package javax.servlet.jsp does not exist
- javax.servlet.http.HttpServlet was not found on the Java
- java.lang.IllegalArgumentException: Document base X:\X\X does not exis
- java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4ac0de20 does not exis
- java.lang.SecurityException: class "javax.servlet.FilterRegistration"'s signer information does not
- javax.servlet.http.httpservlet is not defined
- "javax.servlet.http.HttpServlet" was not found
- javax.servlet.http.httpservlet was not found
- javax.servlet.ServletException: DispatchMapping[XX] does not define a handler
- javax.servlet.ServletException: DispatchMapping[/*] does not define a handler property
- 建立java The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决办法
- vmware workstation虚拟机网络配置
- C语言实验——数组逆序
- ubuntu启动apache启动不了的其中一种解决方法
- 我的hacker之路
- shiro登录的简单demo
- bug宝典JAVA篇 package javax.servlet.http does not exis
- JavaScript使用select实现添加删除
- 34-3-1
- gradle基本概念
- 运维世界大会干货总结
- 简单介绍Java网络编程中的HTTP请求
- 网络图片查看器
- POJ 3100 Root of the Problem G++
- STM32中printf与scanf的重定向问题