GWT Remote Logging with Grails GWT Plugin

21 views
Skip to first unread message

confile

unread,
Feb 9, 2014, 12:11:43 AM2/9/14
to grail...@googlegroups.com
How do I have to setup GWT remote logging with the Grails GWT Plugin. 

In my web.xml file I did: 

<servlet>
<servlet-name>remoteLogging</servlet-name>
<servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remoteLogging</servlet-name>
<url-pattern>/web/remote_logging</url-pattern>
</servlet-mapping>

In my gwt.xml file I did: 

<inherits name="com.google.gwt.logging.Logging" />
<set-property name="gwt.logging.logLevel" value="INFO" />
<set-property name="gwt.logging.enabled" value="TRUE" />
<set-property name="gwt.logging.popupHandler" value="DISABLED" />
<set-property name="gwt.logging.developmentModeHandler" value="ENABLED" />
<set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" />

And somewhere in my GWT Java code I did: 

import com.google.gwt.logging.client.SimpleRemoteLogHandler;
import java.util.logging.Level;
import java.util.logging.LogRecord;

SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
remoteLog.publish(new LogRecord(Level.INFO, “log message”));

But, I got the following error: 


06:03:00.592 [ERROR] [web] Sun Feb 09 06:03:00 CET 2014 WireActivityLogger
SEVERE: Remote logging failed: 
com.google.gwt.user.client.rpc.InvocationException:


Does anyone know how to fix it?


Reply all
Reply to author
Forward
0 new messages