Hello guys: Anyone help me please? I am doing the homework 4215 but i have the following problem:
When i run the file that i named DR_tiles-blank-struts_4215 i obtained the following failure: Estado de HTTP 404 - ------------------------------ *type* Informe de estado *Mensaje* *Descripción*El recurso solicitado () no se encuentra disponible. ------------------------------ Sun GlassFish Enterprise Server v2.1.1 And in the tab window glas fish version 2.1 appears the foolowing failure: ADM5603:Error de escucha de eventos [ContainerBase.addChild: start: LifecycleException: org.apache.struts.tiles.NoSuchDefinitionException: Error while resolving definition inheritance: child 'site.index.page.another' can't find its ancestor 'site.index.page'. Please check your description file.] ADM1075:Error al escuchar evento:[ContainerBase.addChild: start: LifecycleException: org.apache.struts.tiles.NoSuchDefinitionException: Error while resolving definition inheritance: child 'site.index.page.another' can't find its ancestor 'site.index.page'. Please check your description file.] I have the following files that i changed from index to MyOwnindexpage.jsp: MyOwnindexpage.jsp: <tiles:insert definition="site.index.page.another" flush="true" /> ----------------------------------------------------- Now the my file tiles-defs.xml: <definition name="site.mainLayout" path="/layouts/classicLayout.jsp"> <put name="title" value="My Own Tiles Blank Site Index"/> <put name="header" value="/tiles/common/header.jsp" /> <put name="menu" value="site.menu.bar" /> <put name="footer" value="/tiles/common/footer.jsp" /> <put name="body" value="/tiles/body.jsp" /> </definition> <!-- ======================================================= --> <!-- Index page definition --> <!-- ======================================================= --> <!-- This definition inherits from the main definition. It overload the page title, and the body used. Use the same mechanism to define new pages sharing common properties (here header, menu, footer, layout) --> <definition name="site.index.page.another" extends="site.index.page" > <put name="title" value="My Own Tiles Blank Site Index" /> <put name="body" value="/tiles/body.jsp" /> </definition> <!-- ======================================================= --> <!-- Menus definitions --> <!-- ======================================================= --> <!-- Menu bar definition This definition describe a "bar" of menu stacked verticaly. Each menu is describe elsewhere. Add new entry in the list to add new menu. --> <definition name="site.menu.bar" path="/layouts/vboxLayout.jsp" > <putList name="list" > <add value="site.menu.links" /> <add value="site.menu.documentation" /> </putList> </definition> <!-- Menu description A menu has a title and a set of entries rendered as links. Add new entry to add new links in menu. --> <definition name="site.index.page.another" extends="site.index.page" > <!--<definition name="site.menu.links" path="/layouts/menuNoStruts.jsp" >--> <put name="title" value="Useful Links" /> <putList name="items" > <item value="Home" link="/MyOwnindex.jsp" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> <item value="A Menu Item" link="/templateNoDef.jsp" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> </putList> </definition> <!-- Another Menu description A menu has a title and a set of entries rendered as links. Add new entry to add new links in menu. --> <definition name="site.menu.documentation" path="/layouts/menuNoStruts.jsp" > <put name="title" value="Documentation" /> <putList name="items" > <item value="User Guide" link="/index.jsp" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> <item value="Tags Index" link="/index.jsp" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> <item value="Struts Home" icon="/images/struts-power.gif" link="http://www.apache.org" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> </putList> </definition> </tiles-definitions> -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en