Hello,
we're migrating our webapps (running in Tomcat) from RAP 1.5.2 to 2.3.1 and used AbstractBranding to add some Body HTML, which is now replaced by EnryPoint-properties.
So far so good.
Now, we're providing an image for the body
final String body = "<img src=\"" + RWT.getResourceManager().getLocation("some/path/to/image") + \" />";
properties.put(WebClient.BODY_HTML, body)
...
and configure the application with the properties
application.addEntryPoint(myPath, myEntryPoint, properties);
At startup we get an
Schwerwiegend: Exception sending context initialized event to listener instance of class org.eclipse.rap.rwt.engine.RWTServletContextListener
java.lang.IllegalStateException: Invalid thread access
at org.eclipse.rap.rwt.RWT.checkContext(RWT.java:733)
at org.eclipse.rap.rwt.RWT.getApplicationContext(RWT.java:621)
at org.eclipse.rap.rwt.RWT.getResourceManager(RWT.java:544)
...
so it seems, we cannot access the RWT.getResourceManager() at this time / in this thread.
So my question is, can anyone tell me how to reference resources in the body part corectly?