在Geronimo中配置Apache CXF
我已经安装了带有Tomcat7和Axis2的ApacheGeronimo3.0.1应用服务器来部署我的应用程序。我让我的应用程序在Geronimo中工作。通过了解geronimo组件,我想知道可以为ApacheGeronimo配置哪些组件,特别是在Geronimo中配置Apache CXF,apache,geronimo,Apache,Geronimo,我已经安装了带有Tomcat7和Axis2的ApacheGeronimo3.0.1应用服务器来部署我的应用程序。我让我的应用程序在Geronimo中工作。通过了解geronimo组件,我想知道可以为ApacheGeronimo配置哪些组件,特别是ApacheCxf 现在我想在Geronimo中配置ApacheCxf。该链接说明了如何在Geronimo中配置ApacheCxf。由于我在Tomcat 7和Axis2上安装了ApacheGeronimo 3.0.1,ApacheAxis2与Apache
ApacheCxf
现在我想在Geronimo中配置ApacheCxf
。该链接说明了如何在Geronimo中配置ApacheCxf
。由于我在Tomcat 7和Axis2上安装了ApacheGeronimo 3.0.1,ApacheAxis2与ApacheGeronimo捆绑在一起。因此,我不能像配置JAX-WS引擎指南中那样在geronimo中配置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中配置ApacheCXF以及如何在我的应用程序中使用此服务吗
注意:我想使用RESTfull Http
和来自apachecxf
的服务,这就是为什么我想使用apachecxf
而不是apacheaxis
- 转到\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”。否则,请下载并安装它
- Set GERONIMO_OPTS=“-Dorg.apache.GERONIMO.jaxws.provider=cxf”