Not able to run GWTTestCase

280 views
Skip to first unread message

Stephan Beutel

unread,
Feb 12, 2014, 6:17:55 AM2/12/14
to google-web-tool...@googlegroups.com
Hello,

I set up my Eclipse to contribute to GWT and worked through the Readme to set up an Eclipse workspace.
All errors are gone in my Eclipse (Springsource Toolsuite) now, but I'm not able to run any GWTTestCase from within my Eclipse.

The Ant build runs successfully.

When trying to run any GWTTestCase I get this error:

java.lang.Error: Unresolved compilation problems: 
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
The import org.eclipse.jetty cannot be resolved
AbstractLifeCycle cannot be resolved to a type
RequestLog cannot be resolved to a type
Request cannot be resolved to a type
Response cannot be resolved to a type
AbstractHttpConnection cannot be resolved to a type
HttpFields cannot be resolved to a type
Field cannot be resolved to a type
Logger cannot be resolved to a type
Logger cannot be resolved to a type
Server cannot be resolved to a type
WebAppContext cannot be resolved to a type
Server cannot be resolved to a type
WebAppContext cannot be resolved to a type
Server cannot be resolved to a type
WebAppContext cannot be resolved to a type
Log cannot be resolved
WebAppContext cannot be resolved to a type
Server cannot be resolved to a type
WebAppContext cannot be resolved to a type
Server cannot be resolved to a type
Log cannot be resolved
Log cannot be resolved
Server cannot be resolved to a type
Server cannot be resolved to a type
Log cannot be resolved
WebAppContext cannot be resolved to a type
WebAppClassLoader cannot be resolved to a type
The method findResource(String) of type JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension must override or implement a supertype method
WebAppClassLoader cannot be resolved to a type
WebAppClassLoader cannot be resolved to a type
The method findClass(String) of type JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension must override or implement a supertype method
WebAppClassLoader cannot be resolved to a type
The method isServerClass(String) is undefined for the type JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension
WebAppClassLoader cannot be resolved to a type
The method addClassPath(String) is undefined for the type JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension
The method getInitParams() is undefined for the type JettyLauncher.WebAppContextWithReload
The method setParentLoaderPriority(boolean) is undefined for the type JettyLauncher.WebAppContextWithReload
The method isSystemClass(String) of type JettyLauncher.WebAppContextWithReload must override or implement a supertype method
WebAppContext cannot be resolved to a type
The method doStart() of type JettyLauncher.WebAppContextWithReload must override or implement a supertype method
The method setClassLoader(JettyLauncher.WebAppContextWithReload.WebAppClassLoaderExtension) is undefined for the type JettyLauncher.WebAppContextWithReload
WebAppContext cannot be resolved to a type
The method doStop() of type JettyLauncher.WebAppContextWithReload must override or implement a supertype method
WebAppContext cannot be resolved to a type
The method getClassLoader() is undefined for the type JettyLauncher.WebAppContextWithReload
The method setClassLoader(null) is undefined for the type JettyLauncher.WebAppContextWithReload
AbstractConnector cannot be resolved to a type
Log cannot be resolved
Server cannot be resolved to a type
Server cannot be resolved to a type
AbstractConnector cannot be resolved to a type
The method getConnector(TreeLogger) from the type JettyLauncher refers to the missing type AbstractConnector
WebAppContext cannot be resolved to a type
The method createWebAppContext(TreeLogger, File) from the type JettyLauncher refers to the missing type WebAppContext
RequestLogHandler cannot be resolved to a type
RequestLogHandler cannot be resolved to a type
Log cannot be resolved
Server cannot be resolved to a type
WebAppContext cannot be resolved to a type
WebAppContext cannot be resolved to a type
AbstractConnector cannot be resolved to a type
SslSocketConnector cannot be resolved to a type
SslSocketConnector cannot be resolved to a type
SelectChannelConnector cannot be resolved to a type

at com.google.gwt.dev.shell.jetty.JettyLauncher.<init>(JettyLauncher.java:27)
at com.google.gwt.junit.JUnitShell$MyJettyLauncher.<init>(JUnitShell.java:580)
at com.google.gwt.junit.JUnitShell$MyJettyLauncher.<init>(JUnitShell.java:580)
at com.google.gwt.junit.JUnitShell$ArgProcessor.<init>(JUnitShell.java:269)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:717)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:705)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
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:247)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
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)


Any hints how to solve this problem?
I checked the readme multiple times if I missed some setting, but I cannot find anything.

Thanks a lot.

Stephan

Stephan Beutel

unread,
Feb 13, 2014, 9:44:10 AM2/13/14
to google-web-tool...@googlegroups.com
I also tried it with the Eclipse 3.8 and end up at the same point. I'm not able to run any GWTTestCase.

Brian Slesinsky

unread,
Feb 13, 2014, 5:33:12 PM2/13/14
to GWTcontrib
I'm not an Eclipse user, but we did upgrade to Jetty 8.1 in 2.6 and its package changed. If you put the new version of Jetty in your classpath that will probably fix it.

- Brian



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thomas Broyer

unread,
Feb 14, 2014, 5:34:49 AM2/14/14
to google-web-tool...@googlegroups.com
On the Eclipse side, I'd check whether the Jetty dependency is "exported" by the gwt-dev project. If it's not, then it won't be on the classpath of tests from the gwt-user project.
It might be that we failed to properly update the Eclipse config files when updating Jetty (it does work for me, but I'm using a very old Eclipse workspace, and maybe Eclipse caches those things somewhere)
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.

Benoit Sautel

unread,
Feb 19, 2014, 12:02:30 PM2/19/14
to google-web-tool...@googlegroups.com
I had many issues to run some unit tests in my workspace using Eclipse.

I eventually succeeded to run the one I wanted to and I had to do the some changes in Eclipse classpath configuration files. I attached the patch associated to these changes.

It enabled me to run one test, I did not try to run all tests.
patch
Reply all
Reply to author
Forward
0 new messages