Skip to main content



      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] Mon, 08 February 2016 22:29 Go to next message
Eclipse UserFriend
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 211 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 14:08 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: JAR entry DomainmodelParser.class not found in domainmodel.ide-1.0.0-SNAPSHOT.jar [message #1722882 is a reply to message #1722864] Tue, 09 February 2016 21:29 Go to previous messageGo to next message
Eclipse UserFriend
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: Tue, 09 February 2016 21:30] by 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 10:29 Go to previous messageGo to next message
Eclipse UserFriend
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 11:08 Go to previous messageGo to next message
Eclipse UserFriend
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 07:25 Go to previous message
Eclipse UserFriend
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: Wed Jul 09 08:11:19 EDT 2025

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

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

Back to the top