开发者

Deploying Web Service in JBoss using JAX-WS RI

I am trying to deploy a Web Service in JBoss 5 AS, without using the JBossWS which is the Red Hat's implementation of jsr-224. Thus, I am deploying my services in a .war file that already contains the JAX-WS Reference Implementation.

When I try to deploy the service without shipping the JAX-WS RI in my .war, it just deploys without issues just by mapping my services in the web.xml file. However, if I ship the JAX-WS RI .jar in my .war, the server does not deploy the service, an开发者_如何学Cd if I try to invoke it, I get a:

Class is not a Servlet

error. How can I deploy a service in JBoss without relying on the JBoss' implementation of jsr-224 but using my own implementation?


JBossWS supports pluggable WS implementations. There are currenly avaliable Native, CXF or Metro. Implementation can be changed by properly installing chosen flavor of JBossWS. Just adding jars won't help.

JAX-WS RI and Metro are basicly the same thing. So you have to install jbossws-metro.

Istallation guide (slightly outdated but should give the hint):

http://community.jboss.org/wiki/JBossWS-Installation

Version compatibility matrix:

http://community.jboss.org/wiki/JBossWS-SupportedTargetContainers

See also Web service works on Tomcat 6 but not on JBoss AS 6.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜