Earlier versions of Tapestry 5 did use ".html" as the extension that
identifies a page render (rather than an event trigger on a
component).

Howerver, I'll look into your case. This should have triggered an
"html" event (which is meaningless) on the Home page itself, and that
should have resulted with a redirect to the home page.

BTW  http://localhost:8080/tapestry_empty/home

should work as well (page names and component ids inside URLs are case
insensitive).

On 2/7/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
You have the wrong URL. It's

http://localhost:8080/tapestry_empty/Home

not

http://localhost:8080/tapestry_empty/Home.html

page urls don't have the file extension.


Stranzenbach, Ralf wrote:
> It's an access to
>       http://localhost:8080/tapestry_empty/Home.html
>
>
>
> Mit freundlichen Grüßen,
>
> Ralf Edmund Stranzenbach
> Manager, FS-Technology
>
> BearingPoint
> Management & Technology Consultants
>
> Gladbecker Straße 5, 40472 Düsseldorf; Germany
> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
> [EMAIL PROTECTED]
>
> www.bearingpoint.com
>
>
> -----Ursprüngliche Nachricht-----
> Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 7. Februar 2007 18:06
> An: Tapestry users
> Betreff: Re: AW: WG: IOC TapestryException creating a sample application
>
> What is the exact URL that triggers this error. It's possible that a
> trailing slash is causing a problem (which, would be a bug in
> Tapestry).
>
> On 2/7/07, Stranzenbach, Ralf <[EMAIL PROTECTED]> wrote:
>
>> Hi.
>>
>> I've checked the application, cleaned everything, redeployed.
>>
>> Nothing changed. The same exception occurred. May be, the stack trace if of 
some use:
>>
>> org.apache.tapestry.ioc.internal.util.TapestryException
>>
>> Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
>> Stack trace
>> 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:840)
>> 
org.apache.tapestry.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:77)
>> 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:64)
>> 
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:51)
>> $ActionLinkHandler_1109cf3be15.handle($ActionLinkHandler_1109cf3be15.java)
>> $ActionLinkHandler_1109cf3be12.handle($ActionLinkHandler_1109cf3be12.java)
>> 
org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:63)
>> $Dispatcher_1109cf3be13.dispatch($Dispatcher_1109cf3be13.java)
>> $Dispatcher_1109cf3be14.dispatch($Dispatcher_1109cf3be14.java)
>> $Dispatcher_1109cf3be00.dispatch($Dispatcher_1109cf3be00.java)
>> 
org.apache.tapestry.services.TapestryModule$5.service(TapestryModule.java:418)
>> 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:451)
>> $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
>> 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:49)
>> $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
>> de.reswi.tapestry_empty.services.AppModule$1.service(AppModule.java:39)
>> $RequestFilter_1109cf3bdfd.service($RequestFilter_1109cf3bdfd.java)
>> $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
>> 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
>> $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
>> 
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)
>> $RequestHandler_1109cf3be01.service($RequestHandler_1109cf3be01.java)
>> $RequestHandler_1109cf3be02.service($RequestHandler_1109cf3be02.java)
>> $RequestHandler_1109cf3bdf8.service($RequestHandler_1109cf3bdf8.java)
>> 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:341)
>> 
$HttpServletRequestHandler_1109cf3bdf9.service($HttpServletRequestHandler_1109cf3bdf9.java)
>> 
$HttpServletRequestHandler_1109cf3bdf7.service($HttpServletRequestHandler_1109cf3bdf7.java)
>> org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
>> 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>> 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
>> 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
>> 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:595)
>>
>>
>> The image attached may give you some impression of the applications set-up.
>>
>> Mit freundlichen Grüßen,
>>
>> Ralf Edmund Stranzenbach
>> Manager, FS-Technology
>>
>> BearingPoint
>> Management & Technology Consultants
>>
>> Gladbecker Straße 5, 40472 Düsseldorf; Germany
>> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
>> [EMAIL PROTECTED]
>>
>> www.bearingpoint.com
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
>> Gesendet: Dienstag, 6. Februar 2007 17:57
>> An: Tapestry users
>> Betreff: Re: AW: WG: IOC TapestryException creating a sample application
>>
>> That is quite odd. Are you sure you are not having any compile errors?
>>
>> Also, Tapestry looks for templates FIRST in the package (with the Java
>> .class file), then in WEB-INF (for application pages). So you may have
>> another template hanging around that you've forgotten about, that is
>> causing the error.
>>
>> On 2/6/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>>
>>> Everything looks ok.
>>>
>>> Did you use the maven-archetype to create the project ?
>>> Did it work before you started changing the generated files ?
>>>
>>> Stranzenbach, Ralf wrote:
>>>
>>>> Hi.
>>>>
>>>> For sure. It's quite easy...
>>>>
>>>> package de.reswi.tapestry_empty.pages;
>>>>
>>>> import java.util.Date;
>>>>
>>>> import org.apache.tapestry.annotations.ComponentClass;
>>>> import org.apache.tapestry.ioc.annotations.Id;
>>>>
>>>> @ComponentClass
>>>> public class Home {
>>>>       public Date getDate() {
>>>>               return new Date();
>>>>       }
>>>> }
>>>>
>>>> During my tests I've resigned and took some sample page from the maven 
generated artifacts...
>>>>
>>>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>>>>     <head>
>>>>         <title>hilo Start Page</title>
>>>>     </head>
>>>>     <body>
>>>>         <h1>hilo Start Page</h1>
>>>>
>>>>         <p> This is the start page for this application, a good place to 
start your modifications.
>>>>             Just to prove this is live: </p>
>>>>
>>>>         <p> The current time is: ${date}. </p>
>>>>
>>>>
>>>>         <p>
>>>>             [<a t:type="PageLink" page="Home">refresh</a>]
>>>>         </p>
>>>>     </body>
>>>> </html>
>>>>
>>>>
>>>> Home.html and the Home.java are both placed in the "pages" package.
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Ralf Edmund Stranzenbach
>>>> Manager, FS-Technology
>>>>
>>>> BearingPoint
>>>> Management & Technology Consultants
>>>>
>>>> Gladbecker Straße 5, 40472 Düsseldorf; Germany
>>>> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
>>>> [EMAIL PROTECTED]
>>>>
>>>> www.bearingpoint.com
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Hugo Palma [mailto:[EMAIL PROTECTED]
>>>> Gesendet: Dienstag, 6. Februar 2007 16:14
>>>> An: Tapestry users
>>>> Betreff: Re: WG: IOC TapestryException creating a sample application
>>>>
>>>> Can you post the template of you Home page ?
>>>> You probably have a <t:comp> tag in the template with an empty id.
>>>>
>>>> Stranzenbach, Ralf wrote:
>>>>
>>>>
>>>>> Hi.
>>>>>
>>>>>
>>>>>
>>>>> I've tried to create a small sample application based on tapestry 5.0.1. 
I followed the example from the screencast and it seems to work more or less fine, but when 
accessing my page I get the message below.
>>>>>
>>>>>
>>>>>
>>>>> *                             
org.apache.tapestry.ioc.internal.util.TapestryException
>>>>>
>>>>> Component de.reswi.tapestry_empty.pages.Home does not contain an embedded 
component with id ''.
>>>>>
>>>>>
>>>>>
>>>>> Nowhere in my code or HTML page I deal with additional ids.....
>>>>>
>>>>>
>>>>>
>>>>> I'm quite puzzled.
>>>>>
>>>>> Mit freundlichen Grüßen,
>>>>>
>>>>> Ralf Edmund Stranzenbach
>>>>> Manager, FS-Technology
>>>>>
>>>>> BearingPoint
>>>>> Management & Technology Consultants
>>>>>
>>>>> Gladbecker Straße 5, 40472 Düsseldorf; Germany
>>>>> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
>>>>> [EMAIL PROTECTED]
>>>>>
>>>>> www.bearingpoint.com <http://www.bearingpoint.com/>
>>>>>
>>>>>
>>>>>
>>>>> 
***************************************************************************************************
>>>>> The information in this email is confidential and may be legally 
privileged Access to this email by anyone other than the intended addressee is unauthorized. 
If you are not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it is 
prohibited and may be unlawful. If you are not the intended recipient, please reply to or 
forward a copy of this message to the sender and delete the message, any attachments, and any 
copies thereof from your system.
>>>>> 
***************************************************************************************************
>>>>>
>>>>>
>>>>>
>>>>>
>>>> 
***************************************************************************************************
>>>> The information in this email is confidential and may be legally 
privileged Access to this email by anyone other than the intended addressee is 
unauthorized. If you are not the intended recipient of this message, any review, 
disclosure, copying, distribution, retention, or any action taken or omitted to be taken in 
reliance on it is prohibited and may be unlawful. If you are not the intended recipient, 
please reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
>>>> 
***************************************************************************************************
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>> --
>> Howard M. Lewis Ship
>> TWD Consulting, Inc.
>> Independent J2EE / Open-Source Java Consultant
>> Creator and PMC Chair, Apache Tapestry
>> Creator, Apache HiveMind
>>
>> Professional Tapestry training, mentoring, support
>> and project work.  http://howardlewisship.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
***************************************************************************************************
>> The information in this email is confidential and may be legally privileged 
Access to this email by anyone other than the intended addressee is unauthorized. If 
you are not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it 
is prohibited and may be unlawful. If you are not the intended recipient, please 
reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
>> 
***************************************************************************************************
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to