Hi,
I'm using GWT 2.4. I'm trying to write a GWTTestCase, but getting a
404 when trying to contact a servlet. How do I figure out if the
servlet is initializing properly or if there are errors? I have
declared this in my module file ...
<servlet path="/xmlhelperservice"
class="com.myco.clearing.product.server.XmlHelperServiceImpl" />
In my test case, I try and set it up like so ...
public class XmlToHtmlServiceTest extends GWTTestCase {
private XmlHelperServiceAsync xmlHelperService;
@Override
public String getModuleName() {
return "com.myco.clearing.product.ProductPlusJUnit";
}
public void gwtSetUp() {
xmlToHtmlService = new XmlToHtmlServiceImpl();
xmlHelperService = GWT.create(XmlHelperService.class);
final ServiceDefTarget target = (ServiceDefTarget)
xmlHelperService;
final String url = GWT.getModuleBaseURL() + "xmlhelperservice";
target.setServiceEntryPoint(url);
} // gwtSetUp
public void testDocument() throws Exception {
...
xmlHelperService.getNode("doc.xml", new AsyncCallback<Node>() {
but the call always results in a 404. I have no idea what is going
wrong and am grateful for troubleshooting tips. - Dave
--
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.