[jboss-user] [JBossWS] - A service endpoint interface should extend Remote

erkinda do-not-reply at jboss.com
Tue Jan 30 04:24:49 EST 2007


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


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008187#4008187

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008187



More information about the jboss-user mailing list