Hello everyone,

I'm using AndroMDA 3.0



The title should say a lot about my problem.

I've defined my own profile for the stereotypes I use for my cartridge. But I'm 
unable to load a  model containing elements defined with some of this profiles 
stereotype.



I always get the following exception:



andromda:run:

    [echo] +--------------------------------------------+

    [echo] |      R u n n i n g    A 
n d r o M D A      |

    [echo] +--------------------------------------------+

INFO  [AndroMDA]

INFO  [AndroMDA] A n d r o M D A  -  3.0

INFO  [AndroMDA]

INFO  [AndroMDA] Input model --> 
'jar:file:C:depotplatformocmmda/src/uml/OnlineApplicationManagerModel.xml.zip!/OnlineApplicationManager

Model.xml'

INFO  [AndroMDA] -- discovering plugins --

INFO  [AndroMDA] found translation-library --> 'validation'

INFO  [AndroMDA] found translation-library --> 'query'

INFO  [AndroMDA] found cartridge --> 'spring'

INFO  [AndroMDA] found cartridge --> 'nmy-ocm'

INFO  [AndroMDA] found cartridge --> 'java'

INFO  [AndroMDA] -- discovering metafacades --

INFO  [AndroMDA] found shared metafacades --> 'uml-1.4' - adding 
to 'default' namespace

INFO  [AndroMDA] found metafacades --> 'spring'

INFO  [AndroMDA] found metafacades --> 'nmy-ocm'

INFO  [AndroMDA] Referenced model --> 
'jar:file:C:Documents and 
Settingsalenfant.mavenrepositoryandromdaxml.zipsandromda-profile-3.0.

xml.zip!/andromda-profile-3.0.xml'

INFO  [AndroMDA] Referenced model --> 
'jar:file:C:depotplatformocmmda/src/uml/OnlineApplicationManagerModel.xml.zip!/nmy-ocm-profile-3.0

.xml.zip'

org.netbeans.lib.jmi.util.DebugException: JAR entry 
nmy-ocm-profile-3.0.xml.zip not found in 
C:depotplatformocmmdasrcumlOnlineApplica

tionManagerModel.xml.zip

        at 
org.netbeans.lib.jmi.xmi.XmiContext.readExternalDocument(XmiContext.java:925)

        at 
org.netbeans.lib.jmi.xmi.XmiContext.resolve(XmiContext.java:751)

        at 
org.netbeans.lib.jmi.xmi.XmiContext.resolveExternalReferences(XmiContext.java:835)

        at 
org.netbeans.lib.jmi.xmi.XmiElement$Content.endElement(XmiElement.java:394)

        at 
org.netbeans.lib.jmi.xmi.XmiSAXReader.endElement(XmiSAXReader.java:262)

        at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)

        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)

        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

        at 
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at 
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

        at 
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at 
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at javax.xml.parsers.SAXParser.parse(Unknown 
Source)

        at 
org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:139)

        at 
org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:98)

        at 
org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)

        at 
org.andromda.repositories.mdr.MDRepositoryFacade.loadModel(MDRepositoryFacade.java:350)

        at 
org.andromda.repositories.mdr.MDRepositoryFacade.readModel(MDRepositoryFacade.java:137)

...





When building the cartridge, all i had to do was to use the moduleSearchPath 
property, and my test model was loading just fine.



# Defines the location of the andromda profile (for cartridge tests)

andromda.cartridge.repository.moduleSearchPath.location.0=../../etc/profile/src/uml





Now that I want to use the cartridge, this option doesn't work anymore.

I also tried declaring the dependency in the project where I'm using my 
cartridge:





<dependency>

&nbsp; &nbsp; &nbsp; <groupId>andromda</groupId>

&nbsp; &nbsp; &nbsp; <artifactId>andromda-profile</artifactId>

&nbsp; &nbsp; &nbsp; <version>$&#123;andromda&#125;</version>

&nbsp; &nbsp; &nbsp; <type>xml.zip</type>

&nbsp; &nbsp; </dependency>



&nbsp; &nbsp; <dependency>

&nbsp; &nbsp; &nbsp; <groupId>andromda</groupId>

&nbsp; &nbsp; &nbsp; <artifactId>nmy-ocm-profile</artifactId>

&nbsp; &nbsp; &nbsp; <version>$&#123;andromda&#125;</version>

&nbsp; &nbsp; &nbsp; <type>xml.zip</type>

&nbsp; &nbsp; </dependency>





Note that I placed my profile in the same location as andromda-profile, but it 
doesn't seem to help.

The engine does manage to load andromda-profile-3.0.xml.zip. I have trouble 
understanding what is missing.



Thanks for your help.



PS: I noticed Timo P. posted for the same kind of problem, but he's using 3.1 
so I thought the issue deserved its own thread.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1588#1588
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to