Hi Tobi, See below:
--- [EMAIL PROTECTED] wrote: > Hi Chad, > > answers see below > > Regards, > Tobi > > > Hi Tobi, > > > > It looks like your model isn't defined? If you > look > > at the output below, it says the model found is > null. > > How are you pointing to the model? > > MagicDraw 7.5 CE > > > With the maven > > plugin you need to specify the property > > "maven.andromda.model.uri" that points to the > model > > (i.e. > > > >maven.andromda.model.uri=jar:file:${maven.src.dir}/uml/AnimalQuiz.xml.zip!/AnimalQuiz.xml) > > > The pointing to the model is ok. > > I created the project with 'maven andromda:genapp' > then I run maven in the project directory to test. > The first time I got a 'Build failed' because 2 > directories didn´t exist (is > this a bug or...?): -- Well its not really a bug...you're supposed to model something first before you can actually generate. But I'm thinking I may just create those directories so the app builds without the model. > - {project_home}/hibernate/ejb/target/src/ > - {project_home}/target/src/ > The next run was ok. > Then I opened the gernarated XMI with MagicDraw and > began to model the > online store. > After that I ran maven and the exception (see below) > occurs. -- Yeah I guess Wouter will need to get back to you on this one. -- Chad > > > -- Chad > > > > --- [EMAIL PROTECTED] wrote: > > > Hi, > > > > > > I tested the howto > > > > > > http://team.andromda.org/docs/andromda-bpm4struts-cartridge/how-to.html > > > without success. > > > > > > When I run maven a exception (see below) is > thrown? > > > > > > Thanks, > > > Tobi > > > > > > 15:19:58,952 INFO [MetafacadeMappings] found > > > metafacades --> 'default' > > > 15:19:58,968 INFO [MetafacadeMappings] found > > > metafacades --> 'hibernate' > > > 15:19:59,093 INFO [MetafacadeMappings] found > > > metafacades --> 'bpm4struts' > > > 15:19:59,327 WARN [Namespaces] WARNING! > Namespaces > > > 'default' and 'java' > > > have no property 'enumerations' defined --> > please > > > define this property in > > > AT LEAST ONE of these two namespaces. If you > want > > > to 'ignore' this message, > > > add the property to the namespace with ignore > set to > > > 'true' > > > 15:19:59,530 ERROR [AndroMDAGenTask] Error > > > performing > > > AndroMDAGenTask.process with model --> 'null' > > > java.lang.ClassCastException > > > at > > > > > > org.andromda.cartridges.bpm4struts.metafacades.StrutsActivityGraphLogic.getController(StrutsActivityGraphLogic.java:73) > > > at > > > > > > org.andromda.cartridges.bpm4struts.metafacades.StrutsActionLogicImpl.getPackageName(StrutsActionLogicImpl.java:250) > > > at > > > > > > org.andromda.metafacades.uml14.UMLModelAccessFacade.getPackageName(UMLModelAccessFacade.java:76) > > > at > > > > > > org.andromda.core.cartridge.DefaultAndroMDACartridge$1PackageFilter.evaluate(DefaultAndroMDACartridge.java:500) > > > at > > > > > > org.apache.commons.collections.CollectionUtils.filter(CollectionUtils.java:433) > > > at > > > > > > org.andromda.core.cartridge.DefaultAndroMDACartridge.filterModelPackages(DefaultAndroMDACartridge.java:504) > > > at > > > > > > org.andromda.core.cartridge.DefaultAndroMDACartridge.processModelElements(DefaultAndroMDACartridge.java:122) > > > at > > > > > > org.andromda.core.anttasks.AndroMDAGenTask.process(AndroMDAGenTask.java:270) > > > at > > > > > > org.andromda.core.anttasks.AndroMDAGenTask.execute(AndroMDAGenTask.java:192) > > > at > org.apache.tools.ant.Task.perform(Task.java:341) > > > at > > > > > > org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99) > > > at com.werken.werkz.Goal.fire(Goal.java:639) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:126) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > > > at > > > > > > com.werken.werkz.jelly.PreGoalTag$1.firePreGoal(PreGoalTag.java:87) > > > at > > > > > > com.werken.werkz.Goal.firePreGoalCallbacks(Goal.java:691) > > > at com.werken.werkz.Goal.fire(Goal.java:616) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:126) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99) > > > at com.werken.werkz.Goal.fire(Goal.java:639) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531) > > > at > > > > > > org.apache.maven.MavenSession.attainGoals(MavenSession.java:265) > > > at > > > > > > org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:276) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99) > > > at com.werken.werkz.Goal.fire(Goal.java:639) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:126) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99) > > > at com.werken.werkz.Goal.fire(Goal.java:639) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:126) > > > at > > > > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > > > at > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:78) > > > at > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:99) > > > at com.werken.werkz.Goal.fire(Goal.java:639) > > > at com.werken.werkz.Goal.attain(Goal.java:575) > > > at > > > > > > com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > > > at > > > > > > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:531) > > > at > > > > > > org.apache.maven.MavenSession.attainGoals(MavenSession.java:265) > > > at > org.apache.maven.cli.App.doMain(App.java:466) > > > at org.apache.maven.cli.App.main(App.java:1117) > > > at > > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) > > > at > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > at > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > at > java.lang.reflect.Method.invoke(Method.java:324) > > > at > > > > com.werken.forehead.Forehead.run(Forehead.java:551) > > > at > > > > com.werken.forehead.Forehead.main(Forehead.java:581) > > > > > > -- > > > NEU : GMX Internet.FreeDSL > > > Ab sofort DSL-Tarif ohne Grundgebühr: > > > http://www.gmx.net/dsl > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: Oracle 10g > > > Get certified on the hottest thing ever to hit > the > > > market... Oracle 10g. > > > Take an Oracle 10g class now, and we'll give you > the > > > exam FREE. > > > > > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > > _______________________________________________ > > > Andromda-user mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > -- > NEU : GMX Internet.FreeDSL > Ab sofort DSL-Tarif ohne Grundgebühr: > http://www.gmx.net/dsl > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the > market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the > exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user