<dependency> <groupId>com.mywork</groupId> <artifactId>emfjson</artifactId> <version>0.4.1</version> <scope>compile</scope></dependency>Hey Syed,This kind of question would be better suited for Stack Overflow. If it's an actual defect, go on our public issue tracker to report it.Thank you!
On Thursday, March 5, 2015 at 12:06:21 PM UTC-5, Syed Rizvi wrote:Hi,I am making a maven based GAE project. It's a service that is supposed to serve some data to its clients. The project works perfectly on the local machine, but gives the NoClassDefFoundError when deployed to GAE. Here's the complete StackTrace:Error for /cron/loadDatasetjava.lang.NoClassDefFoundError: Could not initialize class org.eclipse.core.runtime.Platform at org.eclipse.ocl.common.OCLCommon.getPreference(OCLCommon.java:74) at org.eclipse.ocl.lpg.AbstractBasicEnvironment.getValue(AbstractBasicEnvironment.java:440) at org.eclipse.ocl.options.ParsingOptions.getValue(ParsingOptions.java:330) at org.eclipse.ocl.AbstractEnvironment.createTypeChecker(AbstractEnvironment.java:1214) at org.eclipse.ocl.AbstractEnvironment.getTypeChecker(AbstractEnvironment.java:1196) at org.eclipse.ocl.AbstractEnvironment.getAdapter(AbstractEnvironment.java:1236) at org.eclipse.ocl.util.OCLUtil.getAdapter(OCLUtil.java:102) at org.eclipse.ocl.util.TypeUtil.getTypeCheckerAdapter(TypeUtil.java:800) at org.eclipse.ocl.util.TypeUtil.findAttribute(TypeUtil.java:171) at org.eclipse.ocl.AbstractEnvironment.doLookupProperty(AbstractEnvironment.java:657) at org.eclipse.ocl.AbstractEnvironment.lookupProperty(AbstractEnvironment.java:638) at org.eclipse.ocl.AbstractTypeResolver.findTupleType(AbstractTypeResolver.java:430) at org.eclipse.ocl.AbstractTypeResolver.resolveTupleType(AbstractTypeResolver.java:382) at org.eclipse.ocl.AbstractTypeResolver$ResolveSwitch.caseTupleType(AbstractTypeResolver.java:1008) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:267) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(TypesSwitch.java:117) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(TypesSwitch.java:122) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:105) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69) at org.eclipse.ocl.AbstractTypeResolver.resolve(AbstractTypeResolver.java:127) at org.eclipse.ocl.AbstractTypeResolver$ResolveSwitch.caseCollectionType(AbstractTypeResolver.java:1003) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:168) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(TypesSwitch.java:117) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(TypesSwitch.java:122) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(TypesSwitch.java:122) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:105) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69) at org.eclipse.ocl.AbstractTypeResolver.resolve(AbstractTypeResolver.java:127) at org.eclipse.ocl.util.TypeUtil.resolveType(TypeUtil.java:617) at org.eclipse.ocl.util.OCLStandardLibraryUtil.getSetType(OCLStandardLibraryUtil.java:2216) at org.eclipse.ocl.util.OCLStandardLibraryUtil.createCollectionOperations(OCLStandardLibraryUtil.java:1754) at org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl.build(
...
Error for /cron/loadDatasetjava.lang.NoClassDefFoundError: Could not initialize class org.eclipse.core.runtime.Platform
As you can see in the Platform.class.PNG screenshot, the class is present (At least at compile time. I don't know how it vanishes at runtime?), The dependencies are downloaded from the public Maven repo.
All these Maven dependencies including the external JAR are packaged with the WAR file (as seen in Dependencies.PNG). Where could the problem lie? I have spent days but still cannot find where the problem exists