Including into <project>.gwt.xml breaks it

18 views
Skip to first unread message

Talsman

unread,
Feb 16, 2010, 4:46:37 PM2/16/10
to gwt-log
Hi, I'm trying to incorporate gwt-log into my application but it seems
that just trying to add the import causes it to explode. I'm running
GWT 2.0 and trying to use GWT Log 3.0.0. The application utilizes
other GWT asynchronous functionality already without difficulty until
the gwt-log inheritance line is added to the module file
(VTD2.gwt.xml) as so:

----
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='vtd2'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>

<inherits name='com.google.gwt.user.theme.standard.Standard'/>

<!-- Other module inherits -->
<!-- GWT Logger. Levels: (TRACE, DEBUG, INFO, WARN, ERROR, FATAL,
OFF) -->
<inherits name='com.allen_sauer.gwt.log.gwt-log-DEBUG'/>

<!-- Specify the app entry point class. -->
<entry-point class='tmst.vtd2.client.VTD2'/>

<!-- Specify the paths for translatable code -->
<source path='client'/>
</module>
----

Upon trying to execute the web application in eclipse, it gives the
following error to the console:

Loading modules
tmst.vtd2.VTD2
Loading inherited module 'com.allen_sauer.gwt.log.gwt-log'
Loading inherited module 'com.allen_sauer.gwt.log.gwt-log-
OFF'
Loading inherited module 'com.allen_sauer.gwt.log.gwt-log-
common'
Loading inherited module 'com.allen_sauer.gwt.log.gwt-
log-impl'
[ERROR] Unexpected error while processing XML
java.lang.NoClassDefFoundError: com/google/gwt/core/ext/Generator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(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 com.google.gwt.dev.cfg.ModuleDefSchema
$ClassAttrCvt.convertToArg(ModuleDefSchema.java:706)
at
com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:
64)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
214)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:270)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
.... (Continues)


I've been looking all over for what might cause this behavior. Any
ideas? Any help would be greatly appreciated.

Thanks in advance.

Fred Sauer

unread,
Feb 17, 2010, 12:11:34 AM2/17/10
to gwt...@googlegroups.com
Talsman,

I haven't seen this one before. Do you have all the GWT jars in the classpath?

In particular look for this class:
  com/google/gwt/core/ext/Generator


--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.




--
Fred Sauer
Developer Advocate
G
ooglInc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com


driss farji

unread,
Dec 12, 2013, 4:38:23 AM12/12/13
to gwt...@googlegroups.com
I hav the same error , and i look to the class generator , but i dont unerstand what to do for not having this error ! please help , thunks 
Reply all
Reply to author
Forward
0 new messages