myeclipse下Maven配置SSM框架出現的問題總結
1.嚴重: Resource read error: Could not load net/sf/jsqlparser/expression/operators/relational/ItemsListVisitor.class.
java.util.zip.ZipException: invalid LOC header (bad signature)
<span style="font-size:18px;">Resource read error: Could not load net/sf/jsqlparser/expression/operators/relational/ItemsListVisitor.class. java.util.zip.ZipException: invalid LOC header (bad signature) </span>
解決方案:找到Maven倉庫如本機的是C:/Users/Administrator/.m2/repository/然後在裡面找到對應失敗的jar包的目錄,將整個目錄刪除,
然後回到MyEclipse或者Eclipse中選中Maven4MyEclipse,然後Update Project,選中 Force Update Of .... 然後確定。
2.嚴重: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
<span style="font-size:18px;">嚴重: Error configuring application listener of class com.sun.faces.config.ConfigureListener java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener 016-8-30 22:25:19 org.apache.catalina.core.StandardContext listenerStart 嚴重: Skipped installing application listeners due to previous error(s) 2016-8-30 22:25:19 org.apache.catalina.core.StandardContext startInternal 嚴重: One or more listeners failed to start. Full details will be found in the appropriate container log file 2016-8-30 22:25:19 org.apache.catalina.core.StandardContext startInternal 嚴重: Context [/CookingShow] startup failed due to previous errors 2016-8-30 22:25:19 org.apache.catalina.startup.HostConfig deployDirectory 資訊: Deployment of web application directory D:\tomcat\apache-tomcat-7.0.65\webapps\CookingShow has finished in 3,106 ms</span>
網上搜也是搜不到直接的解決辦法,後來從別人的提示中發現問題可能有兩種原因,
一個是缺少jsf.jar包,二是存在jar包衝突,第一種解決方法是在pom檔案中配置
<span style="font-size:18px;"><dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.2-b10</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.2-b10</version>
</dependency> </span>
第二種了,關於衝突jar包後來發現自己在lib下放入了j2ee的jar包,這個裡面本身已經包含了container實現類了和tomcat7的提供jar包存在衝突,這個去掉就ok,然後就不回報上述錯誤了。
3.java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)
最終解決方法:更換spring版本
bug詳情:
這幾天一直在被這個bug虐。所有的配置檔案我和類檔案都檢查了N遍了都沒問題。可就是開啟包掃描後就報bug,關掉報掃描就沒bug了。
部分錯誤:
<span style="font-size:18px;">17:02:37,149 ERROR TestContextManager:315 -
Caught exception while allowing TestExecutionListener [or[email protected]7692d9cc]
to prepare test instance [[email protected]]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157)
</span>
經過排查最終將3.2.0.RELEASE更換為3.2.4.RELEASE問題解決。
4.Missing artifact junit:junit:jar:4.0.1
這樣的問題是明明你pom.xml檔案中有
<span style="font-size:18px;"><dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.0.1</version>
</dependency>
</span>
=-----因為也許沒有這個版本的包,還有要是用Junit4,要保證你的Junit包是4以上,,我的是4.8.1
5.Java檔案出現:The attribute value is undefined for the annotation type RunWith
<span style="font-size:18px;">The attribute value is undefined for the annotation type RunWith</span>
-----》是因為你import的檔案不對,改成import org.junit.runner.RunWith;就可以了,注意引數要配置正確
6.嚴重: Resource read error: Could not load net/sf/jsqlparser/expression/operators/relational/ItemsListVisitor.class.
java.util.zip.ZipException: invalid LOC header (bad signature
<span style="font-size:18px;">2016-8-31 9:59:16 org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
嚴重: Resource read error: Could not load net/sf/jsqlparser/expression/operators/relational/ItemsListVisitor.class.
java.util.zip.ZipException: invalid LOC header (bad signature</span>
解決辦法--》
<span style="font-size:18px;"><!-- https://mvnrepository.com/artifact/net.sf.jsqlparser/jsqlparser -->
<dependency>
<groupId>net.sf.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>0.8.0</version>
</dependency>
</span>
7.Project configuration is not up-to-date with pom.xml. Run project configuration updateCookingShow Maven Webappline 1Maven Configuration Problem
專案檔案沒有什麼錯,但是圖示一直有一個!號,也執行不了
日誌中的錯誤資訊是:
<span style="font-size:18px;"> Description Resource Path Location Type
Project configuration is not up-to-date with pom.xml. Run project configuration update CookingShow Maven Webapp line 1 Maven Configuration Problem</span>
----》解決辦法專案--》右鍵-》maven--》update configuration
啊啊啊,暫時就這麼多了,終於搭好了....................
相關推薦
myeclipse下Maven配置SSM框架出現的問題總結
1.嚴重: Resource read error: Could not load net/sf/jsqlparser/expression/operators/relational/ItemsListVisitor.class. java.util.zip.ZipExc
maven搭建ssm框架問題總結
error odi more 3.6 env 但是 exception finish ant 1. Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (de
maven載入SSM框架jar資源pom.xml配置
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://m
MyEclipse下Maven安裝及環境變數配置
1、下載Maven(版本自行選擇,我這裡下載的是apache-maven-3.3.3.rar版本),下載地址:http://maven.apache.org/download.html 2、將下載的檔案解壓到D:\soft\apache-maven-3.3.3,解壓後開啟檔案目錄如下所
maven整合ssm框架pom.xml配置檔案
首先複習下maven如何使用:maven詳解 ssm框架整合:整合案例 這裡直接貼出整合後的pom.xml配置檔案,僅供記錄和日後參考! <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http
mac下IDEA配置Spring框架+mybatis+maven配置管理的web專案過程詳解
下面詳細講一下mac下怎麼利用IDEA來搭建一個利用spring框架+maven配置管理的web專案 1.再IDEA裡新建一個maven project,填入建立專案所必要的資訊 2.我們要利用spring框架或mybatis就得把與其相關的內容引入進專案啊,利用mav
Maven 管理SSM框架的pom.xml配置檔案
三個框架所使用的版本: mybatis —- 3.2.5 spring —- 4.3.3.RELEASE spring mvc —- 4.3.3.RELEASE 其它: junit —- 4.8.1 MySQL —- 5.1.38 log4j —- 1.2.17 c3p0
Java maven搭建SSM框架主要配置檔案
web.xml配置 <?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http:
SSM框架搭建總結(2)
jdk bsp jdk安裝 搭建 參考 module 詳情 .cn ace 一、開發環境搭建 1、本地jdk安裝及配置環境變量 2、本地tomcat安裝 3、本地maven安裝 3.1 maven安裝 3.2 maven數據倉庫配置settings.xml 4、本地安裝
spring,springmvc,mybatis整合ssm框架出現ORA-02289:序列不存在問題
sel 請求 開始 color 九九 pri soft 框架 服務 今天整合了一個SSM項目,完了後部署到Tomcat服務器,正常啟動。但是當我發送請求時,報錯,,如下 報錯說序列不存在,可是我明明創建了序列呀,然後我測試了一下,測試語句:select tb_user_s
ssm框架出現的常見問題
http sdn tail tex service 允許 顯示 exceptio net 1:自己寫的代碼測試的時候顯示用戶過期,需要釋放攔截器,並配置權限允許 2:Servlet.service() for servlet [springmvc] in context w
SSM框架出現:class path resource [SpringMvc.xml] cannot be opened because it does not exist
def 文件 ati XML tco character java style cte 錯誤:class path resource [config/spring/springmvc.xml] cannot be opened because it does not exi
Windows下安裝配置Yaf框架的方法及創建典型合理的Demo目錄結構
get 擴展安裝 dem tool 架構 類庫 編譯器 image lib Yaf是一個C語言編寫的PHP框架,由鳥哥Laruence開發的高性能框架; Yaf官方文檔:http://www.laruence.com/manual/index.html windows下
Maven搭建SSM框架(Spring+SpringMVC+MyBatis)
核心 suffix clas you info org 好項目 package span 一、概述: Spring是一個輕量級開發框架,好比一個大工廠(容器),可以將所有對象的創建和依賴關系交給spring管理。 SpringMVC是一個基於mvc的web框架。sp
Spring+Mybatis+SpringMVC+Maven+MySql(SSM框架)搭建例項
這篇文章我們來實現使用maven構建工具來搭建Spring+Mybatis+SpringMVC+MySql的框架搭建例項。工程下載 使用maven當然得配置有關環境了,不會配置的請看我前幾篇文章,都有配置maven環境的列子! MySQL建立表sql語句: /* Navicat M
Maven搭建SSM框架(xml版)
接下來講解基於Maven工具、以XML為配置檔案的SSM框架的環境搭建。 搭建環境: 1.maven3.5.3; 2.IDEA2018.2.3; 1.首先建立一個Maven專案,選擇webapp,如下圖,然後填寫專案GroupID和專案名稱即建立完畢; &
SSM框架專案總結
專案流程圖 專案總結 經過一個禮拜的SSM框架學習,我已經基本上會使用它來寫專案了,非常的方便與好用。 先對於傳統的Java Bean + JSP +Servlet模式而言,它有很多的的優點。使用框架 1.不需要建立那麼多的Servlet了,看起來很清爽。 2.不需要先資料庫J
1112_超詳細圖文教程_用SpringBoot+Maven搭建SSM框架
【超詳細圖文教程】用SpringBoot+Maven搭建SSM框架 2017年10月09日 11:31:51 零薄獄 閱讀數:10386 標籤: Spring SpringMVC intellij idea SpringBoot SSM 更多 個人分類: Spring 專案用Inte
Maven專案搭建(二):Maven搭建SSM框架
上一章給大家講解了如何使用Maven搭建web專案。 這次給大家介紹一下怎麼使用Maven搭建SSM框架專案。 首先我們來看一下pom.xml的屬性介紹:
Maven項目搭建(二):Maven搭建SSM框架
mod ring 交互 插件 license plugin res myba put 上一章給大家講解了如何使用Maven搭建web項目。 這次給大家介紹一下怎麽使用Maven搭建SSM框架項目。 首先我們來看一下pom.xml的屬性介紹: