Tomcat啟動Maven專案時報錯:ContextLoaderListener、WebAppRootListener兩個監聽器找不到
專案環境:jdk1.8、spring+springMVC+Mybatis、Tomcat8.5
報錯背景:Maven專案部署到tamcat上啟動時報錯誤
org.springframework.web.context.ContextLoaderListener
org.springframework.web.util.WebAppRootListener
這兩個類報notnullClassException.
解決方式:
右擊專案–>>propertice–>>Deployment Assembly–>>add
把這裡的全部東西都選擇新增–>>完成
效果:
主要就是Maven Dependencies這個要出現;點選apply and close就可以了,重啟伺服器不再報錯就ok了!
相關推薦
Tomcat啟動Maven專案時報錯:ContextLoaderListener、WebAppRootListener兩個監聽器找不到
專案環境:jdk1.8、spring+springMVC+Mybatis、Tomcat8.5 報錯背景:Maven專案部署到tamcat上啟動時報錯誤 org.springframework.web.context.ContextLoaderListener org.springframework.web.util.WebAppRo
使用maven打包專案時報錯:[INFO] Using 'UTF-8' encoding to copy filtered resources.
有時候maven打包專案時會報這樣的錯: [INFO] Scanning for projects...[INFO] [INFO] ------------------< com.atguigu:springboot_02_config >------------------[INFO] Building springboot_02_config 0.0
Jenkins從節點上構建自動化測試專案時報錯:java.io.IOException: Unexpected termination of the channel
在mac電腦上配置了Jenkins從節點,在該從節點上構建app UI 自動化測試專案,執行一些用例後報如下錯誤:
Eclipse整合Maven打包時報錯:[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format
1、Eclipse整合Maven打包時報錯:[ERROR] Unknown lifecycle phase \"mvn\". You must specify a valid lifecycle phase or a goal in the format。
啟動vue專案報錯:Module build failed: Error: Cannot find module 'node-sass'
安裝啟動vue專案時候,報如下錯誤: 錯誤表示找不到模組node-sass想著輸入命令 npm install node-sass --save-dev 安裝可以解決,但發現不是會報錯如下
【C語言】求方程式 ax^2+bx+c=0 的根, 分別考慮: 1、有兩個不等的實根 2、有兩個相等的實根
技術標籤:C語言程式設計c語言演算法 C語言求方程式 ax^2+bx+c=0 的根, 分別考慮: 1、有兩個不等的實根 2、有兩個相等的實根
Oracle例項啟動時報錯:ORA-32004的解決方法
前言 前段時間,早上剛到公司,開啟電腦就發現啟動Oracle例項的時候報了下面的錯誤:
通過Maven匯出war包時報錯:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project
通過Maven匯出war包時報錯:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project Ocr: Error assembling WAR: webxml attribute is required (or pre-existing WEB
Intel Realsense D435 開始執行啟動時報錯:RuntimeError: Couldn‘t resolve requests 原因及解決辦法
技術標籤:pythonbug Question Intel Realsense D435 開始執行啟動時報錯:RuntimeError: Couldn’t resolve requests 利用d435 rgb frame拍攝影象時出現如下錯誤:
spirng eureka client啟動時報錯:Completed shut down of DiscoveryClient
技術標籤:SpringCloudspring cloud 1、在對應的工程pom檔案加入如下web依賴即可:
Springboot專案Maven打包報錯:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
今天新建一個前端demo專案,需要引入thymeleaf依賴,專案執行和測試都正常,但是打包的時候卻報以下錯誤:
ISE啟動Modelsim時報錯:Platform Mismatch!
ISE 14.7聯合modelsim 10.1c 使用時遇到了這個問題,根據提示資訊是編譯庫對應nt(32位),但是需要的是nt64(64位), 可我用modelsim編譯Xilinx IP時明明就是選的64 bit.
SpringBoot專案連線ElasticSearch時報錯:None of the configured nodes are available
在專案中用到了ElasticSearch,後臺使用org.elasticsearch.client.transport.TransportClient連線,使用本機的es測試沒問題,但是用部署到公司伺服器上的es建立索引報錯:None of the configured nodes are availabl
匯入tensorflow時報錯:cannot import name 'abs'的解決
一,問題背景 作者在用tensorflow做實驗時,import tensorflow忽然報錯:cannot import name \'abs\'。錯誤情況如下所示:
Jenkins - 解決整合 jmeter+ant 傳送郵件時報錯:java.lang.ClassNotFoundException: javax.mail.internet.MimeMessage
jenkins + jmeter +ant 傳送郵件失敗 問題原因 其實就是缺失 jar 包,導致某些類找不到了
Mac下Python執行時報錯:Class QMacAutoReleasePoolTracker is implemented in both /.../site-packages/PyQt5/... and /.../site-packages/cv2/...
完整報錯如下: objc[22334]: Class QMacAutoReleasePoolTracker is implemented in both /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions
service mysqld start 啟動mysql服務報錯:/etc/init.d/mysqld: line 263: @HOSTNAME@: command not found ; /etc/init.d/mysqld: line 276: cd: @prefix@: No such file or directory
問題: #編譯安裝完成後複製啟動指令碼“cp -a mysql.server.sh /etc/init.d/mysqld”後,啟動服務報錯
debian_linux系統_訪問真實環境rancher_證書問題相關_https相關_使用kubectl命令列檢視資源時報錯:Unable to connect to the server: x509: certificate signed by unknown authority
前言:近日在windows10上使用debian_linux虛擬系統使用kubectl命令列工具,訪問真實環境rancher時,無法訪問資源,丟擲異常:Unable to connect to the server: x509: certificate signed by unknown authority。
maven deploy時報錯的解決方法
今天在釋出maven工程的時候,很奇怪,因為在本地package,install等等都沒問題,但是打包的時候就是報錯,日誌如下:
grafana+open-falcon資料展示時報錯:Cannot read property 'length' of null
報錯現象和具體錯誤資訊: 具體錯誤資訊: Message: Cannot read property \'length\' of null