Scary that the exception talks about components when it should be
looking for a page.

What does your web.xml look like? What is your app package set to? It should be:

<context-param>
    <!-- The only significant configuration for Tapestry 5, this
informs Tapestry
          of where to look for pages, components and mixins. -->
    <param-name>tapestry.app-package</param-name>
    <param-value>org.apache.tapestry5.tutorial</param-value>
</context-param>

See http://tapestry.apache.org/tapestry5.1/guide/conf.html

Actually - if you're using maven, have you tried creating a project
from the maven archetype as mentioned on page one :
http://tapestry.apache.org/tapestry5.1/tutorial1/first.html

To get a working app I did as follows:

> mvn archetype:generate -DarchetypeGroupId=org.apache.tapestry 
> -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry  
> -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial

And accepted the default settings. (Note I changed archetype:create to
archetype:generate)

> cd tutorial1

Edited the pom.xml at the bottom to update the Tapestry version 5.1.0.5

> mvn jetty:run

Open browser to: http://localhost:8080/tutorial1/

Ta daa! That should give you a working base to start from.

Steve.


On 11 May 2010 16:11, aibkwik <phil.mcqui...@gmail.com> wrote:
>
>
>
> Not sure what the current T5 deal is with putting .tml files in the
> WEB-INF, but I'm certain it's not recommended.
>
> Again, as Sergey and I have suggested, place your .tml files in the
> same package as your java / class files.
>
> With your current maven setup, that would be:
>
> src/main/resources/org/apache/tapestry5/tutorial/pages
>
> Steve.
>
>
> ----------
>
> Really embarrassing now...
>
> Forgot to mention earlier that I'd tried that already, to no avail.
> I do, however, get a different error.
>
> Here is the new file locations you suggested -
>
> http://old.nabble.com/file/p28528821/Java%2B-%2Btutorial1_src_main_java_org_apache_tapestry5_tutorial_pages_Index.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode-1.jpg
>
> ...and here is the new error -
> http://old.nabble.com/file/p28528821/Application%2BException-1.jpeg
>
> I really want to make this crazy thing work and get to a point where I can
> move forward.  I will understand if you guys 'cry uncle'.   I appreciate
> your help.
>
> Phil
>
> --
> View this message in context: 
> http://old.nabble.com/Noob-problem-with-Guessing-Game-tutorial-tp28519315p28528821.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to