I seem to be having having an issue with String.indexOf(String s)/String.lastIndexOf(String s) in my GWT2 app when running it on a tomcat server.
The following code is in a Presenter (client side). It works perfectly when running via the GWT Eclipse plugin, but returns "" when the app is deployed to a tomcat6 server.
int start = message.indexOf("<pre>")+5;
int end = message.lastIndexOf("</pre>");
return message.substring(start, end);
If I do just message.substring(5,15) it returns correctly, but that isn't dynamic enough for what I want to do.