Hi! I have some trouble with my application. It should be a Semantic Annotator Assistent that receive as input a
description HTML of a Web API. To upload this description i did a RPC and so i created two classes client-side (DataLoadingService and DataLoadingServiceAsync) and one class server-side (named DataLoadingServiceImpl). When i compile i have these error: - Rebinding com.gabrielebonzi.RSSReader.client.DataLoadingService Checking rule <generate-with class='com.extjs.gxt.ui.rebind.core.BeanModelGenerator'/> Unable to find type 'com.gabrielebonzi.RSSReader.client.DataLoadingService' Hint: Previous compiler errors may have made this type unavailable Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly - Deferred binding failed for 'com.gabrielebonzi.RSSReader.client.DataLoadingService'; expect subsequent failures Unable to load module entry point class com.gabrielebonzi.RSSReader.client.RSSReader (see associated exception for details) java.lang.RuntimeException: Deferred binding failed for 'com.gabrielebonzi.RSSReader.client.DataLoadingService' (did you forget to inherit a required module?) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gabrielebonzi.RSSReader.client.components.SemanticMainPanel.<init>(SemanticMainPanel.java: 66) at com.gabrielebonzi.RSSReader.client.RSSReader.onModuleLoad(RSSReader.java: 60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 193) 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(Unknown Source) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java: 595) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 455) at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49) at com.google.gwt.core.client.GWT.create(GWT.java:98) at com.gabrielebonzi.RSSReader.client.components.SemanticMainPanel.<init>(SemanticMainPanel.java: 66) at com.gabrielebonzi.RSSReader.client.RSSReader.onModuleLoad(RSSReader.java: 60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 193) 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(Unknown Source) - Failed to load module 'rssreader' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.18) Gecko/20110614 Firefox/ 3.6.18' at 127.0.0.1:50561 This is the code: CLIENT-SIDE 1) DataLoadingService package com.gabrielebonzi.RSSReader.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath("dataloading") public interface DataLoadingService extends RemoteService { Doc dataLoading(String path); } 2) DataLoadingServiceAync package com.gabrielebonzi.RSSReader.client; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.xml.client.Document; public interface DataLoadingServiceAsync { void dataLoading(String path, AsyncCallback<Doc> callback); } SERVER-SIDE 3) DataLoadingServiceImpl package com.gabrielebonzi.RSSReader.server; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.SAXException; import com.gabrielebonzi.RSSReader.client.DataLoadingService; import com.gabrielebonzi.RSSReader.client.Doc; import com.google.gwt.dom.client.Element; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.google.gwt.xml.client.Document; public class DataLoadingServiceImpl extends RemoteServiceServlet implements DataLoadingService { private static final long serialVersionUID = 1L; Doc doc; public Doc dataLoading(String path) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = null; try { builder = factory.newDocumentBuilder(); } catch (ParserConfigurationException e) { e.printStackTrace(); } try { doc = (Doc) builder.parse(path); } catch (SAXException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } Element root = (Element) doc.getDocumentElement(); System.out.println("Stampa nodo radice albero xml: "+root.getNodeName()); return doc; } } And i use these methods to call the created classes: public void goURL(String path) throws RequestException, IOException { setPath(path); String url = URL.encode(path); dataSvc = GWT.create(DataLoadingService.class); dataSvc.dataLoading(path, callback); ServiceDefTarget endpoint = (ServiceDefTarget) dataSvc; endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "dataloading"); //System.out.println("Testo: "+doc doc.get.getTextContent()); //htmlItem.addText(doc.getTextContent()); layout(); Window.confirm("Hai inserito '"+path+"'. E' corretto?"); } AsyncCallback <Doc> callback = new AsyncCallback<Doc>() { public void onFailure(Throwable caught) { System.out.println("Failed: "+caught.getMessage()); } public void onSuccess(Doc result) { // htmlItem.addText(result.get); System.out.println("OK! Entraton in onSuccess!"); } }; -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.