You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Bernagou <bl...@gmail.com> on 2007/11/06 11:04:18 UTC
T5 no root element??
I copied and paste my Eclipse project from my Home computer to my work
computer. And it works at home, not at works and the error is this one :
[ERROR] DefaultRequestExceptionHandler Processing of request failed with
uncaught exception: No root element has been defined.
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:49)
at
$PageResponseRenderer_116146572a8.renderPageResponse($PageResponseRenderer_116146572a8.java)
I thought it was a problem of localization since I had only Start_fr.tml but
I added Start.tml (same for my 2 others _fr.tml pages) but I still have the
error.
The code is exactly the same and I don't have any error in my compilation,
neither xml validation error.
Any idea?
--
Michael Bernagou
Java Developper
Re: T5 no root element??
Posted by Ted Steen <te...@gmail.com>.
make sure that all resources (including .tml files) are copied on compile.
that is, if you have a resources folder with your tml files in it, you
need to add that as a class folder in your eclipse project.
an alternative would be to move all .tml files to the source folder
(side by side with the class). Personally I think its easier to work
with them side by side like that.
2007/11/6, Michael Bernagou <bl...@gmail.com>:
> I copied and paste my Eclipse project from my Home computer to my work
> computer. And it works at home, not at works and the error is this one :
>
> [ERROR] DefaultRequestExceptionHandler Processing of request failed with
> uncaught exception: No root element has been defined.
> 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:49)
> at
> $PageResponseRenderer_116146572a8.renderPageResponse($PageResponseRenderer_116146572a8.java)
>
> I thought it was a problem of localization since I had only Start_fr.tml but
> I added Start.tml (same for my 2 others _fr.tml pages) but I still have the
> error.
>
> The code is exactly the same and I don't have any error in my compilation,
> neither xml validation error.
>
> Any idea?
>
> --
> Michael Bernagou
> Java Developper
>
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org