Thanks again, for the assitance but I am just curious why you are using the 
andrmpapp:generate as opposed to the standard andromda:run (to run the
hibernate cartridge) and why you are using:

jar:file:C:/temp/kiran/genome/mda/src/uml/model.zuml/model.xmi

My UML file has nothing to do with a JAR.  Thanks again and I hope to get
this resolved soon.

-Kiran




-----Original Message-----
From: Chad Brandon [mailto:[EMAIL PROTECTED]
Sent: Sat 2/5/2005 9:03 AM
To: 'Matthias Bohlen'
Cc: Kiran Keshav; andromda-user@lists.sourceforge.net
Subject: RE: [Andromda-user] Hibernate with no output
 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthias
Bohlen
Sent: Saturday, February 05, 2005 4:40 AM
To: Matthias Bohlen
Cc: Kiran Keshav; andromda-user@lists.sourceforge.net
Subject: Re: [Andromda-user] Hibernate with no output

Hello Kiran,

Thursday, February 3, 2005, 11:45:09 PM, you wrote:

KK>> Sorry for the hasstle, Matthias but I have looked at your September
thread
KK>> regarding the Hibernate cartidge and I am wondering if you were able to
just
KK>> take an existing .xmi file (from Poseidon or the like) and run a maven
KK>> andromda:run on it to get the desired hibernate config files.  
KK>> I don't get any output, although the Andromda processor is working
fine.  Any
KK>> ideas?  I also tried generating the fullblow j2ee app using the 
KK>> maven andromdapp:generate (which works fine, as indicated in your
thread),
KK>> and then replaced the .xmi file created from this in /mda/src/uml with
my own
KK>> and ran the andromda:run, but to no avail.  The code is still not
generated.
KK>> Has this been fixed?  The thread I am referring to is linked below.

KK>>
http://www.mail-archive.com/andromda-user@lists.sourceforge.net/msg02623.htm
l

KK>> Thanks in advance,

KK>> Kiran

I got your model file (*.zuml, created with Poseidon 3). I looked at
it inside Poseidon 3 and did not find any reason why it should not
generate any output.

I did a "maven andromdapp:generate" and edited project.properties in
the "mda" subdirectory of the generated project. I replaced the model
URI line by:

 
maven.andromda.model.uri=jar:file:C:/temp/kiran/genome/mda/src/uml/model.zum
l!model.xmi

[CB] Matthias, the reason it won't run with that path, is because it's
invalid, you're missing the last slash, you need this path:
maven.andromda.model.uri=
jar:file:C:/temp/kiran/genome/mda/src/uml/model.zuml!/model.xmi

Also it shouldn't matter what the extension of the zip file is (whether it
be: .zip, .xml.zip, .zuml, whatever), that syntax will always work for zip
files. 

And: bingo! I got an exception that says:

Main Exception .: methodName: Model.Model - 'url' can not be null
Root Exception .: java.lang.IllegalArgumentException: methodName:
Model.Model - 'url' can not be null
java.lang.IllegalArgumentException: methodName: Model.Model - 'url' can not
be null
        at
org.andromda.core.common.ExceptionUtils.checkNull(ExceptionUtils.java:41)
        at org.andromda.core.Model.<init>(Model.java:35)
        at
org.andromda.core.anttasks.AndroMDAGenTask.execute(AndroMDAGenTask.java:187)

So, I deduced that we have a bug in the processing of the
"jar:file:..." syntax, when combined with a "*.zuml" file extension of
the model file!

I used WinZip to unzip the model.zuml file and got a model.xmi file.
Then I replaced the model URI by:

  maven.andromda.model.uri=file:C:/temp/kiran/genome/mda/src/uml/model.xmi

Then, I got tons of java files generated from your entity classes!
These java files were not in proper java packages and did not make use
of the platform independent datatypes from the AndroMDA profile, so
that later on, the Java compiler complained about things like
"java.lang.int", but never mind, you'll get rid of that easily if you
follow our modeling guidelines on the website www.andromda.org.

To my peers in the team: Can anyone fix the jar:file:....zuml!...xmi
issue? This would enable Poseidon users to work as expected. Thanks!

Good luck, Kiran...
Matthias

---

Matthias Bohlen

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]






-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to