1 Reply Latest reply on Oct 6, 2006 7:22 AM by Kristof Taveirne

    A service endpoint interface should extend Remote excepiton

    Marco Novice

      hi all,
      i am trying to generate a wsdl for my EJB3 webservivce...

      i keep on getting this exception

      log4j:WARN Please initialize the log4j system properly.
      Exception in thread "main" org.jboss.ws.WSException: A service endpoint interfac
      e should extend Remote
       at org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.buildMetaData
      (ToolsUnifiedMetaDataBuilder.java:82)
       at org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.<init>(ToolsU
      nifiedMetaDataBuilder.java:69)
       at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:298)
       at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(Too
      lsHelper.java:122)
       at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
       at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
       at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
      C:\Sw\J2MEJobApp\ejbJ2ME>
      


      what is weird is that my endpoint interface extedns Remote!!
      /**
       * Copyright @ 2006
       * By Marco Mistroni
       */
      package com.mm.j2me.ejb;
      
      
      import java.rmi.RemoteException;
      
      import javax.ejb.*;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;
      
      import org.jboss.ws.annotation.PortComponent;
      
      
      import com.mm.j2me.core.Agency;
      import com.mm.j2me.core.WSFacade;
      
      @WebService (name="WSFacade",
       targetNamespace="http://org.jboss.ws/samples/jsr181ejb",
       serviceName="WSFacade",
       endpointInterface="com.mm.j2me.ejb.WSRemoteSEI")
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      
      public interface WSRemoteSEI extends Remote {
      
       public String testWebServiceMethod() throws RemoteException;
      
      }
      


      anyone can help?

      thanks and regards
      marco