Hi everyone,
I have a question for experts.
I have a project that uses spring(latest)+hibernate4gwt 1.1.1 (ejb3
pojos)+gwt 1.5.3. I recently added hibernate4gwt module, done proper
configurations and it compiles successfully and runs as expected in
server mode + any browser.
Then, I have an Eclipse launch configuration for GWT development shell
with -noserver option in order to debug GUI. I added hibernate4gwt jar
file to this configuration, start it.
Now every time I run GWT development shell, I get different
"Compilation Unit" errors. These compilation units are always EJB3
pojos but each time, error changes. One time it complains about one
pojo one time another. These errors are always "not finding a
definition for an annotation". The problem is that, in each run,
complained annotation is different. I can not seem to find any logic
about the root cause of the error.
I doubt that this is a bug of GWT development shell, because command
line compilation has no errors.
Can any one give any suggestions about this weird problem? I can not
find any resource about this error because there is not well defined
error.
For example: I get this error one time:
Processing types in compilation unit: jar:file:/D:/yeniprojeler/
workspace/keys-lib/hibernate4gwt/hibernate4gwt-1.1.jar!/net/sf/
hibernate4gwt/emul/java5/ejb3/org/hibernate/annotations/
NamedNativeQuery.java
Found type 'NamedNativeQuery'
Found type 'NamedNativeQuery'
[ERROR]
java.lang.ClassNotFoundException:
org.hibernate.annotations.FlushModeType
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:753)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:680)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:976)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1044)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1434)
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.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:
477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:72)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
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.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
In the second run, I get this error:
Processing types in compilation unit: jar:file:/D:/yeniprojeler/
workspace/keys-lib/hibernate4gwt/hibernate4gwt-1.1.jar!/net/sf/
hibernate4gwt/emul/java5/ejb3/org/hibernate/annotations/MapKey.java
Found type 'MapKey'
[ERROR]
java.lang.ClassNotFoundException: javax.persistence.Column
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:753)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValueArray
(TypeOracleMediator.java:716)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:666)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:976)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1044)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1434)
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.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:
477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:252)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:72)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
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.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
In the third run, I get another error unrelated with the errors above.
What is your ideas, where shall I look first?
Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---