Can't Run html libgdx with libgdx-utils - java

Im trying to compile my libgdx game, its working for android and desktop, but not HTML GWT.
Im using Intellij / Gradle for the project.
I just added the libgdx-utils extension lib found here which seems to be causing the error: https://bitbucket.org/dermetfan/libgdx-utils/wiki/Dependency%20Instructions
The error i get when attempting this gradle command ./gradlew html:dist is:
:html:compileGwt
Compiling module com.xx.xx.GdxDefinition
Validating units:
[ERROR] Errors in 'file:/xx/xx/xx/screens/GameScreen.java'
[ERROR] Line 66: No source code is available for type net.dermetfan.gdx.graphics.g2d.Box2DSprite; did you forget to inherit a required module?
[ERROR] Aborting compile due to errors in some input files
:html:compileGwt FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':html:compileGwt'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
My Gradle file looks like this:
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.5'
classpath 'com.android.tools.build:gradle:0.13+'
classpath 'org.robovm:robovm-gradle-plugin:1.0.0-alpha-04'
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = '1.0'
ext {
appName = 'xxx-xxx'
gdxVersion = '1.4.1'
roboVMVersion = '1.0.0-alpha-04'
box2DLightsVersion = '1.2'
ashleyVersion = '1.3.1'
aiVersion = '1.4.0'
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
}
project(":desktop") {
apply plugin: "java"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
}
}
project(":android") {
apply plugin: "android"
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
}
}
project(":ios") {
apply plugin: "java"
apply plugin: "robovm"
configurations { natives }
dependencies {
compile project(":core")
compile "org.robovm:robovm-rt:${roboVMVersion}"
compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
}
}
project(":html") {
apply plugin: "gwt"
apply plugin: "war"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources"
}
}
project(":core") {
apply plugin: "java"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
compile 'net.dermetfan.libgdx-utils:libgdx-utils:0.7.0-SNAPSHOT'
compile 'net.dermetfan.libgdx-utils:libgdx-utils-box2d:0.7.0-SNAPSHOT' // Box2D module
}
}
tasks.eclipse.doLast {
delete ".project"
}
Ive made some progress
In my GdxDefinition.gwt.xml file i needed to add some <inheritis> tags:
<inherits name='libgdx-utils' />
<inherits name='libgdx-utils-box2d' />
That error is now fixed but now i have about 10000 more errors that are similar
Compiling module com.xx/xx/.GdxDefinition
Validating units:
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-gwt/1.4.1/6a7814ff9cedbe7e7576d9578258fa99939fd092/gdx-backend-gwt-1.4.1-sources.jar!/com/badlogic/gwtref/gen/ReflectionCacheSourceCreator.java'
[ERROR] Line 103: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Line 701: The method getAnnotation(Class<Retention>) is undefined for the type Class<capture#6-of ?>
[ERROR] Line 707: The method getCanonicalName() is undefined for the type Class<capture#7-of ?>
[ERROR] Line 709: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
[ERROR] Line 709: The method getDeclaredMethods() is undefined for the type Class<capture#8-of ?>
[ERROR] Line 713: The method getCanonicalName() is undefined for the type Class<capture#10-of ?>
[ERROR] Line 716: The method getCanonicalName() is undefined for the type Class<capture#12-of ?>
[ERROR] Line 724: No source code is available for type java.lang.reflect.InvocationTargetException; did you forget to inherit a required module?
[ERROR] Line 740: The method getCanonicalName() is undefined for the type Class
[ERROR] Line 744: The method getCanonicalName() is undefined for the type Class
[ERROR] Line 747: The method getCanonicalName() is undefined for the type Class<capture#21-of ?>
[ERROR] Line 748: No source code is available for type java.lang.reflect.Array; did you forget to inherit a required module?
[ERROR] Line 755: The method getCanonicalName() is undefined for the type Class<capture#23-of ?>
[ERROR] Line 786: The method getCanonicalName() is undefined for the type Class<capture#33-of ?>
[ERROR] Errors in 'file:/xx/xx/xx/screens/GameScreen.java'
[ERROR] Line 66: No source code is available for type net.dermetfan.gdx.graphics.g2d.Box2DSprite; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.6.0/8237d1bd37127188107388c8724be44a0e9f73ca/gwt-user-2.6.0.jar!/com/google/gwt/codegen/rebind/GwtCodeGenContext.java'
[ERROR] Line 52: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.6.0/8237d1bd37127188107388c8724be44a0e9f73ca/gwt-user-2.6.0.jar!/com/google/gwt/codegen/server/AbortablePrintWriter.java'
[ERROR] Line 26: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.6.0/8237d1bd37127188107388c8724be44a0e9f73ca/gwt-user-2.6.0.jar!/com/google/gwt/codegen/server/LoggingCodeGenContext.java'
[ERROR] Line 32: The method getAnonymousLogger() is undefined for the type Logger
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.6.0/8237d1bd37127188107388c8724be44a0e9f73ca/gwt-user-2.6.0.jar!/com/google/gwt/codegen/server/SafeHtmlStringGenerator.java'
[ERROR] Line 29: The method getCanonicalName() is undefined for the type Class<SafeHtmlBuilder>
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.6.0/8237d1bd37127188107388c8724be44a0e9f73ca/gwt-user-2.6.0.jar!/com/google/gwt/codegen/server/SourceWriterBase.java'
[ERROR] Line 63: The method format(String, Object[]) is undefined for the type String
[ERROR] Line 102: The method format(String, Object[]) is undefined for the type String
[ERROR] Line 116: The method format(String, Object[]) is undefined for the type String
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/DelegatingGeneratorContext.java'
[ERROR] Line 49: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/GeneratorContext.java'
[ERROR] Line 45: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/Linker.java'
[ERROR] Line 66: The method isAnnotationPresent(Class<Shardable>) is undefined for the type Class<capture#1-of ? extends Linker>
[ERROR] Line 71: The method getDeclaredField(String) is undefined for the type Class<capture#2-of ? extends Linker>
[ERROR] Line 73: No source code is available for type java.lang.NoSuchFieldException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/ServletContainerLauncher.java'
[ERROR] Line 117: No source code is available for type java.net.BindException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/StubGeneratorContext.java'
[ERROR] Line 40: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/TreeLogger.java'
[ERROR] Line 50: No source code is available for type java.net.URL; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/debug/JsoEval.java'
[ERROR] Line 133: No source code is available for type java.lang.reflect.InvocationTargetException; did you forget to inherit a required module?
[ERROR] Line 159: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
[ERROR] Line 159: The method getMethods() is undefined for the type Class<Object>
[ERROR] Line 175: No source code is available for type java.lang.ClassLoader; did you forget to inherit a required module?
[ERROR] Line 181: The method getMethods() is undefined for the type Class<capture#2-of ?>
[ERROR] Line 181: The method getMethods() is undefined for the type Class
[ERROR] Line 298: The method getClassLoader() is undefined for the type Class<capture#3-of ? extends Object>
[ERROR] Line 301: The method getClassLoader() is undefined for the type Class
[ERROR] Line 327: The method forName(String, boolean, ClassLoader) is undefined for the type Class
[ERROR] Line 339: The method forName(String, boolean, ClassLoader) is undefined for the type Class
[ERROR] Line 354: The method getMethods() is undefined for the type Class<Object>
[ERROR] Line 372: The method getMethod(String, Class[]) is undefined for the type Class
[ERROR] Line 392: The method getMethod(String, Class[]) is undefined for the type Class
[ERROR] Line 397: The method forName(String, boolean, ClassLoader) is undefined for the type Class
[ERROR] Line 436: The method isAssignableFrom(Class) is undefined for the type Class
[ERROR] Line 447: The method isAssignableFrom(Class) is undefined for the type Class
[ERROR] Line 463: No source code is available for type java.io.PrintWriter; did you forget to inherit a required module?
[ERROR] Line 464: The method printStackTrace(PrintStream) in the type Throwable is not applicable for the arguments (PrintWriter)
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/Artifact.java'
[ERROR] Line 49: The method cast(Artifact<capture#6-of ?>) is undefined for the type Class<C>
[ERROR] Line 76: The method currentThread() is undefined for the type Thread
[ERROR] Line 77: The method asSubclass(Class<Linker>) is undefined for the type Class<capture#11-of ?>
[ERROR] Line 99: The method isAnnotationPresent(Class<Transferable>) is undefined for the type Class<capture#14-of ? extends Artifact>
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/ArtifactSet.java'
[ERROR] Line 89: The method isInstance(Artifact<capture#8-of ?>) is undefined for the type Class<T>
[ERROR] Line 90: The method cast(Artifact<capture#9-of ?>) is undefined for the type Class<T>
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/GeneratedResource.java'
[ERROR] Line 45: The method currentThread() is undefined for the type Thread
[ERROR] Line 46: The method asSubclass(Class<Generator>) is undefined for the type Class<capture#7-of ?>
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/ModuleMetricsArtifact.java'
[ERROR] Line 36: No source code is available for type java.util.concurrent.atomic.AtomicInteger; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/SyntheticArtifact.java'
[ERROR] Line 74: No source code is available for type java.io.ObjectInputStream; did you forget to inherit a required module?
[ERROR] Line 80: No source code is available for type java.io.ObjectOutputStream; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java'
[ERROR] Line 37: No source code is available for type java.util.jar.JarFile; did you forget to inherit a required module?
[ERROR] Line 67: No source code is available for type java.util.jar.JarEntry; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/ResourceInjectionUtil.java'
[ERROR] Line 139: No source code is available for type java.net.URL; did you forget to inherit a required module?
[ERROR] Line 143: No source code is available for type java.net.MalformedURLException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.j ava'
[ERROR] Line 560: No source code is available for type java.net.URL; did you forget to inherit a required module?
[ERROR] Line 560: The method getResource(String) is undefined for the type Class<SelectionScriptLinker>
[ERROR] Line 567: No source code is available for type java.net.URLConnection; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/StandardGeneratedResource.java'
[ERROR] Line 80: No source code is available for type java.io.ObjectInputStream; did you forget to inherit a required module?
[ERROR] Line 86: No source code is available for type java.io.ObjectOutputStream; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/StandardLinkerContext.java'
[ERROR] Line 143: The method getAnnotation(Class<LinkerOrder>) is undefined for the type Class<capture#1-of ? extends Linker>
[ERROR] Line 165: The method getAnnotation(Class<LinkerOrder>) is undefined for the type Class<capture#6-of ? extends Linker>
[ERROR] Line 528: The method newInstance() is undefined for the type Class<capture#15-of ? extends Linker>
[ERROR] Line 529: No source code is available for type java.lang.InstantiationException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/StandardSelectionProperty.java'
[ERROR] Line 76: The method newInstance() is undefined for the type Class<capture#4-of ? extends PropertyProviderGenerator>
[ERROR] Line 79: No source code is available for type java.lang.InstantiationException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/linker/impl/StandardSymbolData.java'
[ERROR] Line 49: The method toURI() is undefined for the type File
[ERROR] Line 52: No source code is available for type java.net.URI; did you forget to inherit a required module?
[ERROR] Line 53: No source code is available for type java.net.URISyntaxException; did you forget to inherit a required module?
[ERROR] Line 158: No source code is available for type java.io.ObjectInputStream; did you forget to inherit a required module?
[ERROR] Line 172: No source code is available for type java.io.InvalidObjectException; did you forget to inherit a required module?
[ERROR] Line 192: No source code is available for type java.io.ObjectOutputStream; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/soyc/SourceMapRecorder.java'
[ERROR] Line 53: No source code is available for type com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGenerator; did you forget to inherit a required module?
[ERROR] Line 53: No source code is available for type com.google.gwt.thirdparty.debugging.sourcemap.SourceMapGeneratorFactory; did you forget to inherit a required module?
[ERROR] Line 53: No source code is available for type com.google.gwt.thirdparty.debugging.sourcemap.SourceMapFormat; did you forget to inherit a required module?
[ERROR] Line 77: No source code is available for type com.google.gwt.thirdparty.debugging.sourcemap.FilePosition; did you forget to inherit a required module?
[ERROR] Line 82: The method reset() is undefined for the type ByteArrayOutputStream
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/soyc/impl/DependencyRecorder.java'
[ERROR] Line 82: No source code is available for type java.util.zip.GZIPOutputStream; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/soyc/impl/MemberFactory.java'
[ERROR] Line 77: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
[ERROR] Line 77: The method getConstructor(Class<MemberFactory>, Class<capture#5-of ? super K>) is undefined for the type Class<V>
[ERROR] Line 85: No source code is available for type java.lang.InstantiationException; did you forget to inherit a required module?
[ERROR] Line 91: No source code is available for type java.lang.reflect.InvocationTargetException; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/private/var/root/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-dev/2.6.0/af3d9ad2fb8be30dc87fdcd6d9a373b2ab675802/gwt-dev-2.6.0.jar!/com/google/gwt/core/ext/soyc/impl/SizeMapRecorder.java'
[ERROR] Line 177: No source code is available for type java.util.zip.GZIPOutputStream; did you forget to inherit a required module?
And it just goes on and on like this..

GWT needs the source code to compile. Add this to the HTML project in your build script:
compile 'net.dermetfan.libgdx-utils:libgdx-utils:0.7.2:sources'
compile 'net.dermetfan.libgdx-utils:libgdx-utils-box2d:0.7.2:sources'

Related

GWT Validation-Api GA

My build.gradle
buildscript {
dependencies {
classpath "de.richsource.gradle.plugins:gwt-gradle-plugin:${gwtPluginVersion}"
classpath "org.akhikhl.gretty:gretty:${grettyPluginVersion}"
}
}
plugins {
// id "org.springframework.boot" version "1.5.9.RELEASE"
id "net.ltgt.apt" version "0.13"
}
apply plugin: 'war'
apply plugin: 'gwt'
apply plugin: "org.akhikhl.gretty"
sourceSets {
main.java.srcDir "src/main/java"
main.resources.srcDir "src/main/resources"
test.java.srcDir "src/test/java"
test.resources.srcDir "src/test/resources"
}
configurations {
'vaadin-client' {
exclude module: 'spring-boot-starter-web'
exclude module: 'spring-boot-vaadin'
}
}
//configurations {
// all*.exclude module: "spring-boot-starter-logging"
// all*.exclude module: "spring-boot-starter-logging"
// all*.exclude module: "spring-boot-starter-tomcat"
// gwtSdk.exclude group: 'org.eclipse.jetty'
//}
//configurations.gwt {
// resolutionStrategy {
// force 'javax.validation:validation-api:1.0.0.GA'
// }
//}
dependencies {
compile("org.apache.httpcomponents:httpclient:$httpClientVersion")
compile("org.apache.httpcomponents:httpmime:$httpMimeVersion")
compile("org.apache.httpcomponents:httpcore:$httpCoreVersion")
compile("javax.inject:javax.inject:$javaxInjectVersion")
compile("com.google.guava:guava-gwt:$guavaVersion")
compile("com.google.gwt.inject:gin:$ginVersion")
compile("com.google.gwt:gwt-user:$gwtVersion")
compile("com.google.gwt:gwt-dev:$gwtVersion")
// Needed for GWT compile and at runtime for RequestBuilder
// Specify two artifacts as workaround for GRADLE-1934
// compile('javax.validation:validation-api:1.0.0.GA') {
// artifact {
// name = 'validation-api'
// type = 'jar'
// }
// artifact {
// name = 'validation-api'
// type = 'jar'
// classifier = 'sources'
// }
// }
compile("com.gwtplatform:gwtp-mvp-client:$gwtpVersion")
compile("com.github.gwtmaterialdesign:gwt-material:$gwtMaterialVersion")
compile("com.github.gwtmaterialdesign:gwt-material-addins:$gwtMaterialVersion")
compile("com.github.gwtmaterialdesign:gwt-material-themes:$gwtMaterialVersion")
compile("com.github.gwtmaterialdesign:gwt-material-table:$gwtMaterialTableVersion")
compile("com.googlecode.gwt-charts:gwt-charts:$gwtChartsVersion")
compile("com.google.gwt.eventbinder:eventbinder:$eventBinderVersion")
compile("org.fusesource.restygwt:restygwt:$restyGwtVersion")
compile("org.realityforge.gwt.websockets:gwt-websockets:$gwtWebsocketsVersion")
// compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
testCompile("junit:junit:$junitVersion")
compile("org.projectlombok:lombok:$lombokVersion")
apt("org.projectlombok:lombok:$lombokVersion")
}
gwt {
gwtVersion = '2.8.2'
maxHeapSize = "4G"
minHeapSize = "2G";
modules "com.soft.DeviceManager"
devModules "com.soft.DeviceManager"
compiler {
strict = true;
disableClassMetadata = false;
disableCastChecking = false;
}
superDev {
launcherDir = new File('build/inplaceWebapp')
}
logLevel = "INFO"
}
gretty {
springBoot = true
springBootVersion = '1.5.9.RELEASE'
servletContainer = 'jetty9'
httpPort = 8081
fileLogEnabled = false
scanInterval = 5
managedClassReload = false
}
// execute with "-x compileGwt -x war"
task gwtSuperDevDir(type: Copy) {
into 'build/inplaceWebapp'
with war
}
// copy war file to $rootDir/install folder
def installDir = "$rootDir" + "/install/"
task installWar(type: Copy) {
delete installDir
def sourceFolder = "$buildDir" + "/libs"
from sourceFolder
into installDir
}
I have such error
Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
Compiling module com.soft.DeviceManager
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.ConstraintViolationImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java'
[ERROR] Line 31: The type ConstraintViolationImpl<T> must implement the inherited abstract method ConstraintViolation<T>.getExecutableReturnValue()
[ERROR] Line 31: The type ConstraintViolationImpl<T> must implement the inherited abstract method ConstraintViolation<T>.getExecutableParameters()
[ERROR] Line 31: The type ConstraintViolationImpl<T> must implement the inherited abstract method ConstraintViolation<T>.unwrap(Class<U>)
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.GwtValidatorContext'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/GwtValidatorContext.java'
[ERROR] Line 29: The type GwtValidatorContext must implement the inherited abstract method ValidatorContext.parameterNameProvider(ParameterNameProvider)
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.PropertyDescriptorImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java'
[ERROR] Line 31: The type PropertyDescriptorImpl must implement the inherited abstract method CascadableDescriptor.getGroupConversions()
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java'
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getMessageTemplate()
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getValidationAppliesTo()
Tracing compile failure path for type 'javax.validation.executable.ExecutableValidator'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java'
[ERROR] Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
[ERROR] Line 94: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.GwtBeanDescriptorImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java'
[ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstraintsForConstructor(Class<?>...)
[ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstrainedConstructors()
[ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstraintsForMethod(String, Class<?>...)
[ERROR] Line 38: The type GwtBeanDescriptorImpl<T> must implement the inherited abstract method BeanDescriptor.getConstrainedMethods(MethodType, MethodType...)
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java'
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getMessageTemplate()
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getValidationAppliesTo()
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java'
[ERROR] Line 31: The type PropertyDescriptorImpl must implement the inherited abstract method CascadableDescriptor.getGroupConversions()
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.ConstraintValidatorContextImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java'
[ERROR] Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addPropertyNode(String)
[ERROR] Line 39: The type ConstraintValidatorContextImpl<A,T> must implement the inherited abstract method ConstraintValidatorContext.unwrap(Class<T>)
[ERROR] Line 112: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderDefinedContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addPropertyNode(String)
[ERROR] Line 79: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderCustomizableContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addBeanNode()
[ERROR] Line 79: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderCustomizableContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addPropertyNode(String)
[ERROR] Line 112: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderDefinedContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addBeanNode()
[ERROR] Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addParameterNode(int)
[ERROR] Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addBeanNode()
[ERROR] Line 142: The type ConstraintValidatorContextImpl<A,T>.NodeContextBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addBeanNode()
[ERROR] Line 142: The type ConstraintValidatorContextImpl<A,T>.NodeContextBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addPropertyNode(String)
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.NodeImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/NodeImpl.java'
[ERROR] Line 25: The type NodeImpl must implement the inherited abstract method Path.Node.as(Class<T>)
[ERROR] Line 25: The type NodeImpl must implement the inherited abstract method Path.Node.getKind()
Tracing compile failure path for type 'com.google.gwt.validation.client.impl.ConstraintDescriptorImpl'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java'
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getMessageTemplate()
[ERROR] Line 35: The type ConstraintDescriptorImpl<T> must implement the inherited abstract method ConstraintDescriptor<T>.getValidationAppliesTo()
Tracing compile failure path for type 'javax.validation.ParameterNameProvider'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java'
[ERROR] Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
[ERROR] Line 44: No source code is available for type java.lang.reflect.Constructor<T>; did you forget to inherit a required module?
Tracing compile failure path for type 'com.google.gwt.validation.client.GwtConstraintValidatorFactory'
[ERROR] Errors in 'jar:file:/home/lesharb/.gradle/caches/modules-2/files-2.1/com.google.gwt/gwt-user/2.8.2/a2b9be2c996a658c4e009ba652a9c6a81c88a797/gwt-user-2.8.2.jar!/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java'
[ERROR] Line 26: The type GwtConstraintValidatorFactory must implement the inherited abstract method ConstraintValidatorFactory.releaseInstance(ConstraintValidator<?,?>)
[ERROR] Aborting compile due to errors in some input files
How to make Gradle use validation-api 1.0 GA? This dependence pulls Gretty. Completely eliminate Validation-Api 1.1.0 Final. Or you can make GWT use Validation-Api 1.0 GA
In the future I want to connect more Spring Boot will not there any difficulties?
Gwt + Spring Boot + Gradle did not find any examples on the Internet =(
gradle versions
ext {
slf4jVersion = "1.7.25"
logbackVersion = "1.2.3"
commonsLoggingVersion = "1.2"
guavaVersion = "23.0"
junitVersion = "4.12"
lombokVersion = "1.16.18"
httpclientVersion = "4.5.3"
httpmimeVersion = "4.5.3"
httpcoreVersion = "4.4.8"
gwtVersion = "2.8.0"
// gwtMaterialVersion = "2.1-SNAPSHOT"
// gwtMaterialAddinsVersion = "2.1-SNAPSHOT"
// gwtMaterialThemesVersion = "2.0"
// gwtMaterialTableVersion = "2.1-SNAPSHOT"
gwtMaterialVersion = "2.0"
gwtMaterialAddinsVersion = "2.0"
gwtMaterialThemesVersion = "2.0"
gwtMaterialTableVersion = "1.0-rc4"
ginVersion = "2.1.2"
gwtpVersion = "1.6"
restyGwtVersion = "2.2.2"
eventBinderVersion = "1.1.0"
gwtChartsVersion = "0.9.10"
gwtWebsocketsVersion = "1.0.4"
gwtCommonsLang3Version = "3.7-0"
gwtGradlePluginVersion = "0.6"
}
You didn't post your gradle.properties with the dependency versions nor did you post the output of gradle dependencies so hard to say definitely as that dependency can be pulled in from multiple sources.
But one way is forcing it via the resolution strategy like this:
project.configurations.all { config ->
config.resolutionStrategy.dependencySubstitution({
it.substitute(
it.module('javax.validation:validation-api')
).with(
it.module('javax.validation:validation-api:1.0.0.GA')
)
} as Action<DependencySubstitutions>)
}
same error i was getting so i have added two jars in class path
which comes in gwt 2.8.2 zip
validation-api-1.0.0.GA-sources.jar
gwt-servlet-deps.jar
apart from these u need to have all below jars in class path
gwt-validation.jar
gwt-user.jar
gwt-servlet.jar
validation-api.jar

GWT: How to use private tag for locale

I'm making an web app using GWT i18n. In this app, I would like to set up a custom property files to support differences from main language. For example I have an en_US locale, but also I would like to have en_US_x_custom support with some redefined property fields (specifications of BCP 47 says that I can use -x tag for private tag support).
Let me show what I have for now:
I have an interface
public interface TestMsg extends Messages {
String value();
}
and few property files:
TestMsg_en_US.properties
TestMsg_en_US_x_custom.properties
In app.gwt.xml, I have this lines
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.google.gwt.i18n.CldrLocales"/>
<extend-property name="locale" values="en_US"/>
<extend-property name="locale" values="en_US_x_custom"/>
However, the problem is that compilations fails with following messages:
[ERROR] Type com.google.gwt.i18n.client.impl.LocaleInfoImpl_en_US_X-custom could not be referenced because it previously failed to compile with errors:
Tracing compile failure path for type 'com.google.gwt.i18n.client.impl.LocaleInfoImpl_en_US_X-custom'
[ERROR] Errors in 'generated://74EF808C0035420F02374EADB97661B8/com/google/gwt/i18n/client/impl/LocaleInfoImpl_en_US_X-custom.java'
[ERROR] Line 10: Syntax error on token "-", < expected
[ERROR] Line 17: The method getLocaleQueryParam() of type LocaleInfoImpl_en_US_X must override or implement a supertype method
[ERROR] Line 10: The public type LocaleInfoImpl_en_US_X must be defined in its own file
[ERROR] Line 22: The method getDateTimeFormatInfo() of type LocaleInfoImpl_en_US_X must override or implement a supertype method
[ERROR] Line 10: Syntax error, insert "AdditionalBoundList1" to complete TypeParameter1
[ERROR] Line 27: The method getNumberConstants() of type LocaleInfoImpl_en_US_X must override or implement a supertype method
[ERROR] Line 12: The method getLocaleName() of type LocaleInfoImpl_en_US_X must override or implement a supertype method
[ERROR] Errors in 'com/google/gwt/i18n/client/LocaleInfo.java'
[ERROR] Line 37: Rebind result 'com.google.gwt.i18n.client.impl.LocaleInfoImpl_en_US_X-custom' could not be found
How do I get rid of this compilation error? How can I fix this problem?
You can ommit -x part of the locale. Then you can specify the locale as en_US_custom and have property file named TestMsg_en_US_CUSTOM.properties (notice capital letters).

how to use project/Build.scala generate java playproject?

I use playframework2.2: try to build a play support project.
in my Build.scala, I want to add play.Project.playJavaSetting:
val main = play.Project(appName, appVersion, appDependencies)
.settings(play.Project.playJavaSettings) //error here
.settings(
resolvers += "webjars" at "http://webjars.github.com/m2",
resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/release"
)
the error is:
[error] F:\git\play-example-form\project\Build.scala:19: overloaded method value
settings with alternatives:
[error] (ss: sbt.Def.Setting[_]*)sbt.Project <and>
[error] => Seq[sbt.Def.Setting[_]]
[error] cannot be applied to (Seq[sbt.Setting[_]])
[error] .settings(play.Project.playJavaSettings)
[error] ^
If I do not add playJavaSetting, it give me error about wrong collection apply, I mean:
val main = play.Project(appName, appVersion, appDependencies)
//.settings(play.Project.playJavaSettings)
and the error is:
[error] required: play.api.data.Form<StudentFormData>,scala.collection.immutab
le.Map<String,Object>,scala.collection.immutable.List<String>,scala.collection.i
mmutable.Map<String,Object>,scala.collection.immutable.Map<String,Object>
[error] found: play.data.Form<StudentFormData>,java.util.Map<String,Boolean>,j
ava.util.List<String>,java.util.Map<String,Boolean>,java.util.Map<String,Boolean
you can see the framework apply the scala.collection.immutable.List instead of play.util.List, If I really want to apply the java collections how to set the environment setting in Build.scala file?
You should change
.settings(play.Project.playJavaSettings)
to
.settings(play.Project.playJavaSettings: _*)
The settings method is declared as def settings(ss: Setting[_]*), which means it takes repeated parameters of type Setting[_]. The play.Project.playJavaSettings is of type Seq[Setting[_]]. To convert one to another Scala has a special type annotation.
If you are interested in details check 4.6.2 Repeated Parameters of The Scala Language Specification

google guava with GWT when performing pattern search and range search on collections2

I want to perform search operations on Google Gauva collections in the GWT application.
Those are working correctly in standalone application.But in GWT they are producing
runtime problems.I'm showing my sample code of onModuleLoad() of EntryPoint class.
Iset the buildpath for both guava-gwt-14.0.1.jar and guava-10.0.jar
public void onModuleLoad() {
List<String> sList=new ArrayList<String>();
sList.add("arun kumar");
sList.add("ashok kumar");
sList.add("ravi kumar");
sList.add("kiran kumar");
sList.add("rama");
sList.add("ram");
sList.add("rama krishna");
sList.add("phani");
sList.add("vikram");
sList.add("veeru");
sList.add("arjun");
sList.add("naresh");
//pattern matching
Collection<String> filterdNamesKumar=Collections2.filter(sList, Predicates.containsPattern("kumar"));
//starts with
Collection<String> filterdNamesRam=Collections2.filter(sList, Predicates.containsPattern("^ram"));
Collection<String> filterdNamesAr=Collections2.filter(sList, Predicates.containsPattern("^ar"));
System.out.println(filterdNamesAr.toString());
System.out.println(filterdNamesKumar.toString());
System.out.println(filterdNamesRam.toString());
Map<String,String> emps=new HashMap<String,String>();
emps.put("emp1","01/02/2013");
emps.put("emp2", "10/12/2013");
emps.put("emp3","20/11/2013");
emps.put("emp4", "25/09/2013");
emps.put("emp5", "15/12/2013");
emps.put("emp6", "20/08/2013");
emps.put("emp7", "02/02/2012");
for(String s:emps.keySet()){
String strDate=emps.get(s);
DateTimeFormat dateFormat=DateTimeFormat.getFormat("dd/MM/yyyy");
Date empDate=dateFormat.parse(strDate);
Date startDate=dateFormat.parse("01/11/2013");
Date endDate=dateFormat.parse("31/12/2013");
Range<Date> range=Ranges.closed(startDate, endDate);
boolean b=range.apply(empDate);
if(b){
Window.alert("date found between boundaries");
}
}
}
error:
[DEBUG] [googlegauva] - Validating newly compiled units
[TRACE] [googlegauva] - Finding entry point classes
[ERROR] [googlegauva] - Errors in 'file:/D:/arun/eclipse_Myna/GoogleGauva/src/com/arun/gauva/client/GoogleGauva.java'
[ERROR] [googlegauva] - Line 57: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Line 59: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Line 60: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Unable to find type 'com.arun.gauva.client.GoogleGauva'
[ERROR] [googlegauva] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [googlegauva] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [googlegauva] - Failed to load module 'googlegauva' from user agent 'Mozilla/5.0 (Windows NT 6.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1' at 127.0.0.1:52248
[DEBUG] [googlegauva] - Validating newly compiled units
[TRACE] [googlegauva] - Finding entry point classes
[ERROR] [googlegauva] - Errors in 'file:/D:/arun/eclipse_Myna/GoogleGauva/src/com/arun/gauva/client/GoogleGauva.java'
[ERROR] [googlegauva] - Line 57: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Line 59: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Line 60: The method containsPattern(String) is undefined for the type Predicates
[ERROR] [googlegauva] - Unable to find type 'com.arun.gauva.client.GoogleGauva'
[ERROR] [googlegauva] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [googlegauva] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [googlegauva] - Failed to load module 'googlegauva' from user agent 'Mozilla/5.0 (Windows NT 6.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1' at 127.0.0.1:52251
Patterns.containsPattern is annotated with #GwtIncompatible which means it's not in guava-gwt.
BTW, you should use the same version for guava-gwt and guava.

Play framework Documentation Task List Example Error

In Browser:
Compilation error
error: cannot find symbol
In /home/william/fmj/app/controllers/Application.java at line 28.
24 public static Result deleteTask(Long id) {
25 return TODO;
26 }
27
28 static Form<Task> taskForm = form(Task.class);
29
In Terminal:
[error] static Form<Task> taskForm = form(Task.class);
[error] ^
[error] symbol: class Task
[error] location: class Application
[error] /home/william/fmj/app/controllers/Application.java:16: error: cannot find symbol
[error] views.html.index.render(Task.all(), taskForm)
[error] ^
[error] symbol: variable Task
[error] location: class Application
[error] /home/william/fmj/app/controllers/Application.java:28: error: cannot find symbol
[error] static Form<Task> taskForm = form(Task.class);
[error] ^
[error] symbol: class Task
[error] location: class Application
[error] 3 errors
[error] {file:/home/william/fmj/}fmj/compile:compile: javac returned nonzero exit code
Any Help is greatly appreciated. I copy and pasted the code off of the tutorial (http://www.playframework.org/documentation/2.0.2/JavaTodoList) I'm not sure what's going wrong and I'd really like to learn this technology!
Apparently you didn't import Task model into your Application controller
You have 3 solutions:
Import each model manually:
import models.Task;
import exactly all models into your controller (it will be the best at the beginning, but...)
import models.*
Most recommended: Use some IDE which knows when and how to import required packages and classes and suggest you what should be imported (or not) (ie. IntelliJ Idea - just suggestion)
I got the same problem (error: cannot find symbol), sure that I have
import models.*;
but the error is still there.
I'm using eclipse 4.2, and it just suggest create new method form(Class<Task>

Categories

Resources