You can't use non-GWT libs in a GWT project*. GWT ships with a VERY limited JRE, and compiles Java source to JS source. The lib you are trying to use (1) uses parts of the JRE that GWT does not support, and (2) does not have the Java source code included in the jar file.
You will need to use the XMLParser that ships with GWT and roll your own writer/parser. * Only applies to code run in the browser. Rob On Tue, Oct 21, 2008 at 2:11 PM, rookie <[EMAIL PROTECTED]> wrote: > > Hi, > I'm unable to compile the GWT project with the JAXB2.1.7 generated > java classes. I've added the JAXB jars in the compile script. > here is the compile script > > @java -Xmx256M -cp "%~dp0\src;%~dp0/bin;C:/gwt-windows-1.5.0/gwt- > user.jar;C:/gwt-windows-1.5.0/gwt-dev-windows.jar;Q:/project/Eclipse- > RCP/jaxb217/lib/jaxb-impl.jar;Q:/project/Eclipse-RCP/jaxb217/lib/jaxb- > api.jar;Q:/project/Eclipse-RCP/jaxb217/lib/jaxb1-impl.jar;Q:/project/ > Eclipse-RCP/jaxb217/lib/jsr173_1.0_api.jar;Q:/project/Eclipse-RCP/ > jaxb217/lib/activation.jar;Q:/project/Eclipse-RCP/jaxb217/lib/ > j2ee.jar;Q:/project/Eclipse-RCP/jaxb217/lib/jaxb-xjc.jar" > com.google.gwt.dev.GWTCompiler -out "%~dp0/www" %* > com.sample.Samplegwt > > > > [ERROR] Errors in 'file:/Q:/temp/Samplegwt/src/com/sample/client/xml/ > ObjectFactory.java' > [ERROR] Line 34: No source code is available for type > javax.xml.namespace.QName; did you forget to inherit a required > module? > [ERROR] Line 160: No source code is available for type > javax.xml.bind.JAXBElement<T>; did you forget to inherit arequired > module? > > Please help me. > > Thanks > Suresh > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
