Looks like the value returned from getModuleName isn't valid. It should return a fully-qualified module name, for example "com.example.MyModule".
Could you paste your .gwt.xml and the getModuleName implementation from your GWTTestCase subclass? Also, which package does the .gwt.xml file live in? jason On Sat, Feb 13, 2010 at 6:28 PM, sampablokuper <[email protected] > wrote: > I'll preface the following by saying that I'm inexperienced with GWT > and only mildly familiar with Eclipse and with Java programming in > general, so in your replies, please assume very little knowledge on my > part. Thank you. > > I have a GWT project here, forked from the StockWatcher application in > the GWT Getting Started tutorial: > http://code.google.com/p/interpreader-core/source/browse/?r=11#svn/trunk > > When, in Eclipse, I right-click InterpreaderTest.java and select Run > As > GWT JUnit Test, my test fails on testSimple with the following > traces shown in Eclipse's JUnit perspective: > > com.google.gwt.core.ext.UnableToCompleteException: (see previous log > entries) > at > com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java: > 239) > at > com.google.gwt.dev.cfg.ModuleDefLoader$2.load(ModuleDefLoader.java: > 187) > at > com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java: > 283) > at > > com.google.gwt.dev.cfg.ModuleDefLoader.createSyntheticModule(ModuleDefLoader.java: > 95) > at > > com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl2(CompileStrategy.java: > 169) > at > > com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl(CompileStrategy.java: > 116) > at > > com.google.gwt.junit.SimpleCompileStrategy.maybeCompileModule(CompileStrategy.java: > 328) > at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1135) > at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1104) > at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:523) > at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java: > 406) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:282) > at junit.framework.TestSuite.runTest(TestSuite.java:232) > at junit.framework.TestSuite.run(TestSuite.java:227) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java: > 79) > at > > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java: > 46) > at > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: > 38) > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: > 467) > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: > 683) > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: > 390) > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: > 197) > > and the following messages in Eclipse's Console perspective: > > Starting HTTP on port 0 > HTTP listening on port 55245 > Loading inherited module 'interpreader.client' > [ERROR] Unable to find 'interpreader/client.gwt.xml' on your > classpath; could be a typo, or maybe you forgot to include a classpath > entry for source? > > > However, I don't think there should be an 'interpreader/ > client.gwt.xml' file, since if I'm not mistaken, at no point in the > tutorial was a 'stockwatcher/client.gwt.xml' file created. > > So my question is: have I done something wrong to make this test fail > (and if so, what, and how should I correct my mistake?), and if not, > should I file a bug? > > Many thanks in advance for your help. > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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.
