Hi there,

I am doing my first steps in GWT and I am fascinated by the
possibilities.

So far I have set up a small project that relies on java classes
supplied in a external library. This library is made available to my
project via maven (own repository).
I want to use Java classes from that library on the client side - so I
had to supply the source code within the jar and had to make sure,
those classes do not use code that's not translateable to Javascript.

So far so good. I finally got past the errors that no source code
could be found.. Now a new error arises during runtime of the web
application:


java.lang.ClassFormatError: Absent Code attribute in method that is
not native or abstract in class file javax/persistence/LockModeType
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    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:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:
463)
    at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:
725)
    at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:
681)
    at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:
474)
    at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:
640)
    at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:
655)
    at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:
801)
    at
com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMediator.java:
416)
    at
com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(TypeOracleMediatorFromSource.java:
54)
    at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:
164)
    at
com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:
82)
    at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
409)
    at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
299)
    at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
325)
    at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:105)
    at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
190)
    at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
    at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
    at java.lang.Thread.run(Thread.java:680)



I use Eclipse (Helios) and the Eclipse GWT-PLugin. The Web app is
hosted by the internal App Server. JDK is 1.6 on Mac OS X.
Any ideas on this?

-- 
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.

Reply via email to