If a WSRP portlet displays a jsp page that references a css file which references an image, the image can't be loaded because the url in the css can't be found. The url in the css is a relative one: ../images/image.gif.
Details of my problem
I have developed a JSR168 portlet (Java Portlet Standard) and I want to deploy it in Oracle WebCenter 11g (among other JSR-complaint portal servers)
My portlet displays a jsp which references a css file and this css references a few images. All these resources (images, css, jsps, etc) are contained into the war file of my portlet.
When I load the portlet in a WebCenter page, the css file is loaded correctly, but the images referenced by this css file don't.
The reason is that to generate the css, WebCenter generates a long url: http://localhost:8888/webcenter/resourceproxy/~.portletId~3D~252Foracle~252Fadf~252Fportlet~252FscopedMD~252Fs8bba98ff_4cbb_40b8_beee_296c916a23ed~252Fportlets~252Fclients3_366e85fa_e823_48ac_b37a_9890375111ab~26clientId... (its way longer)
But inside this css file, there are relative paths to the images. And when the browser tries to load them, the url is: http://localhost:8888/webcenter/resourceproxy/img/sprite.png which doesn't exist.
What can I do to make WebCenter load the images in my css files correctly?
How do I deploy my portlet into Oracle WebCenter I explain this, in case I should do it differently.
I convert my portlet into to a WSRP portlet by executing java -jar wsrp-predeploy.jar source EAR target EAR as explained in http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e12405/wcadm_portlet_prod.htm#CHDECJHI)
I deploy it into WebLogic with the WebLogic Console.
I register a Portlet Producer using the Enterprise Manager 11g Fusion MiddleWare Control.
I add the portlet to the main page of the WebCenter Spaces
My Environment
WebCenter Suite (11.1.1.2.0) + WebLogic Server (10.3.2) S.O: Windows XP SP3
Thanks in advance for your time.