On Sat, Feb 5, 2011 at 11:27 AM, Mark Fortner <[email protected]> wrote:

> I modified the ant build to create the JAR and this didn't make any 
> difference.  Most of the modules are either translations, or support for 
> other languages, and there's not much translation being done in either.

Thanks for fixing the build.  With a few tweaks, I was able to build
the module and it appears to work fine for me.  What I did was:

cd argouml-build
ant clean package
cd ../argoprint
ant clean run

When I do this and click Tools->ArgoPrint, I see the ArgoPrint dialog
with all of the correct button labels.  There's something wrong with
the default templates, so it gives me an error ("unabled to load
specified template) when I click Generate, but the UI looks fine.

> I also found this in the log: java.lang.ClassNotFoundException: 
> org/argoprint/persistence/TemplateMetaFile
> which would indicate that it's not really loading the entire JAR at all, 
> since this class is definitely in the JAR.  Oddly enough, it loads the 
> ArgoPrintDialog class which is in the same JAR.

What's the rest of the message?  When does it occur?

What gets logged at startup?  Do you see  the equivalent of these
messages that I posted before?

36699  INFO [main] Loading module
org.argouml.ui.argoprint.ArgoPrintMenuPlugin (ModuleLoader2.java:705)
36831 DEBUG [main] Loading org.argouml.i18n.argoprint (Translator.java:267)

If you don't see both, your module isn't correctly loaded.  One of the
things that modules are susceptible to is version skew because none of
the APIs are versioned.  Are testing your module with the same version
ArgoUML that it was built against?  If your module loading is failing
due to this, you should get a message in the log because I added a
bunch of logging for the various failure modes (wrong Java version,
missing dependencies, etc)

Because the classes in the JAR are processed sequentially, it wouldn't
be unusual to have only some of the classes loaded if there was a
failure loading one of the later classes.  Since the classpath gets
added to the Translator after all the classes get loaded, the symptom
you're seeing of resources not being available would fit with this
error scenario.

Tom

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2702459

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to