On 4/2/07, <b class="gmail_sendername">David Koontz</b> <<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
REXML::Version gives 3.1.3<br>> On 4/2/07, *David Koontz* <<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a><br>> <mailto:<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a>>> wrote:
<br>><br>> I have installed masterview into the vendor directory and when I start<br>> up mongrel I get:<br>><br>> Initializing MasterView configuration (2007-04-02 13:18)<br>> Program name = script/server
<br>> Using default admin_auth mixin for MasterView admin (local<br>> requests only)<br>> Adding MasterView AdminPages controller directories to<br>> controller_paths<br>> MasterView Admin pages enabled
<br>> Failure to parse template. Exception=undefined method `progress' for<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x224d5f8><br>> Failure to parse template. Exception=undefined method `progress' for
<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x248661c><br>> Failure to parse template. Exception=undefined method `progress' for<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x240b0d4>
<br>> Failure to parse template. Exception=undefined method `progress' for<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x23c21e0><br>> Failure to parse template. Exception=undefined method `progress' for
<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x23acbec><br>> Failure to parse template. Exception=undefined method `progress' for<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x2391234>
<br>> Adding hook to allow MasterView to check for templates that have<br>> changed<br>> when processing a request<br>> Adding hooks to enable Rails to read erb directly from MasterView<br>> MasterView plugin initialized - Version
0.3.2<br>> ** Rails loaded.<br>> Followed by the rest of the normal rails startup output.<br>><br>> When I try to hit <a href="http://localhost:3000/masterview">http://localhost:3000/masterview</a>
<br>> <<a href="http://localhost:3000/masterview">http://localhost:3000/masterview</a>> or other url's that<br>> are masterview generated content I get the same error again<br>><br>> Failure to parse template. Exception=undefined method `progress' for
<br>> #<MasterView::TemplateProcessing::SAXParserListener:0x3718bf8><br>><br>> Any idea on what I might have done wrong? I'm on Rails 1.2.<br>><br></blockquote></div><br><br>Well David, I have good news and bad news. The good news is that I have updated MasterView in the trunk with a version that checks the REXML version before attempting to use the patched sax2parser. The patched parser works with
3.1.4 - 3.1.6 versions of REXML. According to REXML trac, supposedly REXML 3.1.7 will have my doctype patch in the core, so it will not be needed after that anyway. I have also made this patched parser configurable with a new config option. If you set
config.use_original_rexml_sax2parser = true, then it will not use the patch regardless of the version otherwise it will load and use the patch if REXML 3.1.4 - 3.1.6. I have tested MasterView with all of these versions 3.1.4
, 3.1.5, 3.1.6 (current).<br><br>The bad news is that REXML 3.1.3 seems to have a broken sax2parser such that I get errors when trying to simply require it despite the fact that we aren't loading the rexml patch. So it appears that MasterView won't work with REXML
3.1.3. I put in a check for this now in startup and it throws an exception if one tries to use a version less than 3.1.4. 3.1.3 was released in 2004, so hopefully this will not be a problem for most people.<br><br>I have checked all the code changes into svn in the trunk and will plan to do a gem build and release once Deb has had a chance to look at my changes.
<br><br>svn://rubyforge.org/var/svn/masterview/trunk/masterview<br><br>I have updated the documentation to indicate that REXML version needs to be 3.1.4 or greater.<br><br>Jeff<br><br><br><br><br><br><br><br>