thx for your answer 2010/3/22 Sergiu Dumitriu-2 [via XWiki] < [email protected]<ml-node%[email protected]> >
> 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 > [hidden > email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4778117&i=0> > http://lists.xwiki.org/mailman/listinfo/users > > > ------------------------------ > View message @ > http://n2.nabble.com/Short-Url-On-Tomcat-tp4777324p4778117.html > To unsubscribe from Short Url On Tomcat, click here< (link removed) =>. > > > -- View this message in context: http://n2.nabble.com/Short-Url-On-Tomcat-tp4777324p4786376.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
