程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> tomcat debug-maven ci和在tomcat下的debug模式運行出一樣的錯,這是缺包還是什麼錯?

tomcat debug-maven ci和在tomcat下的debug模式運行出一樣的錯,這是缺包還是什麼錯?

編輯:編程解疑
maven ci和在tomcat下的debug模式運行出一樣的錯,這是缺包還是什麼錯?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project feiliao91-common: Compilation failure: Compilation failure:
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoUtils.java:[21,39] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoUtils.java:[40,39] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoUtils.java:[49,36] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[12,30] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[12,58] 找不到符號
[ERROR] 符號: 類 HttpServletResponse
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[19,32] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[19,60] 找不到符號
[ERROR] 符號: 類 HttpServletResponse
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[25,28] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[36,36] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[36,64] 找不到符號
[ERROR] 符號: 類 HttpServletResponse
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDtoByMobile.java:[33,17] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDtoByMobile
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDtoByMobile.java:[128,16] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDtoByMobile
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDtoByMobile.java:[132,35] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDtoByMobile
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDto.java:[50,17] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDto.java:[192,16] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/goods/OrdersDto.java:[196,35] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.goods.OrdersDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[17,35] 找不到符號
[ERROR] 符號: 類 Filter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[32,30] 找不到符號
[ERROR] 符號: 類 ServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[32,49] 找不到符號
[ERROR] 符號: 類 ServletResponse
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[33,25] 找不到符號
[ERROR] 符號: 類 FilterChain
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[33,64] 找不到符號
[ERROR] 符號: 類 ServletException
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[176,26] 找不到符號
[ERROR] 符號: 類 FilterConfig
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[176,54] 找不到符號
[ERROR] 符號: 類 ServletException
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[232,56] 找不到符號
[ERROR] 符號: 類 HttpServletRequest
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/trade/TradeLogDto.java:[16,17] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.trade.TradeLogDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/trade/TradeLogDto.java:[60,16] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.trade.TradeLogDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/dto/trade/TradeLogDto.java:[64,35] 找不到符號
[ERROR] 符號: 類 JSONObject
[ERROR] 位置: 類 com.ast.feiliao91.dto.trade.TradeLogDto
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[16,17] 找不到符號
[ERROR] 符號: 變量 MemcachedUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[22,24] 找不到符號
[ERROR] 符號: 變量 MemcachedUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[26,36] 找不到符號
[ERROR] 符號: 變量 HttpUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[28,20] 找不到符號
[ERROR] 符號: 變量 StringUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[33,17] 找不到符號
[ERROR] 符號: 變量 MemcachedUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[37,36] 找不到符號
[ERROR] 符號: 變量 HttpUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[39,20] 找不到符號
[ERROR] 符號: 變量 StringUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SessionUtils.java:[41,25] 找不到符號
[ERROR] 符號: 變量 HttpUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SessionUtils
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoUtils.java:[22,32] 找不到符號
[ERROR] 符號: 類 HttpException
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[31,9] 方法不會覆蓋或實現超類型的方法
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[185,20] 找不到符號
[ERROR] 符號: 變量 StringUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[194,20] 找不到符號
[ERROR] 符號: 變量 StringUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[203,20] 找不到符號
[ERROR] 符號: 變量 StringUtils
[ERROR] 位置: 類 com.ast.feiliao91.auth.SsoFilter
[ERROR] /home/jiazekun/dev/feiliao91/feiliao91-common/src/main/java/com/ast/feiliao91/auth/SsoFilter.java:[175,9] 方法不會覆蓋或實現超類型的方法
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :feiliao91-common

最佳回答:


建議使用本地的tomcat自行部署項目試一下 感覺這個問題出在tomcat運行時找不到例如javax.servlet。。的jar包和json的jar包 我知道你項目裡肯定到了
可能是使用maven的tomcat組件時,引入的這個組件沒有這些jar

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved