Jahia Template Forum > Customizing error...

0 (0 Good)
0 (0 Bad)

Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

Jahia release 4.2.0_01, Build 17109

I am trying to customize the error pages but the changes aren't being picked up. I've had a look at the WEB-INF/web.xml file but chant find any referrences to the error files. What am I doing wrong?

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  pap@commaro.com »  2011/06/07 19:58

Hello,

in Jahia 4 it was not possible to set the error page via web.xml. Instead you have to add/modify JSPs within the folder lt;location-of-jahia-web-app

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

[quote=quot;pap@commaro.com

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

[quote=quot;newuser

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  pap@commaro.com »  2011/06/07 19:58

Hi,

the problem you are running into is that most of the JSP files provided by Jahia 4.x are precompiled. So you need to open the web.xml and search for jsp.jahia.errors and remove any lt;servlet

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

[quote=quot;pap@commaro.com

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

I found it :)

lt;servlet-mapping

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

Deleted the following:

lt;servlet-mapping

  (newuser)

Number of messages  13
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  pap@commaro.com »  2011/06/07 19:58

Hello,

are you placing the JSPs on the correct location? They should not be under the templates folder, but here: tomcat\webapps\jahia\jsp\jahia\errors\

If it still does not work, please delete tomcat\work\Standalone\localhost\jahia

Then edit tomcat\webapps\jahia\WEB-INF\etc\config\log4j.xml
and add

lt;category name=

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
0 (0 Good)
0 (0 Bad)

Re: Customizing error pages in Jahia 4

by  newuser »  2011/06/07 19:58

Still nothing :(
[quote=quot;pap@commaro.com

  (newuser)

Number of messages  13
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page