1. 程式人生 > >spring專案中cxf部署報錯

spring專案中cxf部署報錯

原專案使用spring框架,需要在此基礎上部署cxf框架,遇到一個報錯:

org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'cxf': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

這個錯連續折磨了好久,最後不得已,改變spring的版本,結果發現錯誤好了,從這裡可以看出,是因為spring和cxf版本衝突導致一直報這個錯誤,改變spring或者cxf版本,使之相匹配

相關推薦

spring專案cxf部署

原專案使用spring框架,需要在此基礎上部署cxf框架,遇到一個報錯: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'cx

添加spring-boot-devtools熱部署

pre fig ica option tool pan 解決方案 解決 true 使用的eclipse部署的spring boot,百度了下,大部分的問題都是說IDE工具使用熱部署無法成功的解決方案,看了很懵逼 <!-- 熱部署模塊 --> <depend

myeclipse專案名有紅叉,但專案檔案沒有

從別的地方用U盤拷貝專案到自己主機。匯入到myeclipse後項目名中出現了紅叉,但專案中的程式碼沒有顯示其他的錯誤。後來在myeclipse的Problems框報出的錯誤:java compiler level does not match the version of the install

專案程式碼沒有,但是專案前面就是有一個紅叉,真心煩

就比如類似這種,專案中的程式碼沒有報錯,但是專案前面就是有把X,因為我有強迫症,,,看著就覺得不舒服,覺得一定要把這個給去掉才能好好寫程式碼,然後就發現了一個神奇的視窗,,,也不說神奇吧,只是之前的自己一直沒有注意到這個視窗的存在,沒錯,就是這個視窗,把這邊把每個err都顯示

maven專案main方法

在做一個專案的時候,想要用main方法測試一下 可是總是會報錯 如下 網上也找不到正確的解決方法 最後請教了總監大人 在pom.xml中加入瞭如下程式碼 成功解決 <testOutputDirectory>target/test-classes<

maven專案關於war解決辦法

今天寫了一個maven專案,到最後<packaging>war</packaging>報錯了,嘗試很多辦法都解決不了,最後得以在一個博主帖子裡的方法完美解決。下面我將該方法分享給大家! 首先看自己的專案中有沒有web.xml這個檔案,src→main

MAVEN新建專案index.jsp

初學maven,建專案時問題不斷,其中之一是index.jsp檔案報錯。 腦海裡第一個想法就是把這個jsp刪了,可是一想起自己作為程式設計界的大佬級人物,就放棄了這個想法。 問了問和我一起作為實習生進去公司的小王,小王說有一個牛逼的人叫百度,我說哦。

MyEclipse 再次部署專案的時候後

MyEclipse 中再次部署專案的時候後報錯 Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the

項目訪問controller:HTTP Status 500 - Servlet.init() for servlet spring threw exception

apr ssl .get beans index p s 配置 cnblogs lis 直接訪問controller路徑http://localhost:8080/index報錯: HTTP Status 500 - Servlet.init() for servlet

微信開發者工具初始化專案時,進去:小程式重啟耗時過久,請確認業務邏輯是否有複雜運算,或者死迴圈

              如圖上,為錯誤原因。   之前用開發者工具用的好好地,前些日子又版本更新,升級了一下,然後開啟專案就出現上面的問題。當時以為電腦出啥問題了,也沒當回事。今天再次開啟開發者工具,發現還是出現上面的問題。一臉懵,新建專案,啥都沒做竟然出問題。網上一查同樣的問題一大堆。

【maven】排除mavenjar包依賴的解決過程 例子:spring cloud啟動zipkin,maven依賴jar包衝突 Class path contains multiple SLF4J bindings.

一直對於maven中解決jar包依賴問題的解決方法糾結不清: 下面這個例子可以說明一個很簡單的解決方法:     專案啟動報錯: Connected to the target VM, address: '127.0.0.1:59412', transport: 'sock

Maven小坑:IDEA開發工具對於maven專案進行mvn install的解決辦法之一(前提不是程式碼錯誤)

今天公司前輩給了我一個專案,要我熟悉熟悉,以後會在這裡面進行開發;在我使用Iidea自帶的控制檯進行mvn install命令的時候,發先mvn install失敗(這裡的報錯可能會有多種,就是因為在install的時候沒有找到資源,不一一舉例了); 經過一番程式碼以及包的檢查,發現沒有錯誤

關於CXF+Spring WebService做測試的問題

cxf的版本為: 3.1.10 Spring-web的版本為: 4.2.4 Maven專案啟動時報錯: 十二月 17, 2018 11:34:37 上午 org.apache.catalina.startup.ContextConfig processAnnotati

spring-springmvc-mybatis路徑的

BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext 路徑配置問題:maven路徑和傳統開發路徑的不同 一開始的路徑

spring-data-jpa @Query註解delete語句

專案中需要刪除掉表中的一些資料 @Query("delete from EngineerServices es where es.engineerId = ?1") int deleteByEgId(String engineerId); 但是提示了

JS 調試常見的的解決辦法

是否 asp success ted json字符串 clas 使用 crud 識別 報錯:Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymou

關於spring boot項目啟動問題

系列 cnblogs mage 函數 img boot 1.8 沒有 mod 這次用了spring boot,項目在啟動時報錯,由於我用的是jdk 1.7 ,該項目默認的是jdk 1.8,所以要把下面這一系列配置改好才行。廢話不多說,上圖: 一看發現,項

Netbackup media server部署

master ces conn nbu allow win2008 all 安裝 option 1、安裝ts3100磁帶庫驅動(我忘記安裝導致不能認到磁帶庫)2、安裝media server,連接master server3、用media server備份報錯 信息:sym

傳參時Url有中文

head 無效 解釋 content uri 就會 invalid ins character url中如果傳了中文,瀏覽器會報錯:The header content contains invalid characters。 原因:瀏覽器自動把這個url進行decodeU

解決Azure Stack App Service部署一例

azure stack 混合雲 私有雲 it生活 解決Azure Stack App Service部署報錯一例Azure Stack是微軟新一代的雲基礎架構,是Windows Server 2016、Azure Pack和Azure Service Fabric的組合,能夠將Azure的Ia