c36145
04-28-2008, 12:19 PM
I am trying to implement a RPC within my application with GWT-EX and I am getting this error when Compiling:
ERROR] Errors in 'D:\Documents and Settings\fscpgmmh\workspace\TestAppGWTExt\src\com\accenture\test\client\TestMainApplication.java'
[ERROR] Line 80: No source code is available for type com.accenture.data.client.NewOrderAsync; did you forget to inherit a required module?
[ERROR] Line 83: No source code is available for type com.accenture.data.client.NewOrderRemote; did you forget to inherit a required module?
[ERROR] Line 93: No source code is available for type com.accenture.data.client.Order; did you forget to inherit a required module?
I had three classes:
publicinterface NewOrderRemote extends RemoteService {
public String getNbr(String customerNbr);
}
publicinterface NewOrderAsync extends AsyncCallback<Order> {
publicvoid getOrderNbr(AsyncCallback<Order> asyncCallback);
}
publicclass Order implements IsSerializable {
String nbr;
Date orderDate;
public Order(String nbr,String orderDate)
{
SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy");
this.nbr = nbr;
try {
this.orderDate=dfmt.parse(orderDate);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public String getNbr() {
returnnbr;
}
publicvoid setNbr(String nbr) {
this.nbr = nbr;
}
public Date getOrderDate() {
returnorderDate;
}
publicvoid setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
}
ERROR] Errors in 'D:\Documents and Settings\fscpgmmh\workspace\TestAppGWTExt\src\com\accenture\test\client\TestMainApplication.java'
[ERROR] Line 80: No source code is available for type com.accenture.data.client.NewOrderAsync; did you forget to inherit a required module?
[ERROR] Line 83: No source code is available for type com.accenture.data.client.NewOrderRemote; did you forget to inherit a required module?
[ERROR] Line 93: No source code is available for type com.accenture.data.client.Order; did you forget to inherit a required module?
I had three classes:
publicinterface NewOrderRemote extends RemoteService {
public String getNbr(String customerNbr);
}
publicinterface NewOrderAsync extends AsyncCallback<Order> {
publicvoid getOrderNbr(AsyncCallback<Order> asyncCallback);
}
publicclass Order implements IsSerializable {
String nbr;
Date orderDate;
public Order(String nbr,String orderDate)
{
SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy");
this.nbr = nbr;
try {
this.orderDate=dfmt.parse(orderDate);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public String getNbr() {
returnnbr;
}
publicvoid setNbr(String nbr) {
this.nbr = nbr;
}
public Date getOrderDate() {
returnorderDate;
}
publicvoid setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
}