-
12 Nov 2008 8:46 AM #1
Error while compiling mail Client
Error while compiling mail Client
Hi there,
When I try to compile the mail example I get the following error
Processing types in compilation unit: file:/D:/tools/gwt/gxt-1.1.1/samples/resources/src/com/ex
/gxt/samples/resources/client/model/CustomerBeanModel.java
Found type 'CustomerBeanModel'
Resolving annotation '@BEAN(com.extjs.gxt.samples.resources.client.model.Customer.class)'
[ERROR]
java.lang.ClassNotFoundException: com.extjs.gxt.samples.resources.client.model.Customer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral(TypeOracleMediator.java:
)
at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue(TypeOracleMedi
r.java:664)
at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance(TypeOracleMedia
.java:432)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.jav
26)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.ja
847)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediato
ava:1374)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:382)
at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:137)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
Compiling module com.extjs.gxt.samples.mail.Mail
Scanning for additional dependencies: file:/D:/tools/gwt/gxt-1.1.1/samples/mail/src/com/extjs/g
samples/mail/client/Mail.java
Computing all possible rebind results for 'com.extjs.gxt.samples.mail.client.MailService'
Rebinding com.extjs.gxt.samples.mail.client.MailService
Invoking <generate-with class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGen
tor'/>
Generating client proxy for remote service interface 'com.extjs.gxt.samples.mail.cl
t.MailService'
Analyzing 'com.extjs.gxt.samples.mail.client.MailService' for serializable types
Analyzing methods:
public abstract com.extjs.gxt.samples.resources.client.model.Folder getMai
lders(java.lang.String userId)
Return type: com.extjs.gxt.samples.resources.client.model.Folder
com.extjs.gxt.samples.resources.client.model.Folder
Verifying instantiability
com.extjs.gxt.samples.resources.client.model.Folder
Checking parameters of 'com.extjs.gxt.ui.client.data.BaseTr
odel<com.extjs.gxt.ui.client.data.TreeModel>'
Checking type argument 0 of type 'com.extjs.gxt.ui.clien
ata.BaseTreeModel<T>' because it is exposed as an array with a maximum dimension of 1 in this t
or one of its subtypes
com.extjs.gxt.ui.client.data.TreeModel[]
Analyzing component type:
com.extjs.gxt.ui.client.data.TreeModel
Verifying instantiability
com.extjs.gxt.samples.resources.client.mo
.Music
Analyzing the fields of type 'com.extj
xt.ui.client.data.BaseModelData' that qualify for serialization
protected com.extjs.gxt.ui.client.d
.RpcMap map
com.extjs.gxt.ui.client.data.Rpc
Verifying instantiability
com.extjs.gxt.ui.client.da
RpcMap
Analyzing the fields of
pe 'com.extjs.gxt.ui.client.data.RpcMap' that qualify for serialization
private java.util.Ma
ava.lang.String, java.lang.String> _map
java.util.Map<jav
ang.String, java.lang.String>
Verifying inst
iability
com.google.
.i18n.client.impl.ConstantMap
Analyzin
he fields of type 'com.google.gwt.i18n.client.impl.ConstantMap' that qualify for serialization
[WARN
ield 'private final com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSet<java.lang.St
g> keys' will not be serialized because it is final
Scanning for additional dependencies: jar:file:/D:/tools/gwt/gxt-1.1.1/gxt.jar!/com/extjs/gxt/u
lient/data/BeanModelLookup.java
Computing all possible rebind results for 'com.extjs.gxt.ui.client.data.BeanModelLookup'
Rebinding com.extjs.gxt.ui.client.data.BeanModelLookup
Invoking <generate-with class='com.extjs.gxt.ui.rebind.core.BeanModelGenerator'/>
[ERROR] Class com.extjs.gxt.ui.client.data.BeanModelLookup not found.
java.lang.NullPointerException
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.getMarkerBean(BeanModelGenerator.jav
69)
at com.extjs.gxt.ui.rebind.core.BeanModelGenerator.generate(BeanModelGenerator.java:53)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:51)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracl
ava:116)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.j
:61)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:166)
at com.google.gwt.dev.GWTCompiler$DistillerRebindPermutationOracle.getAllPossibleRebind
wers(GWTCompiler.java:195)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(Web
eCompilerFrontEnd.java:128)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process(AbstractCompiler.java:1
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:392)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:8
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile(AbstractCompiler.java:1
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400(AbstractCompiler.jav
0)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:493)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebMod
mpilerFrontEnd.java:73)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.<init>(JavaToJavaScriptCompiler.java
7)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:353)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
[ERROR] Errors in 'jar:file:/D:/tools/gwt/gxt-1.1.1/gxt.jar!/com/extjs/gxt/ui/client/data/BeanM
lLookup.java'
[ERROR] Line 17: Failed to resolve 'com.extjs.gxt.ui.client.data.BeanModelLookup' via defer
binding
[ERROR] Cannot proceed due to previous errors
[ERROR] Build failed
D:\tools\gwt\gxt-1.1.1\samples\mail>
-
27 Jan 2009 9:14 AM #2
did u find a solution for this?
-
27 Jan 2009 9:17 AM #3
The resources needs to be in your build pathjava.lang.ClassNotFoundException: com.extjs.gxt.samples.resources.client.model.Customer
-
27 Jan 2009 11:30 AM #4
what u mean with "resources" ?
the gxt.jar ?
-
24 Feb 2009 3:27 AM #5
I have the same problem and the only way to bypass it is to comment @BEAN line...
which resources should be in build path? I executed Mail-shell.cmd, it should run without any modification (GWT_HOME exluded, obviously)
-
25 Jan 2010 10:49 PM #6
Ant compile GXT
Ant compile GXT
File to compile @BEAN,
Espero que pueda ayudar a alguien, soluciona el error produccido por:
Failed to resolve 'com.extjs.gxt.ui.client.data.BeanModelLookup' via
deferred binding
Code:<?xml version="1.0" encoding="utf-8" ?> <project name="apgli" default="build" basedir="."> <!-- Configure path to GWT SDK --> <property name="gwt.sdk" location="/developer/API GWT/gwt-linux-1.6.4" /> <property name="war.path" location="${basedir}/docroot" /> <property name="src" value="${basedir}/docroot/WEB-INF/src"/> <path id="project.class.path"> <pathelement location="${war.path}/WEB-INF/classes"/> <pathelement location="${gwt.sdk}/gwt-user.jar"/> <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> <!-- Add any additional non-server libs (such as JUnit) --> <fileset dir="${war.path}/WEB-INF/lib" includes="**/*.jar"/> </path> <target name="libs" description="Copy libs to WEB-INF/lib"> <mkdir dir="${war.path}/WEB-INF/lib" /> <copy todir="${war.path}/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" /> <!-- Add any additional server libs that need to be copied --> </target> <target name="javac" depends="libs" description="Compile java source"> <mkdir dir="${war.path}/WEB-INF/classes"/> <javac srcdir="${src}" includes="**" encoding="utf-8" destdir="${war.path}/WEB-INF/classes" source="1.5" target="1.5" nowarn="true" debug="true" debuglevel="lines,vars,source"> <classpath refid="project.class.path"/> </javac> <copy todir="${war.path}/WEB-INF/classes"> <fileset dir="${src}" excludes="**/*.java"/> </copy> </target> <target name="gwtc" depends="javac" description="GWT compile to JavaScript"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"> <classpath> <pathelement location="${src}"/> <path refid="project.class.path"/> </classpath> <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> <jvmarg value="-Xmx256M"/> <arg value="-war" /> <arg file="${war.path}" /> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="org.iib.uam.gxt.APGLI"/> </java> </target> <target name="build" depends="gwtc" description="Build this project" /> <target name="${war.path}" depends="build" description="Create a war file"> <zip destfile="apgli.war" basedir="${war.path}"/> </target> <target name="clean" description="Cleans this project"> <delete dir="${war.path}/WEB-INF/classes" failonerror="false" /> <delete dir="${war.path}/apgli" failonerror="false" /> </target> </project>


Reply With Quote