On 19 août, 21:26, Marcelo Sena <[email protected]> wrote:
> Continuing from:
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3131
>
> >@marceloslacerda: the error when running your unit tests means that the
> >GWTShellServlet is reached, so either you set the servlet-mapping after the
> >one for
> >the GWTShellServlet in your web.xml
>
> It isn't:
>
> <servlet-mapping>
> <servlet-name>proxy</servlet-name>
> <url-pattern>/thingpad/rpc*</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>shell</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> >Or the web.xml isn't taken into account (by default, the 'tomcat' dir is
> >read/created from/to your current working dir, you can pass ->Dcatalina.base
> >to explicitly tell the GWTShell which directory to use; your can
> >pass "-logLevel debug" in -Dgwt.args to have the GWTShell output the one it
> >picked)
>
> Where do I set that?
Depends on how you're launching your unit tests... if you use Eclipse,
then go to your "Run configurations..." and add the -D... in the "VM
arguments" in the Arguments tab.
Instead of the -logLevel argument (-Dgwt.args), just select the
appropriate log level (DEBUG) in the "GWT JUnit" tab, if you're using
the Google Plugin for Eclipse.
> >As for your issue in HostedMode, well, I have no idea.
[...]
> And the war/WEB-INF/web.xml http://pastebin.com/m7efdfd49
The DTD says that <welcome-file-list> should come *after* <servlet>
and <servlet-mapping>, but I guess you would have an error or at least
warning instead of the servlet-mapping just not being used...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---