Hi Erik,

i don't have maven and can't use it,

my other test components work fine,
i have only problem with Layout. :(

On 9/23/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
>
> I would REALLY recommend that you first create a maven archetype and start
> learning from there: you have already asked a lot of questions today, and
> most of your problems seem to be related to the way you have setup your
> project. However, Tapestry expects certain things to be in certain places,
> and your layout below is wrong. Also, search the mailing list for intellij
> if you need to move stuff around.
>
> Good luck,
> Erik
>
> On 9/23/07, Mohammad Shamsi <[EMAIL PROTECTED]> wrote:
> >
> > Hi Erik,
> >
> > i use Intellij IDEA for development,
> > my project structure is :
> >
> > ---/resources/WEB-INF/Start.html
> > ---/resources/WEB-INF/test/components/Layout.html
> >
> > ---/src/test/pages/Start.java
> > ---/src/test/components/Layout.java
> >
> > in web.xml :
> >     <context-param>
> >         <param-name>tapestry.app-package</param-name>
> >         <param-value>test</param-value>
> >     </context-param>
> >
> > Layout.html and Start.html is same as document that available in
> tapestry
> > 5
> > documents
> >
> > On 9/23/07, Erik Vullings <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Mohammad,
> > >
> > > It would help if you would show the actual (relevant) content of your
> > > class
> > > and html file, since if you would have followed the guide, it should
> > have
> > > worked :-)
> > > Related to your other question: The xsd template hasn't got a final
> > (full)
> > > version yet, AFAIK.
> > >
> > > Did you also have a look at the Wiki - and did you already create the
> > > maven
> > > archetype project to get started?
> > > See http://wiki.apache.org/tapestry/Tapestry5HowTos (top of the page)
> > >
> > > Cheers
> > > Erik
> > >
> > > On 9/23/07, Mohammad Shamsi <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi All,
> > > >
> > > > i have created  a simple page layout, as i read in this guide  :
> > > >
> > > >
> > http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html
> > > >
> > > > but when i run my application, i got this exception :
> > > >
> > > > Sep 23, 2007 2:54:24 PM
> > > > org.apache.tapestry.internal.services.PagePoolImplrelease
> > > > SEVERE: Page Page[Start en] is dirty, and will be discarded (rather
> > than
> > > > returned to the page pool).
> > > > Sep 23, 2007 2:54:24 PM
> > > > org.apache.tapestry.internal.services.RenderQueueImpl run
> > > > SEVERE: Render queue error in Text[
> > > >
> > > >   My Page Specific Content
> > > >
> > > > ]: This markup writer does not have a current element. The current
> > > element
> > > > is established with the first call to element() and is maintained
> > across
> > > > subsequent calls.
> > > > java.lang.IllegalStateException: This markup writer does not have a
> > > > current
> > > > element. The current element is established with the first call to
> > > > element()
> > > > and is maintained across subsequent calls.
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.MarkupWriterImpl.ensureCurrentElement
> > > > (
> > > > MarkupWriterImpl.java:125)
> > > >     at org.apache.tapestry.internal.services.MarkupWriterImpl.write(
> > > > MarkupWriterImpl.java:76)
> > > >     at org.apache.tapestry.internal.structure.TextPageElement.render
> (
> > > > TextPageElement.java:34)
> > > >     at org.apache.tapestry.internal.services.RenderQueueImpl.run(
> > > > RenderQueueImpl.java:57)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup
> > > > (PageMarkupRendererImpl.java:40)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageMarkupRenderer_115321c5e3a.renderPageMarkup($PageMarkupRenderer_115321c5e3a.java)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse
> > > > (PageResponseRendererImpl.java:71)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageResponseRenderer_115321c5e05.renderPageResponse($PageResponseRenderer_115321c5e05.java)
> > > >     at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(
> > > > PageRenderRequestHandlerImpl.java:81)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageRenderRequestHandler_115321c5e24.handle($PageRenderRequestHandler_115321c5e24.java)
> > > >     at
> > org.apache.tapestry.internal.services.RootPathDispatcher.dispatch
> > > (
> > > > RootPathDispatcher.java:59)
> > > >     at
> $Dispatcher_115321c5e27.dispatch($Dispatcher_115321c5e27.java)
> > > >     at
> $Dispatcher_115321c5e1a.dispatch($Dispatcher_115321c5e1a.java)
> > > >     at org.apache.tapestry.services.TapestryModule$12.service(
> > > > TapestryModule.java:1066)
> > > >     at
> > org.apache.tapestry.internal.services.LocalizationFilter.service(
> > > > LocalizationFilter.java:43)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at org.apache.tapestry.services.TapestryModule$2.service(
> > > > TapestryModule.java:657)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> org.apache.tapestry.internal.services.StaticFilesFilter.service
> > (
> > > > StaticFilesFilter.java:63)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> > > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke
> (
> > > > CheckForUpdatesFilter.java:97)
> > > >     at
> > > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke
> (
> > > > CheckForUpdatesFilter.java:88)
> > > >     at
> > org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(
> > > > ConcurrentBarrier.java:77)
> > > >     at
> > > org.apache.tapestry.internal.services.CheckForUpdatesFilter.service
> > > > (
> > > > CheckForUpdatesFilter.java:110)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> > > >
> $RequestHandler_115321c5e14.service($RequestHandler_115321c5e14.java)
> > > >     at org.apache.tapestry.services.TapestryModule$11.service(
> > > > TapestryModule.java:1044)
> > > >     at
> > > >
> > > >
> > >
> >
> $HttpServletRequestHandler_115321c5e13.service($HttpServletRequestHandler_115321c5e13.java)
> > > >     at org.apache.tapestry.TapestryFilter.doFilter(
> TapestryFilter.java
> > > > :135)
> > > >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > > ApplicationFilterChain.java:235)
> > > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > > ApplicationFilterChain.java:206)
> > > >     at org.apache.catalina.core.StandardWrapperValve.invoke(
> > > > StandardWrapperValve.java:228)
> > > >     at org.apache.catalina.core.StandardContextValve.invoke(
> > > > StandardContextValve.java:175)
> > > >     at org.apache.catalina.core.StandardHostValve.invoke(
> > > > StandardHostValve.java:128)
> > > >     at org.apache.catalina.valves.ErrorReportValve.invoke(
> > > > ErrorReportValve.java:104)
> > > >     at org.apache.catalina.core.StandardEngineValve.invoke(
> > > > StandardEngineValve.java:109)
> > > >     at org.apache.catalina.connector.CoyoteAdapter.service(
> > > > CoyoteAdapter.java:216)
> > > >     at org.apache.coyote.http11.Http11Processor.process(
> > > > Http11Processor.java
> > > > :844)
> > > >     at
> > > >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > > > Http11Protocol.java:634)
> > > >     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> > > JIoEndpoint.java
> > > > :445)
> > > >     at java.lang.Thread.run(Thread.java:595)
> > > > Sep 23, 2007 2:54:24 PM
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.DefaultRequestExceptionHandlerhandleRequestException
> > > > SEVERE: Processing of request failed with uncaught exception: This
> > > markup
> > > > writer does not have a current element. The current element is
> > > established
> > > > with the first call to element() and is maintained across subsequent
> > > > calls.
> > > > java.lang.IllegalStateException: This markup writer does not have a
> > > > current
> > > > element. The current element is established with the first call to
> > > > element()
> > > > and is maintained across subsequent calls.
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.MarkupWriterImpl.ensureCurrentElement
> > > > (
> > > > MarkupWriterImpl.java:125)
> > > >     at org.apache.tapestry.internal.services.MarkupWriterImpl.write(
> > > > MarkupWriterImpl.java:76)
> > > >     at org.apache.tapestry.internal.structure.TextPageElement.render
> (
> > > > TextPageElement.java:34)
> > > >     at org.apache.tapestry.internal.services.RenderQueueImpl.run(
> > > > RenderQueueImpl.java:57)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup
> > > > (PageMarkupRendererImpl.java:40)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageMarkupRenderer_115321c5e3a.renderPageMarkup($PageMarkupRenderer_115321c5e3a.java)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse
> > > > (PageResponseRendererImpl.java:71)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageResponseRenderer_115321c5e05.renderPageResponse($PageResponseRenderer_115321c5e05.java)
> > > >     at
> > > >
> > >
> >
> org.apache.tapestry.internal.services.PageRenderRequestHandlerImpl.handle(
> > > > PageRenderRequestHandlerImpl.java:81)
> > > >     at
> > > >
> > > >
> > >
> >
> $PageRenderRequestHandler_115321c5e24.handle($PageRenderRequestHandler_115321c5e24.java)
> > > >     at
> > org.apache.tapestry.internal.services.RootPathDispatcher.dispatch
> > > (
> > > > RootPathDispatcher.java:59)
> > > >     at
> $Dispatcher_115321c5e27.dispatch($Dispatcher_115321c5e27.java)
> > > >     at
> $Dispatcher_115321c5e1a.dispatch($Dispatcher_115321c5e1a.java)
> > > >     at org.apache.tapestry.services.TapestryModule$12.service(
> > > > TapestryModule.java:1066)
> > > >     at
> > org.apache.tapestry.internal.services.LocalizationFilter.service(
> > > > LocalizationFilter.java:43)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at org.apache.tapestry.services.TapestryModule$2.service(
> > > > TapestryModule.java:657)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> org.apache.tapestry.internal.services.StaticFilesFilter.service
> > (
> > > > StaticFilesFilter.java:63)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> > > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke
> (
> > > > CheckForUpdatesFilter.java:97)
> > > >     at
> > > > org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke
> (
> > > > CheckForUpdatesFilter.java:88)
> > > >     at
> > org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(
> > > > ConcurrentBarrier.java:77)
> > > >     at
> > > org.apache.tapestry.internal.services.CheckForUpdatesFilter.service
> > > > (
> > > > CheckForUpdatesFilter.java:110)
> > > >     at
> > > >
> $RequestHandler_115321c5e1b.service($RequestHandler_115321c5e1b.java)
> > > >     at
> > > >
> $RequestHandler_115321c5e14.service($RequestHandler_115321c5e14.java)
> > > >     at org.apache.tapestry.services.TapestryModule$11.service(
> > > > TapestryModule.java:1044)
> > > >     at
> > > >
> > > >
> > >
> >
> $HttpServletRequestHandler_115321c5e13.service($HttpServletRequestHandler_115321c5e13.java)
> > > >     at org.apache.tapestry.TapestryFilter.doFilter(
> TapestryFilter.java
> > > > :135)
> > > >     at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > > ApplicationFilterChain.java:235)
> > > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > > ApplicationFilterChain.java:206)
> > > >     at org.apache.catalina.core.StandardWrapperValve.invoke(
> > > > StandardWrapperValve.java:228)
> > > >     at org.apache.catalina.core.StandardContextValve.invoke(
> > > > StandardContextValve.java:175)
> > > >     at org.apache.catalina.core.StandardHostValve.invoke(
> > > > StandardHostValve.java:128)
> > > >     at org.apache.catalina.valves.ErrorReportValve.invoke(
> > > > ErrorReportValve.java:104)
> > > >     at org.apache.catalina.core.StandardEngineValve.invoke(
> > > > StandardEngineValve.java:109)
> > > >     at org.apache.catalina.connector.CoyoteAdapter.service(
> > > > CoyoteAdapter.java:216)
> > > >     at org.apache.coyote.http11.Http11Processor.process(
> > > > Http11Processor.java
> > > > :844)
> > > >     at
> > > >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > > > Http11Protocol.java:634)
> > > >     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> > > JIoEndpoint.java
> > > > :445)
> > > >     at java.lang.Thread.run(Thread.java:595)
> > > > Sep 23, 2007 2:54:24 PM
> > > > org.apache.tapestry.internal.services.PagePoolImplrelease
> > > > SEVERE: Page Page[Start en] is dirty, and will be discarded (rather
> > than
> > > > returned to the page pool).
> > > >
> > > > --
> > > > sincerely yours
> > > > M. H. Shamsi
> > > >
> > >
> >
> >
> >
> > --
> > sincerely yours
> > M. H. Shamsi
> >
>



-- 
sincerely yours
M. H. Shamsi

Reply via email to