How to correctly register a CSS [message #836439] |
Wed, 04 April 2012 09:43  |
Eclipse User |
|
|
|
Hello!
I am using RAP 1.4.0 with Eclipse 3.7.1 and I have a CSS located at:
'my.fragment/src/some/packages/My.default.css'
I registered it with a themeContribution to 'org.eclipse.rap.ui.themes' with themeId 'org.eclipse.rap.rwt.theme.Default' and file '/src/some/packages/My.default.css'.
This of course only works when I test it in Eclipse.
When built the classes and CSS are located in an own library. The path to the CSS file in my WAR looks like this:
'my.web.archive.war\WEB-INF\plugins\my.fragment_1.0.0\my_library.jar\some\packages\My.default.css'
This brings an exception when deploying it to Tomcat:
!ENTRY my.hostplugin 4 0 2012-04-04 10:24:55.156
!MESSAGE Could not register theme contribution for theme 'org.eclipse.rap.rwt.theme.Default' from file '/src/some/packages/My.default.css'.
!STACK 0
java.lang.IllegalArgumentException: Could not open resource /src/some/packages/My.default.css
at org.eclipse.rwt.internal.theme.css.CssFileReader.readStyleSheet(CssFileReader.java:52)
at org.eclipse.rap.ui.internal.servlet.EngineConfigWrapper.registerThemeContributions(EngineConfigWrapper.java:348)
at org.eclipse.rap.ui.internal.servlet.EngineConfigWrapper.init(EngineConfigWrapper.java:143)
...
I also tried to register it with '/some/packages/My.default.css' but this also didn't work.
Could there be a problem because the CSS is located in the 'my_library.jar' or because it is in a fragment?
How do I correctly register the CSS for source and binary builds?
Greetings,
Helmut
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27883 seconds