On 4/2/07, <b class="gmail_sendername">David Koontz</b> &lt;<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a>&gt; 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>&gt; On 4/2/07, *David Koontz* &lt;<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a><br>&gt; &lt;mailto:<a href="mailto:david@koontzfamily.org">david@koontzfamily.org</a>&gt;&gt; wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I have installed masterview into the vendor directory and when I start<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; up mongrel I get:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Initializing MasterView configuration (2007-04-02 13:18)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Program name = script/server
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Using default admin_auth mixin for MasterView admin (local<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; requests only)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Adding MasterView AdminPages controller directories to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; controller_paths<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MasterView Admin pages enabled
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x224d5f8&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x248661c&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x240b0d4&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x23c21e0&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x23acbec&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x2391234&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Adding hook to allow MasterView to check for templates that have<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; changed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; when processing a request<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Adding hooks to enable Rails to read erb directly from MasterView<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MasterView plugin initialized - Version 
0.3.2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ** Rails loaded.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Followed by the rest of the normal rails startup output.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; When I try to hit <a href="http://localhost:3000/masterview">http://localhost:3000/masterview</a>
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://localhost:3000/masterview">http://localhost:3000/masterview</a>&gt; or other url&#39;s that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; are masterview generated content I get the same error again<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Failure to parse template. Exception=undefined method `progress&#39; for
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #&lt;MasterView::TemplateProcessing::SAXParserListener:0x3718bf8&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Any idea on what I might have done wrong?&nbsp;&nbsp;I&#39;m on Rails 1.2.<br>&gt;<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&#39;t loading the rexml patch. So it appears that MasterView won&#39;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>