On 03/22/2010 03:03 PM, laurentj wrote:
>
> Hi ,
> I followed instructions for short url on Tomcat
> (http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs)
> But some errors appear when I add
> "<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>"
>
> I don't understand what you mean with "In Tomcat, the default servlet does
> not accept a parameter for changing the resource base, so you will need to
> write another default servlet"  and how do it.

That snippet works only for Jetty (look at the classname, 
org.mortbay.jetty.servlet.Default). Unfortunately, the default servlet 
implementation for Tomcat does not allow this, so it's harder to get rid 
of /bin/ on Tomcat.

An alternatives is to rename /bin/ to something else (read the next 
section in the documentation).

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to