it worked very well, but now I still have the problem with the Date types. I had defined a Date on a outgoing <<FrontEndEvent>> froma <<FrontEndView>>, and I had also defined a method in the controller which receives a Date, but them I the error below. Also I had tried to read the docs about the Calendar and they are not anymore at the http://team.andromda.org/docs/andromda-bpm4struts-cartridge/modeling.html
any ideas?
Thank you!
[javac] Compiling 79 source files to E:\androMDA\carental\web\target\classes
E:\androMDA\carental\web\src\java\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\CustomerReservesCarControllerImpl.java:20: cannot resolve symbol
symbol : method setReserveReservationDateAsDate (java.util.Date)
location: interface org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.SearchForReservationsOfCustomerForm
form.setReserveReservationDateAsDate(new java.util.Date());
^
E:\androMDA\carental\web\src\java\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\CustomerReservesCarControllerImpl.java:33: cannot resolve symbol
symbol : method setReserveReservationDateAsDate (java.util.Date)
location: interface org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.ReserveForm
form.setReserveReservationDateAsDate(new java.util.Date());
^
E:\androMDA\carental\web\target\src\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\CustomerReservesCarActionForm.java:14: org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.CustomerReservesCarActionForm is not abstract and does not override abstract method setReserveReservationDate(java.util.Date) in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.SearchForReservationsOfCustomerForm
public class CustomerReservesCarActionForm extends ValidatorForm implements Serializable
^
E:\androMDA\carental\web\target\src\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\CustomerReservesCarActionForm.java:134: getReserveReservationDate() in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.CustomerReservesCarActionForm cannot implement getReserveReservationDate() in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.SearchForReservationsOfCustomerForm; attempting to use incompatible
return type
found : java.lang.String
required: java.util.Date
public java.lang.String getReserveReservationDate()
^
E:\androMDA\carental\web\target\src\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\ReserveACarReserveActionForm.java:14: org.androm
da.samples.bpm4strutscarrental.contracts.web.reserveCar.ReserveACarReserveActionForm is not abstract and does not override abstract method setReserveR
eservationDate(java.util.Date) in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.ReserveForm
public class ReserveACarReserveActionForm extends ValidatorForm implements Serializable
^
E:\androMDA\carental\web\target\src\org\andromda\samples\bpm4strutscarrental\contracts\web\reserveCar\ReserveACarReserveActionForm.java:125: getReserv
eReservationDate() in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.ReserveACarReserveActionForm cannot implement getReserveReserv
ationDate() in org.andromda.samples.bpm4strutscarrental.contracts.web.reserveCar.ReserveForm; attempting to use incompatible return type
found : java.lang.String
required: java.util.Date
public java.lang.String getReserveReservationDate()
^
Chad Brandon wrote:
Hey Carlos do you have each <<FrontEndUseCase>> in its own package? Something similar happened to me yesterday until I changed that.
Chad
----- Original Message ----- From: "Carlos Cuenca" <[EMAIL PROTECTED]>
To: "andromda-user" <[EMAIL PROTECTED]>
Sent: Monday, September 06, 2004 12:38 PM
Subject: [Andromda-user] Bpm4Struts compilation
Hi again!
I am trying to compile my own carrental sample (the same that I sent to Wouter and Chad), which was compiling some days ago, and now I get the following error:
java:compile:
[echo] Compiling to E:\androMDA\carental\web/target/classes
[javac] Compiling 77 source files to E:\androMDA\carental\web\target\classes
E:\androMDA\carental\web\src\java\org\andromda\samples\bpm4strutscarrental\contracts\web\CustomerReservesCarControllerImpl.java:16: cannot resolve symbol
symbol : method setReservationsList (java.util.Collection)
location: interface org.andromda.samples.bpm4strutscarrental.contracts.web.SearchForReservationsOfCustomerForm
form.setReservationsList(reservationsListDummyList);
^
E:\androMDA\carental\web\src\java\org\andromda\samples\bpm4strutscarrental\contracts\web\CustomerReservesCarControllerImpl.java:17: cannot resolve symbol
symbol : method setReserveReservationDateAsDate (java.util.Date)
location: interface org.andromda.samples.bpm4strutscarrental.contracts.web.SearchForReservationsOfCustomerForm
form.setReserveReservationDateAsDate(new java.util.Date());
The method in which these lines are includes have the following header:
public final java.util.Collection searchForReservationsOfCustomer(ActionMapping mapping, SearchForReservationsOfCustomerForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
and in the SearchForReservationsOfCustomerForm interface, these operations are not defined.
any ideas?
Thank you
Carlos
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
