Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » problem running a xtext file
problem running a xtext file [message #1002501] Fri, 18 January 2013 18:06 Go to next message
Amine BENELALLAM is currently offline Amine BENELALLAMFriend
Messages: 13
Registered: January 2013
Junior Member
I generated a xtext grammar from an existing genmodel. When I tried to run the generated file an error occured. here is the error

    [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - java.util.zip.ZipException: error in opening zip file
org.eclipse.emf.common.util.WrappedException: java.util.zip.ZipException: error in opening zip file
	at org.eclipse.xtext.mwe.PathTraverser.traverseArchive(PathTraverser.java:63)
	at org.eclipse.xtext.mwe.PathTraverser.findAllResourceUris(PathTraverser.java:44)
	at org.eclipse.xtext.mwe.PathTraverser.resolvePathes(PathTraverser.java:33)
	at org.eclipse.xtext.mwe.RuntimeResourceSetInitializer.getPathToUriMap(RuntimeResourceSetInitializer.java:54)
	at org.eclipse.xtext.mwe.RuntimeResourceSetInitializer.getInitializedResourceSet(RuntimeResourceSetInitializer.java:72)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.findModule(Mwe2Runner.java:93)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:61)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(Unknown Source)
	at java.util.zip.ZipFile.<init>(Unknown Source)
	at org.eclipse.xtext.mwe.PathTraverser.traverseArchive(PathTraverser.java:52)
	... 9 mo 


Thank you in advance
Re: problem running a xtext file [message #1002533 is a reply to message #1002501] Fri, 18 January 2013 19:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

seems there is a broken zip/jar on your classpath. you can try to debug PathTraverser to find which it is.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem running a xtext file [message #1003238 is a reply to message #1002533] Sun, 20 January 2013 18:28 Go to previous messageGo to next message
Amine BENELALLAM is currently offline Amine BENELALLAMFriend
Messages: 13
Registered: January 2013
Junior Member
Hi, thank you for your response!!!
I used the generated xtext code to implement a new project, and it works just fine.
I entend to generate ecore models from an existing script according to my grammar. I surveyed some tutorials which refer to the manipulation of the file Mydslgenerator.xtend in the package *.generator. Unfortunately, this package isn't generated after running the workflow. Do I miss something in the running process.
Best wishes
Re: problem running a xtext file [message #1003243 is a reply to message #1003238] Sun, 20 January 2013 18:48 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

is the generatorfragment contained in your workflow?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:xtext-utils - integration test failing, whitespace mismatch?
Next Topic:Calling the serializer preserving original formatting
Goto Forum:
  


Current Time: Tue Apr 23 08:54:05 GMT 2024

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

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

Back to the top