Hey Syed,

This kind of question would be better suited for Stack Overflow 
<http://www.stackoverflow.com>. If it's an actual defect, go on our public 
issue tracker 
<https://code.google.com/p/googleappengine/wiki/FilingIssues?tm=3> 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/loadDataset
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.eclipse.core.runtime.Platform at 
> org.eclipse.ocl.common.OCLCommon.getPreference(OCLCommon.java:74 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fcommon%2FOCLCommon.java&line=74>
> ) at org.eclipse.ocl.lpg.AbstractBasicEnvironment.getValue(
> AbstractBasicEnvironment.java:440 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Flpg%2FAbstractBasicEnvironment.java&line=440>
> ) at org.eclipse.ocl.options.ParsingOptions.getValue(
> ParsingOptions.java:330 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Foptions%2FParsingOptions.java&line=330>
> ) at org.eclipse.ocl.AbstractEnvironment.createTypeChecker(
> AbstractEnvironment.java:1214 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractEnvironment.java&line=1214>
> ) at org.eclipse.ocl.AbstractEnvironment.getTypeChecker(
> AbstractEnvironment.java:1196 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractEnvironment.java&line=1196>
> ) at org.eclipse.ocl.AbstractEnvironment.getAdapter(
> AbstractEnvironment.java:1236 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractEnvironment.java&line=1236>
> ) at org.eclipse.ocl.util.OCLUtil.getAdapter(OCLUtil.java:102 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FOCLUtil.java&line=102>
> ) at org.eclipse.ocl.util.TypeUtil.getTypeCheckerAdapter(TypeUtil.java:800 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.java&line=800>
> ) at org.eclipse.ocl.util.TypeUtil.findAttribute(TypeUtil.java:171 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.java&line=171>
> ) at org.eclipse.ocl.AbstractEnvironment.doLookupProperty(
> AbstractEnvironment.java:657 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractEnvironment.java&line=657>
> ) at org.eclipse.ocl.AbstractEnvironment.lookupProperty(
> AbstractEnvironment.java:638 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractEnvironment.java&line=638>
> ) at org.eclipse.ocl.AbstractTypeResolver.findTupleType(
> AbstractTypeResolver.java:430 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=430>
> ) at org.eclipse.ocl.AbstractTypeResolver.resolveTupleType(
> AbstractTypeResolver.java:382 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=382>
> ) at org.eclipse.ocl.AbstractTypeResolver$ResolveSwitch.caseTupleType(
> AbstractTypeResolver.java:1008 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=1008>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:267 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=267>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(
> TypesSwitch.java:117 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=117>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(
> TypesSwitch.java:122 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=122>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:105 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=105>
> ) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Femf%2Fecore%2Futil%2FSwitch.java&line=69>
> ) at org.eclipse.ocl.AbstractTypeResolver.resolve(
> AbstractTypeResolver.java:127 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=127>
> ) at 
> org.eclipse.ocl.AbstractTypeResolver$ResolveSwitch.caseCollectionType(
> AbstractTypeResolver.java:1003 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=1003>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:168 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=168>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(
> TypesSwitch.java:117 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=117>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(
> TypesSwitch.java:122 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=122>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitchSuperTypes(
> TypesSwitch.java:122 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=122>
> ) at org.eclipse.ocl.types.util.TypesSwitch.doSwitch(TypesSwitch.java:105 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Ftypes%2Futil%2FTypesSwitch.java&line=105>
> ) at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Femf%2Fecore%2Futil%2FSwitch.java&line=69>
> ) at org.eclipse.ocl.AbstractTypeResolver.resolve(
> AbstractTypeResolver.java:127 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2FAbstractTypeResolver.java&line=127>
> ) at org.eclipse.ocl.util.TypeUtil.resolveType(TypeUtil.java:617 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FTypeUtil.java&line=617>
> ) at org.eclipse.ocl.util.OCLStandardLibraryUtil.getSetType(
> OCLStandardLibraryUtil.java:2216 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FOCLStandardLibraryUtil.java&line=2216>
> ) at 
> org.eclipse.ocl.util.OCLStandardLibraryUtil.createCollectionOperations(
> OCLStandardLibraryUtil.java:1754 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Futil%2FOCLStandardLibraryUtil.java&line=1754>
> ) at org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl.build(
> OCLStandardLibraryImpl.java:375 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fecore%2Finternal%2FOCLStandardLibraryImpl.java&line=375>
> ) at org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl.init(
> OCLStandardLibraryImpl.java:205 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fecore%2Finternal%2FOCLStandardLibraryImpl.java&line=205>
> ) at 
> org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl.<clinit>(OCLStandardLibraryImpl.java:97)
>  
> at org.eclipse.ocl.ecore.EcoreEnvironment.getOCLStandardLibrary(
> EcoreEnvironment.java:271 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fecore%2FEcoreEnvironment.java&line=271>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.booleanLiteralExpCS(
> AbstractOCLAnalyzer.java:3041 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=3041>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.primitiveLiteralExpCS(
> AbstractOCLAnalyzer.java:2922 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=2922>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.literalExpCS(
> AbstractOCLAnalyzer.java:3107 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=3107>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.oclExpressionCS(
> AbstractOCLAnalyzer.java:1983 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=1983>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invCS(
> AbstractOCLAnalyzer.java:1440 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=1440>
> ) at org.eclipse.ocl.parser.AbstractOCLAnalyzer.invOrDefCS(
> AbstractOCLAnalyzer.java:1420 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FAbstractOCLAnalyzer.java&line=1420>
> ) at org.eclipse.ocl.parser.OCLAnalyzer.parseInvOrDefCS(
> OCLAnalyzer.java:266 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Fparser%2FOCLAnalyzer.java&line=266>
> ) at org.eclipse.ocl.internal.helper.HelperUtil.parseQuery(
> HelperUtil.java:164 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Finternal%2Fhelper%2FHelperUtil.java&line=164>
> ) at org.eclipse.ocl.internal.helper.OCLHelperImpl.createQuery(
> OCLHelperImpl.java:176 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Feclipse%2Focl%2Finternal%2Fhelper%2FOCLHelperImpl.java&line=176>
> ) at 
> org.eclipse.emf.query.ocl.conditions.AbstractOCLCondition.<init>(AbstractOCLCondition.java:211)
>  
> at 
> org.eclipse.emf.query.ocl.conditions.BooleanOCLCondition.<init>(BooleanOCLCondition.java:149)
>  
> at 
> org.eclipse.emf.query.ocl.conditions.BooleanOCLCondition.<init>(BooleanOCLCondition.java:107)
>  
> at org.sociotech.communitymashup.data.impl.DataSetImpl.getAttachments(
> DataSetImpl.java:3032 
> <https://console.developers.google.com/project/gaecommunitymashup/clouddev/source/resolve_location?appModule=default&appVersion=1&timestampNanos=1425569193574000000&file=org%2Fsociotech%2Fcommunitymashup%2Fdata%2Fimpl%2FDataSetImpl.java&line=3032>
> )
>
> 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. Just one external 
> JAR is included from my local repo using:
> <dependency>
> <groupId>com.mywork</groupId>
> <artifactId>emfjson</artifactId>
> <version>0.4.1</version>
> <scope>compile</scope>
> </dependency>
>
> 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.
>
> Your help would be greatly appreciated!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1ef9df16-5fc8-4a9c-92cf-7b54019fb2dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to