简体   繁体   English

在JBoss 5.1中关闭JBoss WS模块

[英]Turn off JBoss WS module in JBoss 5.1

I'am trying to deploy my CXF web application to JBoss 5.1 GA. 我正在尝试将CXF Web应用程序部署到JBoss 5.1 GA。 All features work fine in Tomcat, but the internal JBoss-WS jars are causing some unexpected behavior (the same as written here ), therefore I want to turn the Jboss webservice subsystem down as it is written here. 所有功能都可以在Tomcat上正常运行,但是内部JBoss-WS jar会引起某些意外行为(与此处所写内容相同),因此我想按此处所写将Jboss webservice子系统关闭 .

The problem is that placing jboss-deployment-structure.xml in the WEB-INF does not have any effect even after restarting the server, so I assume it is not supported in version 5.1. 问题是即使重新启动服务器后,将jboss-deployment-structure.xml放在WEB-INF中也没有任何效果,因此我认为5.1版不支持它。 Removing jbossws.deployer from /deployers and jbossws.sar from /deploy (as written here ) is not a valid option because there are many applications which may be affected by it. 从/部署者和jbossws.sar从/部署(如书面卸下jbossws.deployer 这里 )是不是因为有很多可能受它影响应用程序的有效选项。

So my question is how to disable the internal JBoss WS module? 所以我的问题是如何禁用内部JBoss WS模块?

Many thanks, 非常感谢,

Peter 彼得

See section "6.2.1 Configuration" of JAX-WS specification. 请参阅JAX-WS规范的“ 6.2.1配置”部分。 Point 1 says: 第一点说:

  1. If a resource with the name of META-INF/services/javax.xml.ws.spi.Provider exists, then its first line, if present, is used as the UTF-8 encoded name of the implementation class. 如果存在名称为META-INF/services/javax.xml.ws.spi.Provider ,则将其第一行(如果存在)用作实现类的UTF-8编码名称。

There's JBOSS_HOME/common/lib/jbossws-native-jaxws.jar JAR which contains META-INF/services/javax.xml.ws.spi.Provider file which contains: 有一个JBOSS_HOME/common/lib/jbossws-native-jaxws.jar JAR,其中包含META-INF/services/javax.xml.ws.spi.Provider文件,其中包含:

org.jboss.ws.core.jaxws.spi.ProviderImpl

So according to point 2 or 3 of aforementioned specification, you can: 因此,根据上述规范的第2点或第3点,您可以:

  • use ${java.home}/lib/jaxws.properties 使用${java.home}/lib/jaxws.properties
  • use system property with the name javax.xml.ws.spi.Provider 使用名称为javax.xml.ws.spi.Provider系统属性

I've done this with JBoss 6 when tried to use newest CXF provider. 当尝试使用最新的CXF提供程序时,我已经使用JBoss 6做到了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM