PDA

View Full Version : ClassNotFoundException: com.extjs.gxt.samples.resources.client.model.Customer



phamtranquocviet
27 Jun 2009, 4:24 PM
Hi,

Customer.java is in the same folder as CustomerBeanModel.java. Why does Eclipse not see it? I tried all the fixes people suggested for this error in the forum, but none works.

I included everything it needs in the project and Run configuration (See snapshots of my "Package Explorer" and "Run Configuration"). Well, it's too big to upload even after zipping.


Please help.

[DEBUG] Loading an instance of module 'registration'
[DEBUG] Refreshing module from source
[DEBUG] Refreshing TypeOracle
[SPAM] Processing types in compilation unit: file:/D:/My%20Libraries/gxt-2.0-rc1/gxt-2.0-rc1/samples/resources/src/com/extjs/gxt/samples/resources/client/model/CustomerBeanModel.java
[SPAM] Found type 'CustomerBeanModel'
[SPAM] 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:763)
at com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue(TypeOracleMediator.java:674)
at com.google.gwt.dev.javac.TypeOracleMediator.createAnnotationInstance(TypeOracleMediator.java:442)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:836)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:857)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java:1384)
at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:389)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:417)
at com.google.gwt.dev.javac.CompilationState.refresh(CompilationState.java:179)
at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:264)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
at com.google.gwt.dev.SwtHostedModeBase$SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:66)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:73)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:161)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)