2013-07-12 50 views
2

我已經安裝了Apache Geronimo 3.0.1 with Tomcat 7 and Axis2應用程序服務器來部署我的應用程序。我在Geronimo中完成了我的應用程序工作。我想知道哪些組件可以配置到Apache geronimo特別是Apache CXF,通過this link我來了解一下Geronimo的組件。在Geronimo中配置Apache CXF

現在我想在Geronimo中配置Apache CXF。鏈接Configure JAX-WS engine說明如何在Geronimo中配置Apache CXF。由於我安裝了Apache Geronimo 3.0.1 with Tomcat 7 and Axis2,因此根據given linkApache Axis2與Apache Geronimo捆綁在一起。所以,我不能在Geronimo中的Configure JAX-WS engine引導配置cxf按程序像

1.Remove the condition attribute and add the load="false" attribute to org.apache.geronimo.configs/axis2-deployer/2.0/car module. 
2.Remove the condition attribute and add the load="true" attribute to org.apache.geronimo.configs/cxf-deployer/2.0/car module. 

我沒有設置環境變量以及

GERONIMO_OPTS="-Dorg.apache.geronimo.jaxws.provider=axis2" 

,但沒有用。

任何人都可以告訴我如何在Geronimo中配置Apache CXF以及如何在我的應用程序中使用此服務?

注:我想從Apache cxf使用RESTfull HttpLocal Transport服務,這就是爲什麼我想用Apache cxf代替Apache axis

回答

0
  • 轉到\ VAR \ config目錄。打開config.xml文件。
  • 檢查「org.apache.geronimo.configs/cxf/3.0.1/car」,「org.apache.geronimo.configs/cxf-deployer/3.0.1/car」
  • Set load =「true」如果存在。否則,請下載並安裝它。
  • Set GERONIMO_OPTS =「 - Dorg.apache.geronimo.jaxws.provider = cxf」