On 8 December 2010 14:14, Paul Harris <[email protected]> wrote:
Hi,
I tried to follow the instructions here: http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs
and the URLs look great, but I couldn't get the skins and logo to work.
The problem is this part of the instructions:
<servlet> <servlet-name>defaultSkins</servlet-name> <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class> <init-param> <param-name>relativeResourceBase</param-name> <param-value>skins</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>defaultSkins</servlet-name> <url-pattern>/skins/*</url-pattern> </servlet-mapping>
This is totally wrong for me. I'm using xwiki + Jetty + lighttpd on Debian stable/testing.
The correct entry into web.xml is to add:
<servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/resources/*</url-pattern> </servlet-mapping>
<servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>/skins/*</url-pattern> </servlet-mapping>
in addition to: <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
It would also help if someone wrote WHERE to put these things in the web.xml file. I guessed, and it appears to work.
Further to this, I discovered this fix does not work, as the /resources/* mapping seems to conflict with the *.gwtrpc mapping (mentioned in another email). When you Create A Link in the wysiwyg editor, it POSTs to: /resources/js/xwiki/wysiwyg/xwe/HTMLConverter.gwtrpc how do I set up my web.xml file so that both the static resources, and these apparently dynamic resource are able to both work? Please help, this is very frustrating. thanks Paul