2 Replies Latest reply on Feb 14, 2007 4:35 PM by Thomas Diesler

    A service endpoint interface should extend Remote

    dmitry erkin Newbie

      hi

      I try to publish ejb as webservice

      ide: JBossIDE-200701290313-nightly-ALL.zip
      project: ejb3
      ejb3 code (generated by wizard!):

      package main;

      import javax.ejb.Stateless;
      import main.LoanProcessor;

      public @Stateless class LoanProcessorBean implements LoanProcessor {

      public String processApplication(String socialSecurityNumber, String applicantName, String applicantAddress, String applicantEmailAddress, int applicantAge, String applicantGender, float annualSalary, float amountRequested)
      {
      ...
      }

      }

      interface:
      package main;

      import javax.ejb.Remote;

      @Remote
      public interface LoanProcessor {

      public String processApplication(String socialSecurityNumber, String applicantName, String applicantAddress, String applicantEmailAddress, int applicantAge, String applicantGender, float annualSalary, float amountRequested);

      }

      result:
      Running JBossWS wstools for [LoanProcessor]
      directory: C:\jboss\projects\ide\loanProcessing\LoanProcessor
      command: cmd.exe /C C:\jboss\as-4.0.4.GA\bin\wstools.bat -cp bin -config c:\temp\wstools-config47877.xml -dest C:\jboss\projects\ide\loanProcessing\LoanProcessor\src
      ========================================================================="
      .
      WSTools Environment
      .
      JBOSS_HOME: C:\jboss\as-4.0.4.GA\bin\\..
      .
      JAVA: c:\jdk1.6.0_01\bin\java
      .
      JAVA_OPTS:
      .
      ========================================================================="
      .
      Exception in thread "main" org.jboss.ws.WSException: A service endpoint interface should extend Remote

      help me solve this problem, please

      thanks