After the change from .html to .tml in the SVN, my page templates in WEB-INF were not found any more. Moving them to the corresponding package under main/resources like component templates solved the problem.
Imants Quoting Christian Gruber <[EMAIL PROTECTED]>: > I did. It's not a version thing. I built 5.0.6-SNAPSHOT from trunk > (as of yesterday), and the pom file pulls in that version. (In fact, > m2eclipse plugin in eclipse shows the t5-core project as the dep). I > have tried each combination of old and new template location, and > filename. I understand the nature of the exception, just not what I > am specifically not doing. > > I should file a JIRA to clarify the exception for cases where there is > no template, and have the locations searched listed in the log. The > problem might be that no root node is defined, but the cause is no > template, and that can probably be trapped where that is discovered. > > Christian. > > On 6-Oct-07, at 6:48 AM, Nick Westgate wrote: > > > The exception means your Java class was found, but not the template. > > > > Carefully check your project details against Marcus's notes below. > > Check your pom.xml for the tapestry version etc. > > > > Cheers, > > Nick. > > > > > > Christian Gruber wrote: > >> Actually, I'm getting it from the tutorial as well. That is, I'm > >> getting > >> [ERROR] Tapestry 5 Tutorial #1 /: > >> java.lang.IllegalStateException: No root element has been defined. > >> at org.apache.tapestry.dom.Document.toMarkup(Document.java:89) > >> at > >> org > >> .apache > >> .tapestry > >> .internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java: > >> 51) at > >> org > >> .apache > >> .tapestry > >> .internal > >> .services > >> .PageResponseRendererImpl > >> .renderPageResponse(PageResponseRendererImpl.java:75) at > >> $ > >> PageResponseRenderer_11571e00308 > >> .renderPageResponse($PageResponseRenderer_11571e00308.java) ... > >> from the trunk/ version of the tutorial project. > >> Christian. > >> On 5-Oct-07, at 3:43 PM, Marcus wrote: > >>> Hi Bob, > >>> > >>> T505 - templates .html in src/main/webapp/WEB-INF/ or > >>> src/main/resources/<your package>/pages/ > >>> T506 - templates .tml in src/main/webapp/ or > >>> src/main/resources/<your package>/pages/ > >>> > >>> > http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469 > >>> > >>> Marcus > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]