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.



Le vendredi 14 février 2014 11:34:49 UTC+1, Thomas Broyer a écrit :
>
> 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)
>
> On Thursday, February 13, 2014 11:33:12 PM UTC+1, Brian Slesinsky wrote:
>>
>> 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
>>
>>
>>
>> On Thu, Feb 13, 2014 at 6:44 AM, Stephan Beutel <[email protected]>wrote:
>>
>>> I also tried it with the Eclipse 3.8 and end up at the same point. I'm 
>>> not able to run any GWTTestCase.
>>>
>>>
>>>
>>> Am Mittwoch, 12. Februar 2014 12:17:55 UTC+1 schrieb Stephan Beutel:
>>>
>>>> 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
>>>>
>>>  -- 
>>> 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 [email protected]
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/eclipse/dev/.classpath b/eclipse/dev/.classpath
index 17d1fee..06124d8 100644
--- a/eclipse/dev/.classpath
+++ b/eclipse/dev/.classpath
@@ -8,7 +8,8 @@
        <classpathentry kind="var" path="GWT_TOOLS/lib/apache/tapestry-util-text-4.0.2.jar" sourcepath="/GWT_TOOLS/lib/apache/tapestry-util-text-4.0.2-src.zip"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/eclipse/org.eclipse.jdt.core_3.8.3.v20130121-145325.jar" sourcepath="/GWT_TOOLS/lib/eclipse/org.eclipse.jdt.core.source_3.8.3.v20130121-145325.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/eclipse/jdtCompilerAdapter-3.8.3.v20130121-145325.jar"/>
-       <classpathentry kind="var" path="GWT_TOOLS/lib/jetty/jetty-6.1.11.jar" sourcepath="/GWT_TOOLS/lib/jetty/jetty-6.1.11-src.zip"/>
+       <classpathentry kind="var" path="GWT_TOOLS/lib/jetty/jetty-8.1.12.v20130726/jetty-8.1.12.v20130726.jar"/>
+        <classpathentry kind="var" path="GWT_TOOLS/lib/jetty/jetty-8.1.12.v20130726/servlet-api-3.0-NoMetaInf.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/jsr305/jsr305.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/junit/junit-4.8.2.jar" sourcepath="/GWT_TOOLS/lib/junit/junit-4.8.2-src.zip"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/tomcat/ant-launcher-1.6.5.jar"/>
@@ -18,8 +19,8 @@
        <classpathentry kind="var" path="GWT_TOOLS/lib/tomcat/jasper-compiler-1.0.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/tomcat/jasper-runtime-1.0.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/tomcat/jsp-api-2.0.jar"/>
-       <classpathentry kind="var" path="GWT_TOOLS/lib/htmlunit/htmlunit-2.9/htmlunit-core-js-2.9.jar" sourcepath="/GWT_TOOLS/lib/htmlunit/htmlunit-2.9/htmlunit-core-js-2.9-sources.jar"/>
-       <classpathentry kind="var" path="GWT_TOOLS/lib/htmlunit/htmlunit-2.9/htmlunit-2.9.jar" sourcepath="/GWT_TOOLS/lib/htmlunit/htmlunit-2.9/htmlunit-2.9-sources.jar"/>
+       <classpathentry kind="var" path="GWT_TOOLS/lib/htmlunit/htmlunit-2.13/htmlunit-core-js-2.13.jar"/>
+       <classpathentry kind="var" path="GWT_TOOLS/lib/htmlunit/htmlunit-2.13/htmlunit-2.13.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/protobuf/protobuf-2.5.0/protobuf-java-rebased-2.5.0.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/guava/guava-15.0/guava-15.0-rebased.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/jscomp/20131014/sourcemap-rebased.jar"/>
diff --git a/eclipse/user/.classpath b/eclipse/user/.classpath
index b168113..a2c7dfb 100644
--- a/eclipse/user/.classpath
+++ b/eclipse/user/.classpath
@@ -8,7 +8,6 @@
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/apache/tapestry-util-text-4.0.2.jar" sourcepath="/GWT_TOOLS/lib/apache/tapestry-util-text-4.0.2-src.zip"/>
        <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/junit/junit-4.8.2.jar" sourcepath="/GWT_TOOLS/lib/junit/junit-4.8.2-src.jar"/>
-       <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/jetty-8.1.12.v20130726/servlet-api-3.0-NoMetaInf.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/jsr305/jsr305.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/apache/http/httpclient-4.3.1.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/apache/http/httpcore-4.3.jar"/>
@@ -40,6 +39,7 @@
        <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA.jar" sourcepath="/GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar"/>
        <classpathentry exported="true" kind="var" path="GWT_TOOLS/lib/javax/validation/validation-api-1.0.0.GA-sources.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/jetty/jetty-8.1.12.v20130726/jetty-8.1.12.v20130726.jar" />
+        <classpathentry kind="var" path="GWT_TOOLS/lib/jetty/jetty-8.1.12.v20130726/servlet-api-3.0-NoMetaInf.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/hibernate/validator/hibernate-validator-4.1.0.Final.jar" sourcepath="/GWT_TOOLS/lib/hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar"/>
        <classpathentry kind="var" path="GWT_TOOLS/lib/apache/log4j/log4j-1.2.16.jar"/>

Reply via email to