hi, I moved from GWT1.5.3 to GWT1.6/1.7. I installed google plguin in eclipse (Europa) and I did the changes in the directory structure. When I try to compile the app. with the pguing (red suitcase) I get thsi error:
Loading module 'GemmaModule' [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at oracle.xml.jaxp.JXSAXParserFactory.setFeature (JXSAXParserFactory.java:128) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:307) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.Compiler.run(Compiler.java:156) at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger (CompileTaskRunner.java:82) at com.google.gwt.dev.Compiler.main(Compiler.java:131) In a post, I read that someone has put xercesImpl.jar inside jdk/jre/ lib/ext. Then error disappear and compilation is ok. The problem then is that when I deploy the application (EAR) in my application server, when I start the server I get an error caused by xercesImpl.jar inside jdk/jre/lib/ext. Apart from this, if I start the emulated host, without the xerces lib I get this error: ************************************************************************************************************* Unable to process 'file:/D:/branch_eclipse3.3_view/sources/GemmaWeb/ war/WEB-INF/web.xml' for servlet validation [DEBUG] Bootstrap link for command-line module 'GemmaModule' [TRACE] Loading module 'GemmaModule' Failure while parsing XML with this error: [ERROR] Failure while parsing XML org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/nonvalidating/load-external-dtd at oracle.xml.jaxp.JXSAXParserFactory.setFeature (JXSAXParserFactory.java:128) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse (ReflectiveParser.java:307) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100 (ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse (ReflectiveParser.java:385) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad (ModuleDefLoader.java:243) at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java: 155) at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule (ModuleDefLoader.java:269) at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath (ModuleDefLoader.java:127) at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java: 536) at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426) at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) ************************************************************************************************************* Placing the xerces lib in jdk/jre/lib/ext I go a bit further away: ************************************************************************************************************* Unable to process 'file:/D:/branch_eclipse3.3_view/sources/GemmaWeb/ war/WEB-INF/web.xml' for servlet validation [DEBUG] Bootstrap link for command-line module 'GemmaModule' Validating <servlet> tags for module 'GemmaModule' More info: file:/C:/eclipse/configuration/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131018/gwt- windows-1.7.0/doc/helpInfo/servletMappings.html Module declares 17 <servlet> declaration(s), but a valid 'web.xml' was not found at 'D:\branch_eclipse3.3_view\sources\GemmaWeb\war\WEB- INF\web.xml' More info: file:/C:/eclipse/configuration/eclipse/plugins/ com.google.gwt.eclipse.sdkbundle.win32_1.7.0.v200907131018/gwt- windows-1.7.0/doc/helpInfo/servletMappings.html Module declares 17 <servlet> declaration(s), but a valid 'web.xml' was not found at 'D:\branch_eclipse3.3_view\sources\GemmaWeb\war\WEB-INF \web.xml' The browser widget class could not be instantiated --> and the error shown is: [ERROR] The browser widget class could not be instantiated java.lang.RuntimeException: Unable to snatch field 'site' from class org.eclipse.swt.browser.Browser at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue (LowLevel.java:170) at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue (LowLevel.java:179) at com.google.gwt.dev.shell.ie.SwtOleGlue.injectBrowserScriptExternalObject (SwtOleGlue.java:102) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.<init> (BrowserWidgetIE6.java:297) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget (PlatformSpecific.java:107) at com.google.gwt.dev.SwtHostedModeBase.openNewBrowserWindow (SwtHostedModeBase.java:150) at com.google.gwt.dev.SwtHostedModeBase.launchStartupUrls (SwtHostedModeBase.java:133) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:402) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Caused by: java.lang.NoSuchFieldException: site at java.lang.Class.getDeclaredField(Class.java:1882) at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue (LowLevel.java:158) at com.google.gwt.dev.shell.LowLevel.snatchFieldObjectValue (LowLevel.java:179) at com.google.gwt.dev.shell.ie.SwtOleGlue.injectBrowserScriptExternalObject (SwtOleGlue.java:102) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.<init> (BrowserWidgetIE6.java:297) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.PlatformSpecific.createBrowserWidget (PlatformSpecific.java:107) at com.google.gwt.dev.SwtHostedModeBase.openNewBrowserWindow (SwtHostedModeBase.java:150) at com.google.gwt.dev.SwtHostedModeBase.launchStartupUrls (SwtHostedModeBase.java:133) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:402) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) ************************************************************************************************************* Why I need xercesImpl.jar in jdk ? then my OC4J server does not work ... Emulated host does not starts becasue it seems like there is an error in web.xml but web.xml is ok (it runs with GWT1.5). Any help ? Thanks !!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
