Monday, June 17, 2013

Sitemesh 403 Error

We just tried to restart a service that was working on Friday, and we were met with this error:
com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: com.opensymphony.module.sitemesh.factory.FactoryException: Could not read config file : /WEB-INF/sitemesh.xml: java.io.IOException: Server returned HTTP response code: 403 for URL: http://opensymphony.com/sitemesh/dtd/sitemesh_1_5_decorators.dtd
view raw gistfile1.txt hosted with ❤ by GitHub
Clicking on the URL for `sitemesh_1_5_decorators.dtd` resolved to a redirect to a page stating that sitemesh is no longer developed.

To buy time to actually fix the issue I downloaded a copy of `sitemesh_1_5_decorators.dtd` from GitHub and hosted it locally using `python -m SimpleHTTPServer 80`, and redirected opensymphony.com to localhost it `/etc/hosts`.

Not the cleanest solution, but it will buy us time to remove those dead references from our code.

No comments:

Post a Comment