| Summary: | Run As > Generate Xtext Artifacts fails with NoClassDefFoundError for org/apache/log4j/Logger | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Barrie Treloar <baerrach> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jesper.eskilson, karsten.thoms, sebastian.zarnekow |
| Version: | 2.1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Barrie Treloar
I cannot reproduce this. Could you please provide more information and reopen if the problem persists with the released version 2.1. I managed to get this problem as well. The mwe2 launch configuration had its classpath set up using dependencies from its containing plugin, and for some reason log4j was not included there (not sure if this was user error on my part, or cosmic radiation). Anyway, I solved the problem by simply adding a dependency on org.apache.log4j in the plugin containing the xtext grammar file. Note that it is better to use Import-Package instead of Require-Bundle for a dependency on log4j. There are alternative implementations like slf4j which provide this package. Requested via bug 522520. -M. Requested via bug 522520. -M. |