2

我已经安装了Apache Geronimo 3.0.1 with Tomcat 7 and Axis2应用程序服务器来部署我的应用程序。我使我的应用程序在 Geronimo 中工作。我特别想知道 Apache geronimo 可以配置哪些组件Apache CXF,通过这个链接我了解了 Geronimo 的组件。

现在我想Apache CXF在 Geronimo 中进行配置。链接配置 JAX-WS 引擎说明了如何Apache CXF在 Geronimo 中进行配置。自从我安装Apache Geronimo 3.0.1 with Tomcat 7 and Axis2后,Apache Axis2它就按照给定的链接与 Apache Geronimo 捆绑在一起。因此,我无法按照指南cxf中的过程在 geronimo 中进行配置,例如Configure JAX-WS engine

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 以及如何在我的应用程序中使用此服务?

注意:我想使用本地交通服务,这就是为什么我想使用RESTfull Http而不是Apache cxfApache cxfApache axis

4

1 回答 1

0
  • 转到 \var\config 目录。打开 config.xml 文件。
  • 检查“org.apache.geronimo.configs/cxf/3.0.1/car”、“org.apache.geronimo.configs/cxf-deployer/3.0.1/car”
  • 如果存在,则设置 load="true"。否则,下载并安装它。
  • 设置 GERONIMO_OPTS="-Dorg.apache.geronimo.jaxws.provider=cxf"
于 2014-04-02T12:31:17.773 回答