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
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
Caused by: java.lang.IllegalArgumentException: invalid relative pathName: rsrc:I
        at org.eclipse.emf.common.util.URI.createFileURI(
        at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.createTem
        at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initializ
        at ImmoFimNav.gen.main.Generate.<init>(
        at ImmoFimNav.gen.main.Generate.main(
        at program.Launcher.main(
        ... 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 ?


[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: Mon May 29 20:07:12 GMT 2023

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

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

Back to the top