Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339004

Summary: NoClassDefFoundError: Lorg/apache/commons/logging/Log for examples
Product: [Modeling] TMF Reporter: Ed Willink <ed>
Component: XtextAssignee: Dennis Huebner <dennis.huebner>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dennis.huebner, sven.efftinge
Version: 2.0.0Flags: sven.efftinge: indigo+
Target Milestone: M6   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-03-05 06:20:41 EST
Attempting to run the GenerateFowlerDsl.mwe2 script on 2.0M5 plus a bit, gives

188  [main] DEBUG .linking.impl.DefaultLinkingService  - before getLinkedObjects: node: 'StandaloneSetup'
219  [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Lorg/apache/commons/logging/Log;
java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
	at java.lang.Class.getDeclaredFields(Class.java:1715)
	at org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory.createFields(DeclaredTypeFactory.java:282)
	at org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory.createType(DeclaredTypeFactory.java:88)
	at org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory.createType(DeclaredTypeFactory.java:1)
	at org.eclipse.xtext.common.types.access.impl.ClassMirror.initialize(ClassMirror.java:42)
	at org.eclipse.xtext.common.types.access.TypeResource.doLoad(TypeResource.java:86)

The problem is cured by adding a package import for org.apache.commons.logging to the manifest.

[It would be good to have this fixed in M6, since I'd like to use this example in my EclipseCVon tutorial.]
Comment 1 Dennis Huebner CLA 2011-03-06 15:23:12 EST
Thanks for reporting!
I will take a look at this...
Comment 2 Dennis Huebner CLA 2011-03-06 15:23:23 EST
Thanks for reporting!
I will take a look at this...
Comment 3 Dennis Huebner CLA 2011-03-06 15:24:02 EST
Thanks for reporting!
I will take a look at this...
Comment 4 Sven Efftinge CLA 2011-03-09 04:48:19 EST
pushed to master
Comment 5 Karsten Thoms CLA 2017-09-19 17:54:29 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 6 Karsten Thoms CLA 2017-09-19 18:05:20 EDT
Closing all bugs that were set to RESOLVED before Neon.0