Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar(I'm stuck at an error while trying to do the 15 minute tutorial)
icon9.gif  JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1722774] Tue, 09 February 2016 03:29 Go to next message
Joshua Ball is currently offline Joshua BallFriend
Messages: 2
Registered: February 2016
Junior Member
Hi,

I'm trying to work my way through the 15 minute tutorial. When I run `./gradlew build`, I get the following error:

19:16:16.564 [ERROR] [org.eclipse.xtext.xbase.resource.BatchLinkableResource] JAR entry org/example/domainmodel/ide/contentassist/antlr/DomainmodelParser.class not found in /Users/joshball/git/sandbox/xtext2/domainmodel/domainmodel.parent/domainmodel.ide/build/libs/domainmodel.ide-1.0.0-SNAPSHOT.jar
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter]
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter]
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':domainmodel.idea:generateXtext'.
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] > java.io.FileNotFoundException: JAR entry org/example/domainmodel/ide/contentassist/antlr/DomainmodelParser.class not found in /Users/joshball/git/sandbox/xtext2/domainmodel/domainmodel.parent/domainmodel.ide/build/libs/domainmodel.ide-1.0.0-SNAPSHOT.jar
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter]
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
19:16:16.589 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.


In case it's relevant, the project was generated by the IntelliJ Xtext plugin, which the 15 minute tutorial has probably not been tested against.

I've also never used gradle, so I could be running the wrong command. Is `./gradlew build` ok to run after running `./gradlew clean`, or do I need to do something else first? (e.g. `buildNeeded`, `buildDependents`?)

stdout log is attached and is also here:

https://gist.github.com/sciolizer/b1ce89254134c822b1ec

Source code is here:

https://github.com/sciolizer/xtext-sandbox/tree/8fd31f3575205014b0a076d0e6033cb775b403b0
  • Attachment: build.txt
    (Size: 1.88MB, Downloaded 166 times)
Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1722864 is a reply to message #1722774] Tue, 09 February 2016 19:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
hi, just checked out the project.

calling ./gradlew build inside the parent works fine for me.

the interesting point in your log is:

Skipping task ':domainmodel:generateXtextLanguage' as it is up-to-date

maybe this was a false positive.

maybe you can run a gradlew clean as well


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1722882 is a reply to message #1722864] Wed, 10 February 2016 02:29 Go to previous messageGo to next message
Joshua Ball is currently offline Joshua BallFriend
Messages: 2
Registered: February 2016
Junior Member
Thanks. It also worked for me when I git-cloned into another folder. I guess `gradlew clean` is still leaving something behind? Haven't narrowed it down yet. Anyway, this gets me unstuck.

[Updated on: Wed, 10 February 2016 02:30]

Report message to a moderator

Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1730888 is a reply to message #1722882] Fri, 29 April 2016 14:29 Go to previous messageGo to next message
Chris Murray is currently offline Chris MurrayFriend
Messages: 1
Registered: July 2009
Junior Member
I got the exact same problem. Cloning repos again did not fix it.

However, killing the gradle daemon fixed it.
Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1731060 is a reply to message #1722864] Mon, 02 May 2016 15:08 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
could this be related to

https://bugs.eclipse.org/bugs/show_bug.cgi?id=491873

?

--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1740619 is a reply to message #1731060] Tue, 16 August 2016 11:25 Go to previous message
Elias Vasylenko is currently offline Elias VasylenkoFriend
Messages: 19
Registered: December 2015
Junior Member
If killing the Gradle daemon fixes it then it sounds to me like it's probably the result of URLConnection caching behaviour failing when the `domainmodel.ide-1.0.0-SNAPSHOT.jar` file is modified. Where the jar resource is loaded, call `setUseCaches‌​(false)` on the URLConnection, or if you don't have access to the source of the error and can't be bothered filing a bug with the relevant party, call `setDefaultUseCaches‌​(false)` somewhere else and hope they don't explicitly revert the setting back to `true` before they load.
Previous Topic:How to change resourceDescriptionStrategy for GenericResourceDescriptionManager
Next Topic:Xtext runtime questions
Goto Forum:
  


Current Time: Fri Mar 29 15:05:56 GMT 2024

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

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

Back to the top