Hi,

I am trying to deploy a stateless session EJB as a web service using the
create webservices popup menu.
my ejb code is this:

*Converter.java*
----------------------------------------------------------------------
import java.math.BigDecimal;
import javax.ejb.Remote;
import javax.jws.WebService;

@Remote
public interface Converter {
    public BigDecimal dollarToRupees(BigDecimal dollars);

    public BigDecimal rupeesToEuro(BigDecimal rupees);
}
--------------------------------------------------------------------------------------------------------
*
ConverterBean.java*
--------------------------------------------------------------------------------------------------------
import java.math.BigDecimal;
import javax.ejb.*;
import javax.jws.WebService;

@Stateless
public class ConverterBean implements Converter {
    private BigDecimal rupeeRate = new BigDecimal("40.58");
    private BigDecimal euroRate = new BigDecimal("0.018368");

    public BigDecimal dollarToRupees(BigDecimal dollars) {
        BigDecimal result = dollars.multiply(rupeeRate);
        return result.setScale(2, BigDecimal.ROUND_UP);
    }

    public BigDecimal rupeesToEuro(BigDecimal rupees) {
        BigDecimal result = rupees.multiply(euroRate);
        return result.setScale(2, BigDecimal.ROUND_UP);
    }
}
------------------------------------------------------------------------------------------------------

But when i right click the ConverterBean.java and select create web service,
the wizard works fine to the point where we select which functions to expose
as web methods. Then its giving me an error like this:

IWAB0398E Error in generating WSDL from Java:
java.lang.ClassNotFoundException: abc.ConverterBean

I think it created another web project named WebServiceProject and trying to
search the class files in that project.

Can anyone help me in this regard?

Thanks in Advance.,

-- 
Sainath Chowdary
B.Tech III yr, Spring Semester
Electronics & Communication Engg
Indian Institute of Technology Roorkee
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to