1 Reply Latest reply on Dec 5, 2006 5:01 PM by thomas.diesler

    JBossWS 2.0 CR2

      Should we post potential issues about 2.0.0.CR2 here ?

      I was testing a very simple WS (Stateful EJB SEI), and
      it does not show up under JBoss 5.0.0.Beta1.

      Here is the important stuff:

      application.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>Test50</display-name>
       <description>Test50</description>
       <module>
       <ejb>test50.jar</ejb>
       </module>
      </application>
      


      jboss-app.xml
      <!DOCTYPE jboss-app
       PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
       "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
      <jboss-app>
       <loader-repository>
       test50:app=ejb3
       </loader-repository>
      </jboss-app>




      Service Endpoint (Interface class matches)
      /**
       *
       */
      package com.company.test50;
      
      import javax.ejb.Stateful;
      import javax.ejb.Stateless;
      import javax.jws.WebService;
      import javax.jws.WebMethod;
      import javax.jws.soap.SOAPBinding;
      import java.util.*;
      
      /**
       * @author Owner
       *
       */
      @WebService(name="TestWSService", targetNamespace="http://com.company.test50")
      @SOAPBinding(style=SOAPBinding.Style.DOCUMENT)
      @Stateful
      public class TestWSServerBean implements TestWSServer
      {
       private Collection<TestEntity> entities;
      
       @WebMethod
       public Collection<TestEntity> getEntities()
       {
       return entities;
       }
      
       @WebMethod
       public void addEntity(TestEntity add)
       {
       entities.add(add);
       }
      
       @WebMethod
       public TestEntity getEntity(int id)
       {
       return null;
       }
      
       @WebMethod
       public void updateEntity(TestEntity updated)
       {
      
       }
      
       @WebMethod
       public void deleteEntity(int id)
       {
      
       }
      }
      


      Any ideas ?


        • 1. Re: JBossWS 2.0 CR2
          thomas.diesler

          Yes, please post here.

          service endpoints need to be stateless, maybe thats the issue.
          If it is, you might want to contribute a simple patch that produces a meaningful error message