GWT TestCase

8 views
Skip to first unread message

Ben Tatham

unread,
Feb 26, 2007, 4:30:22 PM2/26/07
to gwt-...@googlegroups.com
Is the gwt dev jar supposed to be added as a dependency with this plugin? 

I want to run Junit test cases, so how do manually add the development jar (like gwt-dev-windows-1.3.3.jar as a dependency (test scope). 

-Ben


--
***************************************
  Check our website for pictures
            of Abigail Etta
       http://www.tatham.ca
***************************************

Robert "kebernet" Cooper

unread,
Feb 26, 2007, 4:32:57 PM2/26/07
to gwt-...@googlegroups.com
You shouldn't have the dev jar as a dependency, but you should set dev as a dep with a "provided" scope.
--
:Robert "kebernet" Cooper
::kebe...@gmail.com
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8

Ben Tatham

unread,
Feb 26, 2007, 4:37:10 PM2/26/07
to gwt-...@googlegroups.com
whats the groupId/artifactId?  I don't see it in your mavenrep

Robert "kebernet" Cooper

unread,
Feb 26, 2007, 7:18:34 PM2/26/07
to gwt-...@googlegroups.com
Ugh. Sorry, I was answering the wrong question. You don't need the dev jar at all. You need the *user* jar as a "provided", the *servlet* jar as "provided" and the dev jar will be used out of the specified gwt install directory. Sorry for the confusion.

Ben Tatham

unread,
Feb 27, 2007, 9:29:55 AM2/27/07
to gwt-...@googlegroups.com
Ok.  I think the problem is being misunderstood.  I am trying to run a Junit GWTTestCase.  I get the stack trace shown below.  I also pasted the relevant section of my test case.

- I think user and servlet should NOT be provided...I need them in my runtime to run GWT.
- I think I do need dev in my test scope, as JUnitShell relies on it.

Any ideas?  Has no one else tried to run gwt junit test cases yet?

-Ben

-------------------------------------------------------------------------------
Test set: ca.nanometrics.apollo.server.ui.client.AboutPageTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.109 sec <<< FAILURE!
testStuff(ca.nanometrics.apollo.server.ui.client.AboutPageTest)  Time elapsed: 0.016 sec  <<< ERROR!
java.lang.NoClassDefFoundError: com/google/gwt/dev/GWTShell
    at java.lang.ClassLoader.defineClass1 (Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java :260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass (URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass (IsolatedClassLoader.java:100)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:177)
    at junit.framework.TestCase.runBare (TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:114)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run (TestSuite.java:203)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet (AbstractDirectoryTestSuite.java:135)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at org.apache.maven.surefire.booter.SurefireBooter.main (SurefireBooter.java:747)

I don't think my code matters, because the missing class happens well before it gets to here in the stack trace, but just in case...

public class AboutPageTest extends GWTTestCase
{

  public String getModuleName()
  {
    return " ca.nanometrics.apollo.server.ui.Apollo";
  }

  public void testStuff()
  {
    SideBarPageInfo pageInfo = AboutPage.init();      // AboutPage extends SideBarPage
    SideBarPage page = pageInfo.createInstance ();  // SideBarPage extends Composite
    assertEquals("About", pageInfo.getName());
    assertNotNull(page.getElement());

Robert "kebernet" Cooper

unread,
Feb 27, 2007, 9:39:51 AM2/27/07
to gwt-...@googlegroups.com
On 2/27/07, Ben Tatham <bent...@gmail.com> wrote:
Ok.  I think the problem is being misunderstood.  I am trying to run a Junit GWTTestCase.  I get the stack trace shown below.  I also pasted the relevant section of my test case.

- I think user and servlet should NOT be provided...I need them in my runtime to run GWT.

User you do not need at runtime. Servlet is the only runtime requirement.

- I think I do need dev in my test scope, as JUnitShell relies on it.

This is true. Honestly I hadn't tried using GWTTestCase in m2 yet and hadn't run into this. The problem here is I don't really want to put a dev.jar in the repo because they are platform specific, and you shouldnt have the platform spec in your pom file. I will see what I can do about this this week.

Ben Tatham

unread,
Feb 27, 2007, 9:44:15 AM2/27/07
to gwt-...@googlegroups.com
Fantastic.  Thanks. 

Perhaps one way to handle it is to have a settings.xml property that defines the platform name, and then the pom can reference that property, and put it in test scope.  Of course, this solution requires the platform specific dev jars in the repo.  But thats okay...one artifactId per platform.  In the meantime, I will setup my company to work with this solution so we can get going...

-Ben

Ben Tatham

unread,
Feb 27, 2007, 12:05:34 PM2/27/07
to gwt-...@googlegroups.com
Note that there are problems with my solution in windows because of the spaces in c:\Documents and Settings...


-------------------------------------------------------------------------------
Test set: ca.nanometrics.apollo.server.ui.client.AboutPageTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.516 sec <<< FAILURE!
testStuff(ca.nanometrics.apollo.server.ui.client.AboutPageTest )  Time elapsed: 0.39 sec  <<< ERROR!
java.lang.ExceptionInInitializerError
    at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:177)
    at junit.framework.TestCase.runBare(TestCase.java :127)

    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run (TestCase.java:118)

    at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:114)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet (AbstractDirectoryTestSuite.java:135)
    at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java :25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at org.apache.maven.surefire.booter.SurefireBooter.main (SurefireBooter.java:747)
Caused by: java.lang.IllegalArgumentException
    at java.net.URI.create(URI.java:842)
    at com.google.gwt.util.tools.Utility.computeInstallationPath(Utility.java:287)
    at com.google.gwt.util.tools.Utility.getInstallPath (Utility.java:223)
    at com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55)
    ... 23 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/ben/.m2/repository/com/google/gwt/gwt-dev-windows/1.3.3/gwt- dev-windows-1.3.3.jar
    at java.net.URI$Parser.fail(URI.java:2809)
    at java.net.URI$Parser.checkChars(URI.java:2982)
    at java.net.URI$Parser.parseHierarchical(URI.java:3066)
    at java.net.URI$Parser.parse (URI.java:3014)
    at java.net.URI.<init>(URI.java:578)
    at java.net.URI.create(URI.java:840)
    ... 26 more


On 2/27/07, Ben Tatham <tat...@ieee.org> wrote:
Ok.  I think the problem is being misunderstood.  I am trying to run a GWTTestCase.  I get the stack trace shown below.  I also pasted the relevant section of my test case.

- I think user and servlet should NOT be provided...I need them in my runtime to run GWT.
- I think I do need dev in my test scope, as JUnitShell relies on it.

  public String getModuleName()
  {
    return " ca.nanometrics.apollo.server.ui.Apollo";
  }

  public void testStuff()
  {
    SideBarPageInfo pageInfo = AboutPage.init();      // AboutPage extends SideBarPage
    SideBarPage page = pageInfo.createInstance ();  // SideBarPage extends Composite
    assertEquals("About", pageInfo.getName());
    assertNotNull(page.getElement());

  }


charlie...@gmail.com

unread,
Mar 2, 2007, 3:36:39 PM3/2/07
to gwt-maven
I will try to run my m1 tests using the m2 plugin soon and see what I
can find out.

You might try using the 8.3 name for documents and settings though, in
the meantime. (docume~1)

On Feb 27, 12:05 pm, "Ben Tatham" <bentat...@gmail.com> wrote:
> Note that there are problems with my solution in windows because of the
> spaces in c:\Documents and Settings...
>
> -------------------------------------------------------------------------------
> Test set: ca.nanometrics.apollo.server.ui.client.AboutPageTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.516 sec
> <<< FAILURE!

> testStuff(ca.nanometrics.apollo.server.ui.client.AboutPageTest) Time


> elapsed: 0.39 sec <<< ERROR!
> java.lang.ExceptionInInitializerError
> at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:177)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)

> at junit.framework.TestCase.run(TestCase.java:118)
> at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:114)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)

> at junit.framework.TestSuite.run(TestSuite.java:203)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(

> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.maven.surefire.junit.JUnitTestSet.execute(

> JUnitTestSet.java:210)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> AbstractDirectoryTestSuite.java:135)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:122)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(

> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)

> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(


> SurefireBooter.java:225)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:747)
> Caused by: java.lang.IllegalArgumentException
> at java.net.URI.create(URI.java:842)
> at com.google.gwt.util.tools.Utility.computeInstallationPath(
> Utility.java:287)

> at com.google.gwt.util.tools.Utility.getInstallPath(Utility.java:223)


> at com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55)
> ... 23 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index
> 18: file:/C:/Documents and
> Settings/ben/.m2/repository/com/google/gwt/gwt-dev-windows/1.3.3/gwt-
> dev-windows-1.3.3.jar
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parseHierarchical(URI.java:3066)

> at java.net.URI$Parser.parse(URI.java:3014)

> > DelegatingMethodAccessorImpl.java:25)


> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> > JUnitTestSet.java:210)
> > at
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> > AbstractDirectoryTestSuite.java:135)
> > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> > AbstractDirectoryTestSuite.java:122)
> > at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(

> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java :25)
> > at java.lang.reflect.Method.invoke(Method.java:585)

> > at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > SurefireBooter.java:225)
> > at org.apache.maven.surefire.booter.SurefireBooter.main (


> > SurefireBooter.java:747)
>
> > I don't think my code matters, because the missing class happens well
> > before it gets to here in the stack trace, but just in case...
>
> > public String getModuleName()
> > {
> > return " ca.nanometrics.apollo.server.ui.Apollo";
> > }
>
> > public void testStuff()
> > {
> > SideBarPageInfo pageInfo = AboutPage.init(); // AboutPage extends
> > SideBarPage
> > SideBarPage page = pageInfo.createInstance (); // SideBarPage extends
> > Composite
> > assertEquals("About", pageInfo.getName());
> > assertNotNull(page.getElement());
> > }
>
> > On 2/26/07, Robert kebernet Cooper <keber...@gmail.com> wrote:
>
> > > Ugh. Sorry, I was answering the wrong question. You don't need the dev
> > > jar at all. You need the *user* jar as a "provided", the *servlet* jar as
> > > "provided" and the dev jar will be used out of the specified gwt install
> > > directory. Sorry for the confusion.
>

> > > On 2/26/07, Ben Tatham < bentat...@gmail.com> wrote:
>
> > > > whats the groupId/artifactId? I don't see it in your mavenrep
>

> > > > On 2/26/07, Robert kebernet Cooper < keber...@gmail.com > wrote:
>
> > > > > You shouldn't have the dev jar as a dependency, but you should set
> > > > > dev as a dep with a "provided" scope.
>

> > > > > On 2/26/07, Ben Tatham < bentat...@gmail.com> wrote:
>
> > > > > > Is the gwt dev jar supposed to be added as a dependency with this
> > > > > > plugin?
>
> > > > > > I want to run Junit test cases, so how do manually add the
> > > > > > development jar (like gwt-dev-windows-1.3.3.jar as a dependency
> > > > > > (test scope).
>
> > > > > > -Ben
>
> > > > > > --
> > > > > > ***************************************
> > > > > > Check our website for pictures
> > > > > > of Abigail Etta
> > > > > > http://www.tatham.ca
> > > > > > ***************************************
>
> > > > > --
> > > > > :Robert "kebernet" Cooper

> > > > > :: keber...@gmail.com


> > > > > Alice's cleartext
> > > > > Charlie is the attacker
> > > > > Bob signs and encrypts
> > > > >http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
>
> > > > --
> > > > ***************************************
> > > > Check our website for pictures
> > > > of Abigail Etta
> > > > http://www.tatham.ca
> > > > ***************************************
>
> > > --
> > > :Robert "kebernet" Cooper

> > > ::keber...@gmail.com

Robert "kebernet" Cooper

unread,
Mar 2, 2007, 4:03:33 PM3/2/07
to gwt-...@googlegroups.com
It simply won't work. I will look into it this weekend.


I will try to run my m1 tests using the m2 plugin soon and see what I
can find out.

You might try using the 8.3 name for documents and settings though, in
the meantime.  (docume~1)

On Feb 27, 12:05 pm, "Ben Tatham" <bentat...@gmail.com > wrote:
> Note that there are problems with my solution in windows because of the
> spaces in c:\Documents and Settings...
>
> -------------------------------------------------------------------------------
> Test set: ca.nanometrics.apollo.server.ui.client.AboutPageTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.516 sec
> <<< FAILURE!
> testStuff(ca.nanometrics.apollo.server.ui.client.AboutPageTest)  Time
> elapsed: 0.39 sec  <<< ERROR!
> java.lang.ExceptionInInitializerError
>     at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:177)
>     at junit.framework.TestCase.runBare(TestCase.java:127)
>     at junit.framework.TestResult$1.protect(TestResult.java:106)
>     at junit.framework.TestResult.runProtected(TestResult.java:124)
>     at junit.framework.TestResult.run(TestResult.java:109)
>     at junit.framework.TestCase.run(TestCase.java:118)
>     at com.google.gwt.junit.client.GWTTestCase.run (GWTTestCase.java:114)

>     at junit.framework.TestSuite.runTest(TestSuite.java:208)
>     at junit.framework.TestSuite.run(TestSuite.java:203)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet (
> AbstractDirectoryTestSuite.java:135)
>     at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run (Surefire.java:129)

>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java :225)
>     at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:747)
> Caused by: java.lang.IllegalArgumentException
>     at java.net.URI.create(URI.java:842)
>     at com.google.gwt.util.tools.Utility.computeInstallationPath(
> Utility.java:287)
>     at com.google.gwt.util.tools.Utility.getInstallPath(Utility.java:223)
>     at com.google.gwt.util.tools.ToolBase.<clinit>( ToolBase.java:55)
> > AbstractDirectoryTestSuite.java:135)
> >     at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> > AbstractDirectoryTestSuite.java:122)
> >     at org.apache.maven.surefire.Surefire.run (Surefire.java:129)

> >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >     at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java :25)
> >     at java.lang.reflect.Method.invoke(Method.java:585)
> >     at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess (

charlie...@gmail.com

unread,
Mar 4, 2007, 11:22:36 AM3/4/07
to gwt-maven
I have not worked on the test issue this weekend, since you said you
would. But did want to let you know that I have a sample project in
GWTIP/Ch10/GWTTestMe which might be of use to you Cooper. This
project includes three tests, several simple, one with RPC, etc. And
this project has build stuff that is working in M1 and M2. (Using the
M2 dir structure, but pom files for both versions, etc.)

After we get the test stuff ironed out it might be good to use a
"sample" project like this one, that is the same project, but works on
M1 or M2.

Advise.

On Mar 2, 4:03 pm, "Robert \"kebernet\" Cooper" <keber...@gmail.com>
wrote:


> It simply won't work. I will look into it this weekend.
>

> On 3/2/07, charlie.coll...@gmail.com <charlie.coll...@gmail.com> wrote:
>
>
>
> > I will try to run my m1 tests using the m2 plugin soon and see what I
> > can find out.
>
> > You might try using the 8.3 name for documents and settings though, in
> > the meantime. (docume~1)
>
> > On Feb 27, 12:05 pm, "Ben Tatham" <bentat...@gmail.com> wrote:
> > > Note that there are problems with my solution in windows because of the
> > > spaces in c:\Documents and Settings...
>
> > -------------------------------------------------------------------------------
> > > Test set: ca.nanometrics.apollo.server.ui.client.AboutPageTest
>
> > -------------------------------------------------------------------------------
> > > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.516sec
> > > <<< FAILURE!
> > > testStuff(ca.nanometrics.apollo.server.ui.client.AboutPageTest) Time
> > > elapsed: 0.39 sec <<< ERROR!
> > > java.lang.ExceptionInInitializerError
> > > at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java
> > :177)
> > > at junit.framework.TestCase.runBare(TestCase.java:127)
> > > at junit.framework.TestResult$1.protect(TestResult.java:106)
> > > at junit.framework.TestResult.runProtected(TestResult.java:124)
> > > at junit.framework.TestResult.run(TestResult.java:109)
> > > at junit.framework.TestCase.run(TestCase.java:118)

> > > at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:114)
> > > at junit.framework.TestSuite.runTest(TestSuite.java:208)

> > > at junit.framework.TestSuite.run(TestSuite.java:203)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> > > JUnitTestSet.java:210)
> > > at
>
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> > > AbstractDirectoryTestSuite.java:135)
> > > at
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> > > AbstractDirectoryTestSuite.java:122)

> > > at org.apache.maven.surefire.Surefire.run(Surefire.java:129)


> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at

> > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> > > SurefireBooter.java:225)
> > > at org.apache.maven.surefire.booter.SurefireBooter.main(
> > > SurefireBooter.java:747)
> > > Caused by: java.lang.IllegalArgumentException
> > > at java.net.URI.create(URI.java:842)
> > > at com.google.gwt.util.tools.Utility.computeInstallationPath(
> > > Utility.java:287)
> > > at com.google.gwt.util.tools.Utility.getInstallPath(Utility.java
> > :223)

> > > at com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55)

> > > > AbstractDirectoryTestSuite.java:135)
> > > > at
> > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> > > > AbstractDirectoryTestSuite.java:122)

> > > > at org.apache.maven.surefire.Surefire.run(Surefire.java:129)

> ...
>
> read more »

Justin Smith

unread,
Apr 24, 2007, 4:38:26 PM4/24/07
to gwt-maven
Has any investigation gone on with this issue? I know as of the 1.5.2
release there had been none, but it's been a few weeks since then. :)

I've gotten the GWTShell running by adding the gwt-dev-windows as a
dependency. I had to copy the two .dll files it was depending on. Not
an elegant solution.

But it's still running into problems with a ClassNotFoundException on
com.google.gwt.dev.shell.GWTShellServlet. This is causing a 20 second
timeout.

So the tests still aren't running. Full stack trace below.

Thanks,
Justin

_____________________________________________________________________

Running com.example.client.IntegrationTest
[WARN] StandardContext[]Error loading WebappClassLoader
delegate: false
repositories:
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@a39137
com.google.gwt.dev.shell.GWTShellServlet
java.lang.ClassNotFoundException:
com.google.gwt.dev.shell.GWTShellServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1189)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
964)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
687)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
144)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:
198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
799)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
577)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
[WARN] StandardWrapperValve[shell]: Allocate exception for servlet
shell
javax.servlet.ServletException: Wrapper cannot find servlet class
com.google.gwt.dev.shell.GWTShellServlet or a class it depe
nds on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
974)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
687)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
144)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:
198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
799)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
577)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.609
sec <<< FAILURE!

Justin Smith

unread,
Apr 24, 2007, 4:56:17 PM4/24/07
to gwt-maven
Has there been any more investigation into this? As of the 1.5.2
release it hadn't been resolved, but that was a few weeks ago. :)

I've got the GWTShell loading during a test by adding the gwt-dev-
windows as a dependency. I had to include two .dll files that were
required as well. Not an elegant solution by any means.

But the tests still wouldn't run because apparently the
com.google.gwt.dev.shell.GWTShellServlet wasn't being found
(ClassNotFoundException). Not sure what the issue is. So the test
timed out after 20 seconds.

Below is the stack trace. Hopefully all this helps.

Thanks,
Justin

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.609
sec <<< FAILURE!

On Mar 4, 9:22 am, "charlie.coll...@gmail.com"

> ...
>
> read more »

Reply all
Reply to author
Forward
0 new messages