Sitemesh 403 Error
We just tried to restart a service that was working on Friday, and we were met with this error:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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