[ http://jira.andromda.org/browse/EJB-45?page=comments#action_13550 ]
Vance Karimi commented on EJB-45: --------------------------------- It seems to work if you move the manageable metafacade definitions in the metafacade.xml of the ejb3 cartridge below the entity definitions, clean and rebuild the cartridge. So move the following block: [StartOfBlock] <!-- Manageable Entity Metafacades --> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogicImpl" contextRoot="true"> <mapping> <stereotype>ENTITY</stereotype> <stereotype>MANAGEABLE</stereotype> </mapping> <property reference="manageableServiceBaseNamePattern"/> <property reference="manageableCreateExceptionNamePattern"/> <property reference="manageableReadExceptionNamePattern"/> <property reference="manageableUpdateExceptionNamePattern"/> <property reference="manageableDeleteExceptionNamePattern"/> </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAttributeFacadeLogicImpl"> <mapping> <context> org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacade </context> </mapping> </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAssociationEndFacadeLogicImpl"> <mapping> <context> org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacade </context> </mapping> </metafacade> [/EndOfBlock] below the entity metafacades. I remember having to move these above the entity metafacades for certain reasons. See if this fixes your problems for the time being until can test further to make sure it doesn't cause issues with uml1.4. > <<Manageable>> stereotype causes compilation failure - MD11.5/UML2 & EJB3 > Cartridge > ----------------------------------------------------------------------------------- > > Key: EJB-45 > URL: http://jira.andromda.org/browse/EJB-45 > Project: EJB Cartridge > Type: Bug > Environment: Mac OS/X 10.4 > Maven 2 > MagicDraw 11.5 / UML2 Export > EJB3 Cartridge on AndroMDA 3.2 > Reporter: Mark Hunter > Assignee: Vance Karimi > > This problem: > ERROR [ModelProcessor] Error performing ModelProcessor.process with model(s) > --> > '/Users/markh/Development/Projects/SessionBroker/mda/src/main/uml/SessionBroker.uml2' > ERROR [AndroMDA] Exception recorded in --> > '/Users/markh/Development/Projects/SessionBroker/ejb3060906083204.exc' > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error running AndroMDA > Embedded error: Invocation of method 'filterUpdatableAttributes' in class > org.andromda.cartridges.ejb3.EJB3ScriptHelper threw exception class > java.lang.ClassCastException : > org.andromda.metafacades.emf.uml2.ManageableEntityAttributeLogicImpl > with the "Root Exception:" from the log being > Root Exception .: org.apache.velocity.exception.MethodInvocationException: > Invocation of method 'filterUpdatableAttributes' in class > org.andromda.cartridges.ejb3.EJB3ScriptHelper threw exception class > java.lang.ClassCastException : > org.andromda.metafacades.emf.uml2.ManageableEntityAttributeLogicImpl > org.apache.velocity.exception.MethodInvocationException: Invocation of method > 'filterUpdatableAttributes' in class > org.andromda.cartridges.ejb3.EJB3ScriptHelper threw exception class > java.lang.ClassCastException : > org.andromda.metafacades.emf.uml2.ManageableEntityAttributeLogicImpl > A little bit more information. It seems the problem is associated with the > <<Manageable>> stereotype. When i remove that, leaving only <<Entity>>, the > thing seems to work. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV