Re: servlet mapping Jahia servlet

Stéphane Croisier <[email protected]>
Newsgroups gmane.comp.cms.jahia.install
Message-ID <[email protected]>
Did you try running Jahia at root level (Tech FAQ: 
http://www.jahia.org/jahia/Jahia/devzone/pid/454#6 )?

>If you wish to set Jahia in the ROOT context of Tomcat (to have an 
>url like "http://myserver/Jahia"), the "defaultContextPath" value in 
>the web.xml whould be set like this :
>
>    <param-name>defaultContextPath</param-name>
>
>In this case you will also need to move the content of 
>TOMCAT_HOME/webapps/jahia/ inside the ROOT directory in TOMCAT_HOME/webapps/.

/SC

At 11:43 01/09/2005, you wrote:
>Hi all,
>
>Working with a 4.1.0_01 version of jahia, I would like to change the 
>servlet mapping of the jahia servlet.
>Default the servlet maps to /Jahia/*, making that "Jahia" appears in 
>all urls.
>I want this replaced by an empty string, so that 
><http://myserver/mycontext/pid/1>http://myserver/mycontext/pid/1 
>maps to the servlet.
>In jahia405 I did this by mapping like this:
>
>           <param-name>defaultMappingPattern</param-name>
>           <param-value></param-value>
>
>(I also changed the other mappings further on in web.xml)
>
>Now in 4.1 this doesn't seem to work.
>
>If I do it like this:
>           <param-name>defaultMappingPattern</param-name>
>           <param-value>/*</param-value>
>it does work, but all images referenced in the templates like 
>/jsp/jahia/... are also processed by the jahia servlet (resulting in 
>a 404 error).
>
>Any idea how i can solve this?
>
>thanks
>Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.