Hi, you probably missed a stereotype on one of the elements, make sure you have read the documentation and opened the animal quiz model, this is a simple example that contains most of the information you need
Are you using MagicDraw ? All your use-cases have stereotypes ? ClassCast exception means you forgot a stereotype and the cartridge loads a modelelement without the proper fa�ade. Hth -- Wouter Ps: don't send me emails directly, use the mailing list, you'll have a higher chance of getting feedback more quickly > -----Original Message----- > From: Gary Gupta [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 5:40 PM > To: [EMAIL PROTECTED] > Subject: Re: [Andromda-devel] Re: bpm4struts - User interface > > hi Wouter, > I got an issue while running my model through AndroMDA, probably i need a > fresh pair of eyes and you seem to be a good point of contact :-). > Heres the issue: > ERROR [org.andromda.core.cartridge.DefaultAndroMDACartridge] Error > performing DefaultAndroMDACartridge.processWithTemplate with template > 'templates/StrutsController.vsl', template context > '{securityEnabled=false, > class=org.andromda.cartridges.bpm4struts.metafacades.StrutsControllerLog ic > Im > [EMAIL PROTECTED], [EMAIL PROTECTED], > securityRealm=other}' and cartridge 'bpm4struts' > org.apache.velocity.exception.MethodInvocationException: Invocation of > method 'getUseCase' in class > org.andromda.cartridges.bpm4struts.metafacades.StrutsControllerLogicImpl > threw exception class java.lang.ClassCastException . > > any ideas? > Rgds. > Gary. > ----- Original Message ----- > From: "Wouter Zoons" <[EMAIL PROTECTED]> > To: "'Walter Mour�o'" <[EMAIL PROTECTED]> > Cc: "'Wouter Zoons'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Thursday, August 19, 2004 4:33 PM > Subject: RE: [Andromda-devel] Re: bpm4struts - User interface > > > And just to let /you/ know: I will be renaming the parameters: they will > have the action name prefixed to them > > So you'll need to take care of that, before I commit this improvement I > will properly test it first > > -- Wouter > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:andromda-devel- > > [EMAIL PROTECTED] On Behalf Of Walter Mour�o > > Sent: Thursday, August 19, 2004 5:11 PM > > To: [EMAIL PROTECTED] > > Cc: 'Wouter Zoons'; [EMAIL PROTECTED] > > Subject: [Andromda-devel] Re: bpm4struts - User interface > > > > Just to let you know: nowadays I have the "parameter lost of > information" > > problem... but it isn't a great problem. > > > > regards, > > > > Walter > > > > <[EMAIL PROTECTED]> grava: > > >Hi Walter, > > > > > >No it is not, but in the transformation from XMI to Struts there are > > >some complications that currently make it very difficult to have the > > >same names, here's what I wrote to Chad about it: > > > > > >---------------------------- > > >It 'worked' before because I put all parameter in a map with their > names > > >as the keys. If I then wanted to have all the parameters to be > rendered > > >in the form I just looped over the keySet(), but as you see this > means > > >that if you have duplicate keys (= parameter names) only the last > > >parameter will persist and overwrite the previous parameter with the > > >same name. > > > > > >This means you lose information, such as tagged values for validation > > >etc... > > > > > >I rather have a compilation error or validation message (still > working > > >on that) than silently having a bug somewhere > > > > > >You see,... every parameter with the name 'X' would have the > properties > > >of the last parameter 'X' read from the model.. and that's not so > good > > >---------------------------- > > > > > >this is very important and I really want to fix this, the only way > Chad > > >and I currently see is to render each parameter as > > >"actionName+parameterName" in the form, than you are sure not to have > > >conflicts,.. on the other hand it will make it difficult to keep > track > > >of which parameter to use when (in the controller for example) > > > > > >I need more time to think about this > > > > > >-- Wouter > > > > > > > > >> -----Original Message----- > > >> From: Walter Mour�o [mailto:[EMAIL PROTECTED] > > >> Sent: Thursday, August 19, 2004 4:49 PM > > >> To: Wouter Zoons > > >> Cc: [EMAIL PROTECTED] > > >> Subject: bpm4struts - User interface > > >> > > >> Hi Wouter, > > >> > > >> I have many situations where one frontendview has 2 (or more) > outgoing > > >> frontendevents with same set of parameters (ex. "edit" and "delete" > > >> frontendevents with the parameter id). Do you think it is a wrong > > >modeling > > >> standard ? > > >> > > >> cheers, > > >> > > >> Walter > > >> > > >> > > > >----------------------------------------------------------------------- > - > > >-- > > >> - > > >> Walter Itamar Mour�o - Diretor de Tecnologia e Projetos - Arcadian > S/A > > >> www.arcadian.com.br > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > -- > > - > > Walter Itamar Mour�o - Diretor de Tecnologia e Projetos - Arcadian S/A > > www.arcadian.com.br > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Andromda-devel mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/andromda-devel > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Andromda-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-devel ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
