6 Replies Latest reply on Nov 15, 2006 11:35 AM by ruthbd

    JBossTS + WS-TX on JBoss 4.0.3SP1

      I am trying to get a simple test with JBossTS and WS-TX running in my local JBoss environment. I am certain I have not understood all the relevant documentation, but I am not getting any further.

      I have a simple "echo" web service using the jbossws4ee stack (4.0.3SP1 default) - my webservices.xml looks like this:

      <webservices
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
       version="1.1">
      
       <webservice-description>
       <webservice-description-name>HelloWorldServiceJSE</webservice-description-name>
       <wsdl-file>WEB-INF/wsdl/HelloWorld.wsdl</wsdl-file>
       <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
       <port-component>
       <port-component-name>PortComponent</port-component-name>
       <wsdl-port>HelloWorldInterfacePort</wsdl-port>
       <service-endpoint-interface>org.jboss.samples.HelloWorldInterface</service-endpoint-interface>
       <service-impl-bean>
       <servlet-link>HelloWorldService</servlet-link>
       </service-impl-bean>
       <handler>
       <handler-name>WSTContextProcessor</handler-name>
       <handler-class>com.arjuna.mw.wst.service.JaxRPCHeaderContextProcessor</handler-class>
       </handler>
       </port-component>
       </webservice-description>
      </webservices>


      This seems to deploy fine, but when I invoke the service, I get a ClassCastException thrown from org.jboss.webservice.handler.HandlerChainBaseImpl#addHandlersToChain (line 88). Taking the node out of webservices.xml deploys & invokes fine.

      Here's the "root" exception (the full trace is huge):
      Caused by: java.lang.ClassCastException: com.arjuna.mw.wst.service.JaxRPCHeaderContextProcessor
      at org.jboss.webservice.handler.HandlerChainBaseImpl.addHandlersToChain(HandlerChainBaseImpl.java:88)


      Any ideas? I wish I could jump to JBoss 4.0.5GA, but my hands are tied at the moment.

      Cheers,
      Brice