You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Roger Palacios <ro...@gmail.com> on 2012/09/07 20:19:31 UTC
Exception: Can not determine Markup. Component is not yet connected
to a parent.
Hello.
I have the following problem:
I was developing a wicket demo application, not complex at all.
Just a MainPage class and other sub classes that extend MainPage. Every
thing is ok, but suddenly (I don't know why) I start to receive this
exception:
Unexpected RuntimeException
Last cause: Can not determine Markup. Component is not yet connected to a
parent. [Page class = com.zxxzt.fmsoft.basics.HomePage, id = 34, render
count = 1]
Stacktrace
Root cause:
org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
Component is not yet connected to a parent. [Page class =
com.zxxzt.fmsoft.basics.HomePage, id = 34, render count = 1]
at org.apache.wicket.Component.getMarkup(Component.java:731)
at org.apache.wicket.Component.internalRender(Component.java:2351)
at org.apache.wicket.Component.render(Component.java:2314)
at org.apache.wicket.Page.renderPage(Page.java:1035)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
at
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
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:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:722)
HomePage extends MainPage.
Both classes have no code inside, are empty.
This is the MainPage.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
<title>FMSoft - Facility Maintenance Software</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
</head>
<body>
<div class="wrapper">
<div class="top">
<div class="header">
<!-- TITLE -->
<h1>SOMBuilding/SYSTEMS</h1>
<h2>Facility Maintenance System</h2>
<div class="clear"></div>
<!-- END TITLE -->
</div>
<div class="menu">
<ul>
<!-- MENU -->
<!-- END MENU -->
</ul>
</div>
</div>
<wicket:child />
<div class="clear"></div>
<p class="footer">
<a href="http://validator.w3.org/check/referer"
title="valid XHTML">XHTML</a> | <a href="
http://jigsaw.w3.org/css-validator/check/referer" title="valid CSS">CSS</a>
© FMSoft - ZXXZ Tecnología, C.A. Design: <a href="
http://www.spyka.net">Free CSS Templates</a> | <a href="
http://www.justfreetemplates.com">Free Web Templates</a>
</p>
</div>
</body>
</html>
And the HomePage.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:wicket="
http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<body>
<wicket:extend>
<div class="content">
<div class="page-content">
<!-- CONTENT -->
<h3>Lo que no se mide, no se controla y lo que no se
controla no se mejora</h3>
<p>
<strong>La clave:</strong> medir -bien- lo
necesario<br />
La implementación de mecanismos de control de
gestión no implica la necesidad de desarrollar proyectos costosos y
complejos, pero si facilita mucho tener herramientas de gestión y operación
adecuadas a las necesidades y con visión de futuro.
</p>
<div class="clear"></div>
<!-- END CONTENT -->
</div>
</div>
<div class="sidebar">
<!-- SIDEBAR -->
<ul>
<li>
<h4>Opciones</h4>
<ul>
<li>
<a href="#"
title="Presupuestos">Presupuestos</a>
</li>
<li>
<a href="#" title="General">Permisos</a>
</li>
<li>
<a href="#" title="Servicios
Primarios">Mantenimientos</a>
</li>
<li>
<a href="#" title="Servicios de
Apoyo">Ejecución</a>
</li>
<li>
<a href="#" title="Control de
costos">Contratos</a>
</li>
<li>
<a href="#" title="Proyectos">Proyectos</a>
</li>
</ul>
</li>
</ul>
<!-- SIDEBAR -->
</div>
</wicket:extend>
</body>
</html>
Every html file is ok, file names ok, xhtml markup ok.
I restarted my IDE, the Tomcat Server, the machine and nothing happened...
When I deploy the war file on web server fails too.
Please Help!!!
Regards,
*Roger*
Re: Exception: Can not determine Markup. Component is not yet
connected to a parent.
Posted by Roger Palacios <ro...@gmail.com>.
Thanks.
But, I found the problem:
For some reason, all <resourses> elements in pom.xml file where erased. I
just rewrite them and ready to rock.
Thanks for your help.
Regards,
Roger
2012/9/7 Paul Bors <pa...@bors.ws>
> Try fallowing this Introduction to the Wicket Web Framework:
> http://netbeans.org/kb/docs/web/quickstart-webapps-wicket.html
>
> ~ Thank you,
> Paul Bors
>
> -----Original Message-----
> From: Roger Palacios [mailto:rogerpalacios@gmail.com]
> Sent: Friday, September 07, 2012 2:46 PM
> To: users@wicket.apache.org
> Subject: Re: Exception: Can not determine Markup. Component is not yet
> connected to a parent.
>
> I was looking at WAR file and I found that the .html files are not included
> in war file.
>
> I am using Netbeans 7.2 and maven. But I am very new using maven. Now I
> wonder: Who is falling: Netbeans or maven?
>
> Please, give some advise.
>
> Regards,
> Roger
>
> 2012/9/7 Roger Palacios <ro...@gmail.com>
>
> > Hello.
> >
> > I have the following problem:
> >
> > I was developing a wicket demo application, not complex at all.
> > Just a MainPage class and other sub classes that extend MainPage.
> > Every thing is ok, but suddenly (I don't know why) I start to receive
> > this
> > exception:
> >
> >
> >
> > Unexpected RuntimeException
> >
> > Last cause: Can not determine Markup. Component is not yet connected
> > to a parent. [Page class = com.zxxzt.fmsoft.basics.HomePage, id = 34,
> > render count = 1]
> >
> > Stacktrace
> >
> > Root cause:
> >
> > org.apache.wicket.markup.MarkupNotFoundException: Can not determine
> > Markup. Component is not yet connected to a parent. [Page class =
> > com.zxxzt.fmsoft.basics.HomePage, id = 34, render count = 1]
> > at org.apache.wicket.Component.getMarkup(Component.java:731)
> > at org.apache.wicket.Component.internalRender(Component.java:2351)
> > at org.apache.wicket.Component.render(Component.java:2314)
> > at org.apache.wicket.Page.renderPage(Page.java:1035)
> > at
> >
>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageR
> enderer.java:105)
> > at
> >
>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRend
> erer.java:224)
> > at
> >
>
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPag
> eRequestHandler.java:167)
> > at
> >
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(Request
> Cycle.java:784)
> > at
> >
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.ja
> va:64)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
> > at
> >
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.jav
> a:212)
> > at
> >
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(Request
> Cycle.java:283)
> > at
> >
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.jav
> a:188)
> > at
> >
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:235)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:206)
> > at
> >
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:233)
> > at
> >
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> > at
> >
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
> )
> > at
> >
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
> )
> > at
> >
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :109)
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> > at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> > at
> >
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
> 11Protocol.java:602)
> > at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> > at java.lang.Thread.run(Thread.java:722)
> >
> >
> > HomePage extends MainPage.
> >
> > Both classes have no code inside, are empty.
> >
> > This is the MainPage.html:
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml">
> > <head>
> > <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8"
> > />
> > <title>FMSoft - Facility Maintenance Software</title>
> > <link rel="stylesheet" href="styles.css" type="text/css" />
> > </head>
> > <body>
> > <div class="wrapper">
> > <div class="top">
> > <div class="header">
> > <!-- TITLE -->
> > <h1>SOMBuilding/SYSTEMS</h1>
> > <h2>Facility Maintenance System</h2>
> > <div class="clear"></div>
> > <!-- END TITLE -->
> > </div>
> > <div class="menu">
> > <ul>
> > <!-- MENU -->
> > <!-- END MENU -->
> > </ul>
> > </div>
> > </div>
> >
> > <wicket:child />
> >
> > <div class="clear"></div>
> >
> > <p class="footer">
> > <a href="http://validator.w3.org/check/referer"
> > title="valid XHTML">XHTML</a> | <a href="
> > http://jigsaw.w3.org/css-validator/check/referer" title="valid
> > CSS">CSS</a> © FMSoft - ZXXZ Tecnología, C.A.
> > Design: <a href="http://www.spyka.net">Free CSS Templates</a> | <a
> href="
> > http://www.justfreetemplates.com">Free Web Templates</a>
> > </p>
> > </div>
> >
> >
> >
> > </body>
> > </html>
> >
> > And the HomePage.html:
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
> > xmlns:wicket="
> > http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> > <body>
> > <wicket:extend>
> > <div class="content">
> > <div class="page-content">
> > <!-- CONTENT -->
> > <h3>Lo que no se mide, no se controla y lo que no
> > se controla no se mejora</h3>
> > <p>
> > <strong>La clave:</strong> medir -bien- lo
> > necesario<br />
> > La implementación de mecanismos de control de
> > gestión no implica la necesidad de desarrollar proyectos costosos y
> > complejos, pero si facilita mucho tener herramientas de gestión y
> > operación adecuadas a las necesidades y con visión de futuro.
> > </p>
> > <div class="clear"></div>
> >
> > <!-- END CONTENT -->
> > </div>
> > </div>
> > <div class="sidebar">
> >
> > <!-- SIDEBAR -->
> > <ul>
> > <li>
> > <h4>Opciones</h4>
> > <ul>
> > <li>
> > <a href="#"
> > title="Presupuestos">Presupuestos</a>
> > </li>
> > <li>
> > <a href="#" title="General">Permisos</a>
> > </li>
> > <li>
> > <a href="#" title="Servicios
> > Primarios">Mantenimientos</a>
> > </li>
> > <li>
> > <a href="#" title="Servicios de
> > Apoyo">Ejecución</a>
> > </li>
> > <li>
> > <a href="#" title="Control de
> > costos">Contratos</a>
> > </li>
> > <li>
> > <a href="#"
> title="Proyectos">Proyectos</a>
> > </li>
> > </ul>
> > </li>
> >
> > </ul>
> > <!-- SIDEBAR -->
> >
> > </div>
> > </wicket:extend>
> > </body>
> > </html>
> >
> > Every html file is ok, file names ok, xhtml markup ok.
> >
> > I restarted my IDE, the Tomcat Server, the machine and nothing
> happened...
> >
> > When I deploy the war file on web server fails too.
> >
> > Please Help!!!
> >
> > Regards,
> > *Roger*
> >
> >
>
>
> --
> *Roger Palacios*
> 0424-370.33.95
> 0243-215.32.72
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
*Roger Palacios*
0424-370.33.95
0243-215.32.72
RE: Exception: Can not determine Markup. Component is not yet connected to a parent.
Posted by Paul Bors <pa...@bors.ws>.
Try fallowing this Introduction to the Wicket Web Framework:
http://netbeans.org/kb/docs/web/quickstart-webapps-wicket.html
~ Thank you,
Paul Bors
-----Original Message-----
From: Roger Palacios [mailto:rogerpalacios@gmail.com]
Sent: Friday, September 07, 2012 2:46 PM
To: users@wicket.apache.org
Subject: Re: Exception: Can not determine Markup. Component is not yet
connected to a parent.
I was looking at WAR file and I found that the .html files are not included
in war file.
I am using Netbeans 7.2 and maven. But I am very new using maven. Now I
wonder: Who is falling: Netbeans or maven?
Please, give some advise.
Regards,
Roger
2012/9/7 Roger Palacios <ro...@gmail.com>
> Hello.
>
> I have the following problem:
>
> I was developing a wicket demo application, not complex at all.
> Just a MainPage class and other sub classes that extend MainPage.
> Every thing is ok, but suddenly (I don't know why) I start to receive
> this
> exception:
>
>
>
> Unexpected RuntimeException
>
> Last cause: Can not determine Markup. Component is not yet connected
> to a parent. [Page class = com.zxxzt.fmsoft.basics.HomePage, id = 34,
> render count = 1]
>
> Stacktrace
>
> Root cause:
>
> org.apache.wicket.markup.MarkupNotFoundException: Can not determine
> Markup. Component is not yet connected to a parent. [Page class =
> com.zxxzt.fmsoft.basics.HomePage, id = 34, render count = 1]
> at org.apache.wicket.Component.getMarkup(Component.java:731)
> at org.apache.wicket.Component.internalRender(Component.java:2351)
> at org.apache.wicket.Component.render(Component.java:2314)
> at org.apache.wicket.Page.renderPage(Page.java:1035)
> at
>
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageR
enderer.java:105)
> at
>
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRend
erer.java:224)
> at
>
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPag
eRequestHandler.java:167)
> at
>
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(Request
Cycle.java:784)
> at
>
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.ja
va:64)
> at
>
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
> at
>
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.jav
a:212)
> at
>
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(Request
Cycle.java:283)
> at
>
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.jav
a:188)
> at
>
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
> at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:602)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:722)
>
>
> HomePage extends MainPage.
>
> Both classes have no code inside, are empty.
>
> This is the MainPage.html:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
> />
> <title>FMSoft - Facility Maintenance Software</title>
> <link rel="stylesheet" href="styles.css" type="text/css" />
> </head>
> <body>
> <div class="wrapper">
> <div class="top">
> <div class="header">
> <!-- TITLE -->
> <h1>SOMBuilding/SYSTEMS</h1>
> <h2>Facility Maintenance System</h2>
> <div class="clear"></div>
> <!-- END TITLE -->
> </div>
> <div class="menu">
> <ul>
> <!-- MENU -->
> <!-- END MENU -->
> </ul>
> </div>
> </div>
>
> <wicket:child />
>
> <div class="clear"></div>
>
> <p class="footer">
> <a href="http://validator.w3.org/check/referer"
> title="valid XHTML">XHTML</a> | <a href="
> http://jigsaw.w3.org/css-validator/check/referer" title="valid
> CSS">CSS</a> © FMSoft - ZXXZ Tecnología, C.A.
> Design: <a href="http://www.spyka.net">Free CSS Templates</a> | <a href="
> http://www.justfreetemplates.com">Free Web Templates</a>
> </p>
> </div>
>
>
>
> </body>
> </html>
>
> And the HomePage.html:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
> xmlns:wicket="
> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <body>
> <wicket:extend>
> <div class="content">
> <div class="page-content">
> <!-- CONTENT -->
> <h3>Lo que no se mide, no se controla y lo que no
> se controla no se mejora</h3>
> <p>
> <strong>La clave:</strong> medir -bien- lo
> necesario<br />
> La implementación de mecanismos de control de
> gestión no implica la necesidad de desarrollar proyectos costosos y
> complejos, pero si facilita mucho tener herramientas de gestión y
> operación adecuadas a las necesidades y con visión de futuro.
> </p>
> <div class="clear"></div>
>
> <!-- END CONTENT -->
> </div>
> </div>
> <div class="sidebar">
>
> <!-- SIDEBAR -->
> <ul>
> <li>
> <h4>Opciones</h4>
> <ul>
> <li>
> <a href="#"
> title="Presupuestos">Presupuestos</a>
> </li>
> <li>
> <a href="#" title="General">Permisos</a>
> </li>
> <li>
> <a href="#" title="Servicios
> Primarios">Mantenimientos</a>
> </li>
> <li>
> <a href="#" title="Servicios de
> Apoyo">Ejecución</a>
> </li>
> <li>
> <a href="#" title="Control de
> costos">Contratos</a>
> </li>
> <li>
> <a href="#"
title="Proyectos">Proyectos</a>
> </li>
> </ul>
> </li>
>
> </ul>
> <!-- SIDEBAR -->
>
> </div>
> </wicket:extend>
> </body>
> </html>
>
> Every html file is ok, file names ok, xhtml markup ok.
>
> I restarted my IDE, the Tomcat Server, the machine and nothing happened...
>
> When I deploy the war file on web server fails too.
>
> Please Help!!!
>
> Regards,
> *Roger*
>
>
--
*Roger Palacios*
0424-370.33.95
0243-215.32.72
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Exception: Can not determine Markup. Component is not yet
connected to a parent.
Posted by Roger Palacios <ro...@gmail.com>.
I was looking at WAR file and I found that the .html files are not included
in war file.
I am using Netbeans 7.2 and maven. But I am very new using maven. Now I
wonder: Who is falling: Netbeans or maven?
Please, give some advise.
Regards,
Roger
2012/9/7 Roger Palacios <ro...@gmail.com>
> Hello.
>
> I have the following problem:
>
> I was developing a wicket demo application, not complex at all.
> Just a MainPage class and other sub classes that extend MainPage. Every
> thing is ok, but suddenly (I don't know why) I start to receive this
> exception:
>
>
>
> Unexpected RuntimeException
>
> Last cause: Can not determine Markup. Component is not yet connected to a
> parent. [Page class = com.zxxzt.fmsoft.basics.HomePage, id = 34, render
> count = 1]
>
> Stacktrace
>
> Root cause:
>
> org.apache.wicket.markup.MarkupNotFoundException: Can not determine
> Markup. Component is not yet connected to a parent. [Page class =
> com.zxxzt.fmsoft.basics.HomePage, id = 34, render count = 1]
> at org.apache.wicket.Component.getMarkup(Component.java:731)
> at org.apache.wicket.Component.internalRender(Component.java:2351)
> at org.apache.wicket.Component.render(Component.java:2314)
> at org.apache.wicket.Page.renderPage(Page.java:1035)
> at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
> at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
> 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:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:722)
>
>
> HomePage extends MainPage.
>
> Both classes have no code inside, are empty.
>
> This is the MainPage.html:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
> />
> <title>FMSoft - Facility Maintenance Software</title>
> <link rel="stylesheet" href="styles.css" type="text/css" />
> </head>
> <body>
> <div class="wrapper">
> <div class="top">
> <div class="header">
> <!-- TITLE -->
> <h1>SOMBuilding/SYSTEMS</h1>
> <h2>Facility Maintenance System</h2>
> <div class="clear"></div>
> <!-- END TITLE -->
> </div>
> <div class="menu">
> <ul>
> <!-- MENU -->
> <!-- END MENU -->
> </ul>
> </div>
> </div>
>
> <wicket:child />
>
> <div class="clear"></div>
>
> <p class="footer">
> <a href="http://validator.w3.org/check/referer"
> title="valid XHTML">XHTML</a> | <a href="
> http://jigsaw.w3.org/css-validator/check/referer" title="valid
> CSS">CSS</a> © FMSoft - ZXXZ Tecnología, C.A.
> Design: <a href="http://www.spyka.net">Free CSS Templates</a> | <a href="
> http://www.justfreetemplates.com">Free Web Templates</a>
> </p>
> </div>
>
>
>
> </body>
> </html>
>
> And the HomePage.html:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
> xmlns:wicket="
> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
> <body>
> <wicket:extend>
> <div class="content">
> <div class="page-content">
> <!-- CONTENT -->
> <h3>Lo que no se mide, no se controla y lo que no se
> controla no se mejora</h3>
> <p>
> <strong>La clave:</strong> medir -bien- lo
> necesario<br />
> La implementación de mecanismos de control de
> gestión no implica la necesidad de desarrollar proyectos costosos y
> complejos, pero si facilita mucho tener herramientas de gestión y operación
> adecuadas a las necesidades y con visión de futuro.
> </p>
> <div class="clear"></div>
>
> <!-- END CONTENT -->
> </div>
> </div>
> <div class="sidebar">
>
> <!-- SIDEBAR -->
> <ul>
> <li>
> <h4>Opciones</h4>
> <ul>
> <li>
> <a href="#"
> title="Presupuestos">Presupuestos</a>
> </li>
> <li>
> <a href="#" title="General">Permisos</a>
> </li>
> <li>
> <a href="#" title="Servicios
> Primarios">Mantenimientos</a>
> </li>
> <li>
> <a href="#" title="Servicios de
> Apoyo">Ejecución</a>
> </li>
> <li>
> <a href="#" title="Control de
> costos">Contratos</a>
> </li>
> <li>
> <a href="#" title="Proyectos">Proyectos</a>
> </li>
> </ul>
> </li>
>
> </ul>
> <!-- SIDEBAR -->
>
> </div>
> </wicket:extend>
> </body>
> </html>
>
> Every html file is ok, file names ok, xhtml markup ok.
>
> I restarted my IDE, the Tomcat Server, the machine and nothing happened...
>
> When I deploy the war file on web server fails too.
>
> Please Help!!!
>
> Regards,
> *Roger*
>
>
--
*Roger Palacios*
0424-370.33.95
0243-215.32.72