|acceleo .emtl not found exception in jar file [message #726822]
||Mon, 19 September 2011 16:01
Registered: August 2011
I created a acceleo project .
then I created a java project to conduct audits on input model and launching of acceleo project.
in the java project I added the acceleo project as a dependency, and i exported the project to a java executable jar.
when I launch the execution of the project jar java command line
i have this error
Caused by: java.lang.IllegalArgumentException: invalid relative pathName: rsrc:o
... 5 more
if somebody can help me thank you
|Re: acceleo .emtl not found exception in jar file [message #729427 is a reply to message #726822]
||Mon, 26 September 2011 07:33
The problem here comes from the "rsrc" protocol : you're not the first one to end up with such a stack trace. We (Acceleo) or EMF do not manage to load resources with the rsrc (jar-in-jar?) protocol.
Could you raise a bugzilla entry with this stack trace and, if you are allowed to, the project (and its dependencies) so that we can try and reproduce this to see if we can help in any way from our side?
In the meantime, you can try and overrides the generated Java class' "createResourceURI" in order to change it to something we can load (though I have to admit that I don't know what the URI should look like. You should probably try something looking like "jar:file://<path_to_jar_file>!/org/metalanguage/translator/impl/Drools/DroolsTranslator.emtl".
Powered by FUDForum
. Page generated in 0.01879 seconds