Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Fw: [wtp-dev] Fwd: EJB WebServices

Hi Sainath,

Creating EJB Web services is currently not supported in WTP.  We only support the creation of Web service in a Web project for Axis1 and Axis2.  We had a long standing RFE ( opened to request for this support but it had been closed with "No Plan to Fix" given the following rationale:

There's no plan to implement this enhancement in Axis1 given the current resource on the
Web services team.  Please note that we now have support for Axis2 (the next
generation Web services runtime).  Even though the Axis2 tool in WTP currently does not
support EJB Web service either, future enhancement to support the creation of
EJB Web service would likely be for the Axis2 runtime rather than the Axis1

You are welcome to open an RFE for the Axis2 Web services tools in WTP to support the creation of EJB Web service.  Here's the URL for opening a bugzilla:

You should select the Web tools, component.

BTW, the wtp-dev distribution list is for the discussion of people developing WTP.  Questions for the usage of WTP tools can be appended to the WTP newsgroup at:


Kathy Chan
Rational Java Web Services,
IBM Toronto Lab

(905) 413-3022, tieline: 313-3022

----- Forwarded by Kathy Chan/Toronto/IBM on 06/18/2008 01:15 PM -----
"Sainath Chowdary" <sainathdreams@xxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx

06/18/2008 10:01 AM

Please respond to
"General discussion of project-wide or architectural issues."        <wtp-dev@xxxxxxxxxxx>

[wtp-dev] Fwd: EJB WebServices


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

import java.math.BigDecimal;
import javax.ejb.Remote;
import javax.jws.WebService;

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

   public BigDecimal rupeesToEuro(BigDecimal rupees);

import java.math.BigDecimal;
import javax.ejb.*;
import javax.jws.WebService;

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 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

Back to the top