Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML 
files.

Apologies,

Tim.

On Wednesday 25 April 2007 21:43, Tim Sawyer wrote:
> Not progress, but a clarification.
>
> I get the "no root element has been defined" error whenever I navigate to a
> URL that contains a page that exists as an HTML template.  For example, I
> have Start.html and CopyOfStart1.html files in the root of my WAR file.
>
> If I go to:
> http://localhost:8080/warfilename/Start
> http://localhost:8080/warfilename/
> or
> http://localhost:8080/warfilename/CopyOfStart1
>
> I get the no root element error.  If I go anywhere else, for example
>
> http://localhost:8080/warfilename/Blah
>
> I get a 404.
>
> Any thoughts anyone?
>
> ta,
>
> Tim.
>
> On Saturday 21 April 2007 15:08, DigitLiao wrote:
> > I test it. Your html template has no problem.
> > But where did you put this template?
> > When I delete test.html, It shows the same error as yours.
> > The template should be put in the same package as Java file or in
> > WEB-INF/ that match java package from tapestry app root package.
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> >
> > On 4/21/07, Tim Sawyer <[EMAIL PROTECTED] > wrote:
> > > Hi All,
> > >
> > > Can someone give me a clue what this means?  I might still be having
> > > supplier
> > > jar trouble, if that's a pointer.
> > >
> > > I get this exception when trying to display my first page in my first
> > > T5 application:
> > >
> > > An unexpected application exception has occurred.
> > >
> > >     * java.lang.IllegalStateException
> > >       No root element has been defined.
> > >
> > >       Stack trace
> > > org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
> > > org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup(
> > > MarkupWriterImpl.java:51)
> > >
> > > org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPa
> > >ge Response (PageResponseRendererImpl.java:49)
> > > org.apache.tapestry.internal.services.RootPathDispatcher$1.renderPage(
> > > RootPathDispatcher.java:66)
> > > org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle(
> > > PageLinkHandlerImpl.java:89)
> > > org.apache.tapestry.internal.services.PageLinkHandlerImpl.handle(
> > > PageLinkHandlerImpl.java:49)
> > > org.apache.tapestry.internal.services.RootPathDispatcher.dispatch (
> > > RootPathDispatcher.java:76)
> > > org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.j
> > >av a
> > >
> > > :1201)
> > >
> > > org.apache.tapestry.internal.services.LocalizationFilter.service(
> > > LocalizationFilter.java:43)
> > > org.apache.tapestry.services.TapestryModule$3.service
> > > (TapestryModule.java
> > >
> > > :736)
> > >
> > > org.apache.tapestry.internal.services.StaticFilesFilter.service(
> > > StaticFilesFilter.java:63)
> > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(
> > > CheckForUpdatesFilter.java:91)
> > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(
> > > CheckForUpdatesFilter.java:82)
> > > org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(
> > > ConcurrentBarrier.java:77)
> > > org.apache.tapestry.internal.services.CheckForUpdatesFilter.service (
> > > CheckForUpdatesFilter.java:104)
> > > org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.j
> > >av a
> > >
> > > :1179)
> > >
> > > org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115)
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > > ApplicationFilterChain.java:235)
> > > org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:206)
> > > org.apache.catalina.core.StandardWrapperValve.invoke(
> > > StandardWrapperValve.java:228)
> > > org.apache.catalina.core.StandardContextValve.invoke (
> > > StandardContextValve.java:175)
> > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
> > >a
> > >
> > > :128)
> > >
> > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
> > >a
> > >
> > > :104)
> > >
> > > org.apache.catalina.core.StandardEngineValve.invoke (
> > > StandardEngineValve.java:109)
> > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > >
> > > :216)
> > >
> > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
> > >44 )
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
> > > ( Http11Protocol.java:634)
> > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
> > > java.lang.Thread.run(Thread.java:595)
> > >
> > > What's the file it's trying to parse?  My HTML is simple (not even any
> > > Tap
> > >
> > > markup), and web.xml looks ok
> > >
> > > <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > > <head>
> > >   <title>Title</title>
> > > </head>
> > > <body>
> > >   <p>The time is not here.</p>
> > > </body>
> > > </html>
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE web-app
> > >     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > >     "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > > <web-app>
> > >     <display-name>Title</display-name>
> > >     <context-param>
> > >         <param-name>tapestry.app-package</param-name>
> > >         <param-value>uk.co.title</param-value>
> > >     </context-param>
> > >     <filter>
> > >         <filter-name>app</filter-name>
> > >         <filter-class>org.apache.tapestry.TapestryFilter</filter-class>
> > >     </filter>
> > >     <filter-mapping>
> > >         <filter-name>app</filter-name>
> > >         <url-pattern>/*</url-pattern>
> > >     </filter-mapping>
> > > </web-app>
> > >
> > > Any pointers appreciated!
> > >
> > > Tim.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]

Reply via email to