PDA

View Full Version : Getting Error while compiling sample application


visumagic
05-04-2008, 11:04 PM
HI I'm getting following error while compiling explorer sample
project.

I'm using gwt : gwt-windows-0.0.2030
And extgwt: extgwt-1.0-beta2

Please suggest me ,how to proceed ..

thanks
Raghunath

F:\JAVA JEE\FrameWorks\GWT 1.5\Addis\MyGWT new\extgwt-1.0-
beta2\gxt-1.0-beta2\samples\mail>Mail-compile
Analyzing source in module 'com.extjs.gxt.samples.mail.Mail'
[ERROR] Errors in 'jar:file:/F:/JAVA%20JEE/FrameWorks/GWT%201.5/
Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/gxt.jar!/com/extjs/
gxt/ui/client/core/El.java'
[ERROR] Line 1105: The method getParentElement() is undefined
for the type Element
[ERROR] Line 1117: The method insertBefore(Element, Element) is
undefined for the type Element
[ERROR] Errors in 'jar:file:/F:/JAVA%20JEE/FrameWorks/GWT%201.5/
Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/gxt.jar!/com/extjs/
gxt/ui/client/widget/tree/TreeItemUI.java'
[ERROR] Line 264: The method getFirstChildElement() is
undefined for the type Element
[ERROR] Line 265: The method getNextSiblingElement() is
undefined for the type Element
[ERROR] Line 266: The method getFirstChild() is undefined for
the type Element
[ERROR] Line 267: The method getNextSiblingElement() is
undefined for the type Element
[ERROR] Line 268: The method getFirstChild() is undefined for
the type Element
[ERROR] Line 269: The method getNextSibling() is undefined for
the type Element
[ERROR] Line 270: The method getFirstChild() is undefined for
the type Element
[ERROR] Line 271: The method getNextSiblingElement() is
undefined for the type Element
[ERROR] Line 272: The method getFirstChildElement() is
undefined for the type Element
[ERROR] Line 273: The method getFirstChildElement() is
undefined for the type Element
[ERROR] Errors in 'jar:file:/F:/JAVA%20JEE/FrameWorks/GWT%201.5/
Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/gxt.jar!/com/extjs/
gxt/ui/client/widget/treetable/TreeTableItemUI.java'
[ERROR] Line 217: The method getClassName() is undefined for
the type Element
[ERROR] Line 219: The method setClassName(String) is undefined
for the type Element
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/CellLabelProvider.java
Found type 'CellLabelProvider'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.ViewerCell<E> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.ViewerCell<E> binding:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.viewer.CellLabelProvider<E>
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/ModelCellLabelProvider.java
Found type 'ModelCellLabelProvider'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.ViewerCell<E> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.ViewerCell binding:
org.eclipse.jdt.internal.compiler.lookup.RawTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.viewer.ModelCellLabelProvider
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/ViewerSorter.java
Found type 'ViewerSorter'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer<CP> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer binding:
org.eclipse.jdt.internal.compiler.lookup.RawTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.viewer.ViewerSorter<T>
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/data/DataLoader.java
Found type 'DataLoader'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.data.BaseLoader<C> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.data.BaseLoader<C> binding:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.data.DataLoader<C>
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/ContentProvider.java
Found type 'ContentProvider'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer<CP> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer binding:
org.eclipse.jdt.internal.compiler.lookup.RawTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.viewer.ContentProvider<I>
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/StructuredViewer.java
Found type 'StructuredViewer'
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer<CP> binding:
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
[WARN] Unable to resolve type:
com.extjs.gxt.ui.client.viewer.Viewer<com.extjs.gxt.ui.client.viewer.StructuredContentProvider>
binding:
org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding
[WARN] Unexpectedly unable to fully resolve type
com.extjs.gxt.ui.client.viewer.StructuredViewer
Processing types in compilation unit: jar:file:/F:/JAVA%20JEE/
FrameWorks/GWT%201.5/Addis/MyGWT%20new/extgwt-1.0-beta2/gxt-1.0-beta2/
gxt.jar!/com/extjs/gxt/ui/client/viewer/ModelTreeContentProvider.java

darrellmeyer
05-04-2008, 11:27 PM
You are not using GWT 1.5 M2 or above.

visumagic
05-05-2008, 03:11 PM
Hi tried with GWT 1.5 M2 also. The error exists as it is.

Interesting point is, I removed all source files (.java) from gxt.jar
because
[ERROR] Errors in 'jar:file:/H:/My%20Dream/LO2/Boom-2/Lib-Only/lib/gxt.jar!/com/extjs/gxt/ui/client/widget/tree/TreeItemUI.java'

refered to source(.java) file inside jar.java file is not needed inside jar.

, then the error turned into

Style$LayoutRegion cannot be resolved.

plz let me know how to resolve this.

thanks
raghunath.

darrellmeyer
05-05-2008, 03:24 PM
Interesting point is, I removed all source files (.java) from gxt.jar

That is interesting as the .java file ARE required by GWT :).

visumagic
05-05-2008, 03:34 PM
I was using JDK 1.6 now ,even I tried with JDK 1.5,

the error remains same..

darrellmeyer
05-05-2008, 03:39 PM
I do not believe you are using GWT 1.5 M2. You may have it on your project's classpath, but I would guess it is not on your run config classpath. Keep in mind that the project classpath and run config classpath are not the same things.

visumagic
05-05-2008, 04:06 PM
Hi darrellmeyer,

thanks for ur support , my code is working fine.

the culprit is GWT Designer :)

thanks
raghu.

uneekvu
08-19-2008, 11:05 PM
Hey Visumagic,

So, how hard is it to compile the explorer example?
I have tried it few times and just not working.
Watched all the "help" videos, followed the steps, compiled the google "Hello World",
copied the exploer src directory over and the hell broke loose. :(

So, I have search to see if someone has posted the steps on page or as videocast, but so far no luck.

Can you post the steps you took?

I tried GWT-EXT with an ease, want to try this one as well, then decide which way I go.

My problem is "I guess" when I copy the example.src directory over as well as the resource directory. ....

thx