"Jeffrey D. Brekke" <[EMAIL PROTECTED]> writes: >If you're getting an exception about not finding the Default page class, >(we were) you could try to create one. This worked for us:
If you get an Exception about not finding the "DefaultPage" class, this can have two reasons: a) you misconfigured Turbine. Which means that in the property which defines the page class to render your velocity pages (which is set with the services.VelocityService.default.page property) a non-existing page class is given. This value of this property should be VelocityPage (which will mapped to the turbine-internal org.apache.turbine.modules.pages.VelocityPage class) and you should not change it without exactly knowing what you do. b) Turbine fell into a pit when trying to render the Error.vm page. This is actually the more common problem and the pointer to the "Default Page" is some sort of red herring. This is how it goes: The problem here is, that the error processing at this point of Turbine is not really good (in fact, it sucks dead rodents through straws). Whenever the handleException() method in the org.apache.turbine.Turbine class is invoked, it tries to build a (non-template based) page. For this, it looks up the value of the "page.default" property from the TR.props. Which is unset unless you explicitly added anything to the config files. (META does not include this property in its default TR.props). So it uses the default. Which is "DefaultPage". Which it cannot resolve. Which results in this error (which shows up in having org.apache.turbine.Turbine.handleException somewhere in your Stack trace). >---- >package [YOUR PACKAGE].modules.pages; >import org.apache.turbine.modules.pages.DefaultPage; >public class Default extends DefaultPage >{} >---- An alternative solution is to add a page.default property to the TR.properties file. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire Linux, Java, perl, Solaris -- Consulting, Training, Development What is more important to you... [ ] Product Security or [ ] Quality of Sales and Marketing Support -- actual question from a Microsoft customer survey --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]