Decorator Class Not Found
pabloparada Oct 23, 2011 7:34 PMWhen I try to build my Errai + Maven project I got the following error:
Compiling module com.worm.wee.ui.WeeApp
Scanning for additional dependencies: jar:file:/C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-ioc/1.3.0.CR1/errai-ioc-1.3.0.CR1.jar!/org/jboss/errai/ioc/client/Container.java
Computing all possible rebind results for 'org.jboss.errai.ioc.client.api.Bootstrapper'
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Pablo/.m2/repository/org/slf4j/slf4j-log4j12/1.5.10/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Pablo/.m2/repository/org/jboss/weld/servlet/weld-servlet/1.1.3-SNAPSHOT/weld-servlet-1.1.3-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2011-10-23 21:32:46,737 INFO PackagingUtil - identifying deployment type for uri: /C:/Users/Pablo/java_dev/wee-workspace/wee-bom/wee-app/wee-ui/src/main/resources/
2011-10-23 21:32:46,738 INFO PackagingUtil - identifying deployment type for uri: /C:/Users/Pablo/java_dev/wee-workspace/wee-bom/wee-app/wee-ui/target/classes/
2011-10-23 21:32:46,739 INFO PackagingUtil - identifying deployment type for uri: /C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-ioc/2.0.pre0/errai-ioc-2.0.pre0.jar
2011-10-23 21:32:46,739 INFO PackagingUtil - identifying deployment type for uri: /C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-tools/2.0.pre0/errai-tools-2.0.pre0.jar
2011-10-23 21:32:46,739 INFO PackagingUtil - identifying deployment type for uri: /C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-cdi/1.2.3-SNAPSHOT/errai-cdi-1.2.3-SNAPSHOT.jar
2011-10-23 21:32:48,428 INFO Reflections - Reflections took 1587 ms to scan 5 urls, producing 109 keys and 249 values
2011-10-23 21:32:49,933 INFO Reflections - Reflections took 1505 ms to scan 5 urls, producing 109 keys and 249 values
Checking ErraiApp.properties for configured types ...
java.lang.NoClassDefFoundError: org/jboss/errai/ioc/rebind/ioc/Decorator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:144)
at org.reflections.ReflectionUtils.forNames(ReflectionUtils.java:157)
at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:358)
at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstrapGenerator.initializeProviders(IOCBootstrapGenerator.java:240)
at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstrapGenerator.generate(IOCBootstrapGenerator.java:136)
at org.jboss.errai.ioc.rebind.IOCGenerator.generateIOCBootstrapClass(IOCGenerator.java:134)
at org.jboss.errai.ioc.rebind.IOCGenerator.generate(IOCGenerator.java:102)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
Caused by: java.lang.ClassNotFoundException: org.jboss.errai.ioc.rebind.ioc.Decorator
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 49 more
[ERROR] Error generating extensions
java.lang.NoClassDefFoundError: org/jboss/errai/ioc/rebind/ioc/Decorator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:144)
at org.reflections.ReflectionUtils.forNames(ReflectionUtils.java:157)
at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:358)
at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstrapGenerator.initializeProviders(IOCBootstrapGenerator.java:240)
at org.jboss.errai.ioc.rebind.ioc.bootstrapper.IOCBootstrapGenerator.generate(IOCBootstrapGenerator.java:136)
at org.jboss.errai.ioc.rebind.IOCGenerator.generateIOCBootstrapClass(IOCGenerator.java:134)
at org.jboss.errai.ioc.rebind.IOCGenerator.generate(IOCGenerator.java:102)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
Caused by: java.lang.ClassNotFoundException: org.jboss.errai.ioc.rebind.ioc.Decorator
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 49 more
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.ioc.client.api.Bootstrapper
Invoking generator org.jboss.errai.ioc.rebind.IOCGenerator
will scan in package: null
Generating Extensions Bootstrapper...
[WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
[WARN] org.jboss.errai.ioc.client.api.BootstrapperImpl
[ERROR] Errors in 'jar:file:/C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-ioc/1.3.0.CR1/errai-ioc-1.3.0.CR1.jar!/org/jboss/errai/ioc/client/Container.java'
[ERROR] Line 31: Rebind result 'org.jboss.errai.ioc.client.api.BootstrapperImpl' could not be found
Scanning for additional dependencies: jar:file:/C:/Users/Pablo/.m2/repository/org/jboss/errai/errai-bus/2.0.pre0/errai-bus-2.0.pre0.jar!/org/jboss/errai/bus/client/framework/ClientMessageBusImpl.java
Computing all possible rebind results for 'org.jboss.errai.bus.client.ext.ExtensionsLoader'
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
org.jboss.errai.common.client.types.TypeDemarshallers.addDemarshaller(
org.jboss.errai.cdi.client.events.BusReadyEvent.class,
new org.jboss.errai.common.client.types.Demarshaller<org.jboss.errai.cdi.client.events.BusReadyEvent>() {
public org.jboss.errai.cdi.client.events.BusReadyEvent demarshall(com.google.gwt.json.client.JSONObject o, org.jboss.errai.common.client.types.DecodingContext decodingContext) {
Object v = null;
try {
final org.jboss.errai.cdi.client.events.BusReadyEvent n = new org.jboss.errai.cdi.client.events.BusReadyEvent();
return n;
}
catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("could not demarshall type: org.jboss.errai.cdi.client.events.BusReadyEvent; value=" + o, e);
}
}
}
);
org.jboss.errai.common.client.types.TypeMarshallers.addMarshaller(
org.jboss.errai.cdi.client.events.BusReadyEvent.class,
new org.jboss.errai.common.client.types.Marshaller<org.jboss.errai.cdi.client.events.BusReadyEvent>() {
public String marshall(org.jboss.errai.cdi.client.events.BusReadyEvent o, org.jboss.errai.common.client.types.EncodingContext ctx) {
if (ctx.isEncoded(o)) return "{\"__EncodedType\":\"org.jboss.errai.cdi.client.events.BusReadyEvent\",\"__ObjectID\":\"$" + ctx.markRef(o) + "\"}";
try {
ctx.markEncoded(o);
StringBuilder json = new StringBuilder("{\"__EncodedType\":\"org.jboss.errai.cdi.client.events.BusReadyEvent\",\"__ObjectID\":\"" + o.hashCode() + "\"");
return json.append("}").toString();
}
catch (Exception e) {
System.out.println("o=" + o + ";ctx=" + ctx);
e.printStackTrace();
return null;
}
}
}
);
Generated marshaller/demarshaller for: BusReadyEvent
Checking ErraiApp.properties for configured types ...
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
Rebinding org.jboss.errai.bus.client.ext.ExtensionsLoader
Invoking generator org.jboss.errai.bus.rebind.ExtensionProxyGenerator
Generating Extensions Bootstrapper...
[ERROR] Cannot proceed due to previous errors
Using errai-ioc 1.3.0.CR1 .