Adding a mapping to my web.xml made it work.  Thanks a bunch!

On May 25, 1:53 am, Alexandre Ardhuin <[email protected]>
wrote:
> Have you add an URL mapping in your web.xml ?
>
>     <servlet>
>         <servlet-name>remoteLogging</servlet-name>
>
> <servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</serv 
> let-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>remoteLogging</servlet-name>
>         <url-pattern>/YOUR_MODULE/remote_logging</url-pattern>
>     </servlet-mapping>
>
> Alexandre
>
> 2011/5/24 Dave <[email protected]>
>
>
>
>
>
>
>
> > I'm trying to Log a message to a server log.  I found these
> > instructions:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Rem...
>
> > In my GWT XML I have
> > <inherits name="com.google.gwt.logging.Logging"/>
> > <set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" /
>
> > my code is:
> > SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
> > remoteLog.publish(new LogRecord(Level.INFO, "test GWT log"));
>
> > I'm sure that I'm missing a simple setup step.
>
> > I get the error message.
> > WireActivityLogger SEVERE: Remote logging failed:
> > com.google.gwt.user.client.rpc.StatusCodeException: 0
> >   at
>
> > com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv 
> > ed(RequestCallbackAdapter.java:
> > 192)
> >   at
> > com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
> > 287)
> >   at com.google.gwt.http.client.RequestBuilder
> > $1.onReadyStateChange(RequestBuilder.java:395)
> >   at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> >   at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> > l.java:
> > 25)
> >   at java.lang.reflect.Method.invoke(Method.java:597)
> >   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> > 103)
> >   at
> > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> >   at
>
> > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
> > a:
> > 157)
> >   at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
> > rReturn(BrowserChannelServer.java:
> > 326)
> >   at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> > elServer.java:
> > 207)
> >   at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > 126)
> >   at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 561)
> >   at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > 269)
> >   at
>
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> > ava:
> > 91)
> >   at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> >   at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>
> > Thanks for your assistance,
>
> > Dave
>
> > --
> > 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.

-- 
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.

Reply via email to