tobydragon / metafora-project

Automatically exported from code.google.com/p/metafora-project
1 stars 0 forks source link

GWTBridge issue when deploying mmft in tomcat with gwt 2.5.0 #186

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am getting this error when launching in tomcat. Searching on the web suggests 
that library is missing but I tried adding it in various places. We had this 
issue in MiGen and had to resolve to workaround described here 
http://code.google.com/p/gwt-log/issues/detail?id=70 but I am not sure it is 
the same issue or if only I have it. 

java.lang.ClassNotFoundException: com.google.gwt.core.client.GWTBridge
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
    at com.extjs.gxt.ui.client.core.FastMap.<init>(FastMap.java:139)
    at com.extjs.gxt.ui.client.data.RpcMap.<init>(RpcMap.java:69)
    at com.extjs.gxt.ui.client.data.BaseModelData.set(BaseModelData.java:125)
    at com.extjs.gxt.ui.client.data.BaseModel.set(BaseModel.java:143)
    at de.uds.MonitorInterventionMetafora.client.monitor.filter.FilterGridRow.<init>(FilterGridRow.java:39)
    at de.uds.MonitorInterventionMetafora.shared.monitor.filter.ActionFilter.addFilterRule(ActionFilter.java:73)
    at de.uds.MonitorInterventionMetafora.server.xml.XmlConfigParser.getActionFilterList(XmlConfigParser.java:214)
    at de.uds.MonitorInterventionMetafora.server.xml.XmlConfigParser.toActiveConfiguration(XmlConfigParser.java:66)
    at de.uds.MonitorInterventionMetafora.server.MainServer.readConfiguration(MainServer.java:75)

Original issue reported on code.google.com by mavrikis@gmail.com on 21 Jan 2013 at 8:07

GoogleCodeExporter commented 8 years ago
Ken, I found that in MiGen we did the workaround above but doesn't this require 
the corresponding library anyway and where is it? Should it be included in the 
webinf lib? 

Original comment by mavrikis@gmail.com on 21 Jan 2013 at 8:23

GoogleCodeExporter commented 8 years ago
I 'll take this for now.

Original comment by mavrikis@gmail.com on 21 Jan 2013 at 8:47

GoogleCodeExporter commented 8 years ago
This has been fixed in the soon to be released GWT 2.5.1

see https://code.google.com/p/google-web-toolkit/issues/detail?id=7527

A workaround is to define

public abstract class GWTBridge extends com.google.gwt.core.shared.GWTBridge {
}

Original comment by ToonT...@gmail.com on 21 Jan 2013 at 8:49

GoogleCodeExporter commented 8 years ago
Yes I saw that but then where to define this just as in a new package/class  
com.google.gwt.core.client.GWTBridge with the rest of the mmft code as you did 
in MiGen? 

And then how is this dealt since nowhere in the code there is an explicit 
reference to GWTBridge?

Original comment by mavrikis@gmail.com on 21 Jan 2013 at 8:54

GoogleCodeExporter commented 8 years ago
The problem is that com.google.gwt.core.shared.GWTBridge is defined but  
com.google.gwt.core.client.GWTBridge isn't.

So this workaround has to be in the com.google.gwt.core.client package.

de.uds.MonitorInterventionMetafora.client.monitor.filter.FilterGridRow.<init>(Fi
lterGridRow.java:39) triggers this by calling 
com.extjs.gxt.ui.client.data.BaseModel.set(BaseModel.java:143) that eventually 
does call GWTBridge.

Original comment by ToonT...@gmail.com on 21 Jan 2013 at 11:58

GoogleCodeExporter commented 8 years ago
OK. Thanks. Just realised this is because I am using 2.5.0.rc2 in 2.4 that 
wasn't an issue (perhaps dealt differently)

Original comment by mavrikis@gmail.com on 21 Jan 2013 at 12:00

GoogleCodeExporter commented 8 years ago
This is not critical. Reverted to 2.4 and that is not an issue. Would try with 
2.5.0 but then others will not be able to compile.

Original comment by mavrikis@gmail.com on 21 Jan 2013 at 1:15