Something is wrong with your classpath somewhere. Are you using JUnitCreator? If so what does the script look like. Did you compile your code (not GWT compile, just regular javac).
See some of the other many threads here in this forum for examples (the end of this one has a working script, for example): http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/580d1a8f7c220a3b/. On Mar 3, 6:07 am, Ajay Garg <[email protected]> wrote: > Hi all. > > I am wanting to write testcases for code, that is purely client side > (i.e. the code is converted into javascript, and there are no RPC > calls), using JUnit. > > I have visited the link > > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > and am stuck at the last point. When running the cmd-script for hosted > mode, I get the stack trace : > > java.lang.NoSuchMethodError:org.apache.catalina.startup.Embedded.setDebug(I)V > at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.<init> > (EmbeddedTomcatServer.java:197) > at com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start > (EmbeddedTomcatServer.java:69) > at com.google.gwt.dev.GWTShell.startUp(GWTShell.java:778) > at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java: > 215) > at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:150) > at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java: > 219) > at junit.framework.TestCase.runBare(TestCase.java:130) > 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:120) > at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132) > at junit.framework.TestSuite.runTest(TestSuite.java:228) > at junit.framework.TestSuite.run(TestSuite.java:223) > at > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run > (JUnit3TestReference.java:130) > at org.eclipse.jdt.internal.junit.runner.TestExecution.run > (TestExecution.java:38) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > (RemoteTestRunner.java:460) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > (RemoteTestRunner.java:673) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run > (RemoteTestRunner.java:386) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main > (RemoteTestRunner.java:196) > > This comes, irrespective of using -noserver, or else. > > I will be greatly thankful if I get some light in this dark tunnel.. > > Looking forward to some enlightenment. > > Ajay --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
