Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Standalone application running error
[Acceleo] Standalone application running error [message #755965] Thu, 10 November 2011 10:51
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
Hi !

I need to be able to put all my acceleo project in a runnable jar file, i've some problem with it.

I made a main class preparing data for Acceleo, and then i call the Generate.main function from the acceleo part of the project.

Inside Eclipse, i can run it, and everythings work correctly.

If i try to export it in a .jar, after copying every .emlt file, i've got this error

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.IllegalArgumentException: invalid relative pathName: rsrc:I
mmoFimNav/gen/main/generate.emtl
        at org.eclipse.emf.common.util.URI.createFileURI(URI.java:856)
        at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.createTem
plateURI(AbstractAcceleoGenerator.java:673)
        at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initializ
e(AbstractAcceleoGenerator.java:446)
        at ImmoFimNav.gen.main.Generate.<init>(Generate.java:94)
        at ImmoFimNav.gen.main.Generate.main(Generate.java:141)
        at program.Launcher.main(Launcher.java:104)
        ... 5 more


Odd is when i try to debug it in Eclipse, instead of "rsrc:ImmoFimNav/gen/main/generate.emtl", the function is only entered for "data/portal.fim", which is the model that acceleo have to read to generate my output.

Can anyone help me ?

Thanks!

[Updated on: Thu, 10 November 2011 15:25]

Report message to a moderator

Previous Topic:[acceleo 3.2] queries and nested Sequence of model objects
Next Topic:[Acceleo 3.X] JMerge not used when generated code contains Java 5 annotations
Goto Forum:
  


Current Time: Tue Apr 23 15:32:49 GMT 2024

Powered by FUDForum. Page generated in 0.02817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top