2012-03-15 51 views
0

我有兩個EAR,在部署4.2.3的Web服務(Webservice A和B)上使用jboss上的WebService。JBoss - 錯誤的cxf.xml

webservice A有一個cxf.xml。 當我部署webservice B時,使用來自A的cxf.xml並且Webservice B不工作。

[org.jboss.wsf.stack.cxf.DescriptorDeploymentAspect] CXF configuration found: jar:file://.....server/default/tmp/deploy/ApplicationA.ear.... 

當我只部署應用程序B時,jboss自動生成一個cxf.xml並且everthing正在工作。

我怎樣才能得到Webservice B總是自動生成一個cxf.xml?

回答

0

我在一段時間裏沒有使用過JBoss,但可能是因爲類加載程序沒有正確隔離而遇到問題。

基於this article,我建議你嘗試通過在jboss-app.xml加入

<jboss-app> 
    <loader-repository> 
    com.example:archive=unique-archive-name 
    </loader-repository> 
</jboss-app> 

隔離的類加載器。

+0

thx beny23,但已隔離的類加載。 – mp5 2012-03-15 14:13:57