Hi Josh! I tried two archetype: "com.companyname.tapestry.myapp" and "org.example.myapp" in two different project for 5.0.6-SNAPSHOT.
The paths shown below are for "org.example.myapp" I should have included the archtype as well as the paths. Sorry for the confusion. I'm back to 5.0.5 for now. Thanks for your help. Josh Canfield-2 wrote: > >> >> Java files: >> \workspace\myapp\src\main\java\org\example\myapp\pages\*.java >> > > I'm guessing that this is the problem: > > -DpackageName=com.companyname.tapestry.myapp > > I believe that you should be putting your classes in > \workspace\myapp\src\main\java\com\companyname\tapestry\myapp\pages\*.java > > Or > > Check AppModule.java to make sure that you are using the right package > hierarchy for your classes. > > Josh > > > On 10/5/07, jblier <[EMAIL PROTECTED]> wrote: >> >> >> Workspace: >> \workspace\myapp\src\main\webapp >> >> Java files: >> \workspace\myapp\src\main\java\org\example\myapp\pages\*.java >> >> TML files: >> \workspace\myapp\src\main\webapp\*.tml >> >> In 5.0.6-SNAPSHOT only Start.tml works (in webapp/). >> >> In 5.0.5 all *html files work (in webapp/WEB-INF/). >> >> Thanks for your help. >> >> >> Josh Canfield-2 wrote: >> > >> > Hi, >> > >> > Where are you putting your java files? What's the full physical path to >> > one >> > of the pages that is getting a 404. >> > >> > Josh >> > >> > >> > On 10/5/07, jblier <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> By using the same archetype and pointing to a 5.0.5 release, >> everything >> >> works >> >> fine. When using 5.0.6-SNAPSHOT only Start works, other pages are >> giving >> >> a >> >> 404 error. >> >> >> >> Do I need log4j to build 5.0.6-SNAPSHOT pages? Or, does >> >> 5.0.6-SNAPSHOTneed >> >> a special component that my archetype does not load? >> >> >> >> In 5.0.5 my .html files are in WEB-INF. >> >> >> >> In 5.0.6-SNAPSHOT my .tml files are in webapp. >> >> >> >> My 5.0.6-SNAPSHOT archetype is: >> >> >> >> mvn archetype:create >> >> -DarchetypeGroupId=org.apache.tapestry >> >> -DarchetypeArtifactId=quickstart >> >> -DarchetypeVersion=5.0.6-SNAPSHOT >> >> -DgroupId=org.apache.tapestry >> >> -DartifactId=myapp >> >> -DpackageName=com.companyname.tapestry.myapp >> >> -Dversion=1.0.0-SNAPSHOT >> >> -DremoteRepositories= >> http://people.apache.org/repo/m2-snapshot-repository/ >> >> >> >> Thank you for your help. >> >> >> >> >> >> jblier wrote: >> >> > >> >> > Something interesting, >> >> > >> >> > In myapp, there is a bin folder that contains Java .class files. In >> >> > /bin/org/example/myapp/pages/ there is only the Start.class file. >> and >> >> in >> >> > /bin/org/example/myapp/services/ there is AppModule.class and >> >> > AppMudule$1.class. >> >> > >> >> > Does this mean that my other pages are not built? >> >> > >> >> > I'm still struggling to make tapestry work. >> >> > >> >> > >> >> > >> >> > jblier wrote: >> >> >> >> >> >> I've restarted the server numerous times and it still does not >> work. >> >> >> >> >> >> Is there a bug in 5.0.6-snapshot or is it simply that I miss >> something >> >> >> important? >> >> >> >> >> >> - Jacques >> >> >> >> >> >> >> >> >> Nick Westgate wrote: >> >> >>> >> >> >>> This should work if you restarted the server after creating the >> new >> >> >>> page. >> >> >>> >> >> >>> Hugo just posted he is having problems with template reloading in >> >> 5.0.6. >> >> >>> Your problem might be related. >> >> >>> >> >> >>> Cheers, >> >> >>> Nick. >> >> >>> >> >> >>> >> >> >>> jblier wrote: >> >> >>>> Although the tutorial Guess Hi/Lo (5.0.5) lets me access the >> guess >> >> page >> >> >>>> directly, I'm trying to do the same in my current >> >> >>>> org.example.myapp.pages >> >> >>>> running with 5.0.6-snapshot. >> >> >>>> >> >> >>>> In webapp I crated a Guess.tml file and in >> org.example.myapp.pagesI >> >> >>>> created >> >> >>>> a Guess.java file. Both guess files are loading the same content >> as >> >> in >> >> >>>> the >> >> >>>> tutorial. >> >> >>>> >> >> >>>> Unfortunately, for me, the guess page always give me a 404 Not >> found >> >> >>>> error. >> >> >>>> >> >> >>>> Next I duplicated my working copy of Start.tml to Starter.tml and >> >> >>>> Start.java >> >> >>>> to Starter.java. >> >> >>>> >> >> >>>> Again, only Start will load up in my browser. Trying to access >> >> Starter >> >> >>>> gives >> >> >>>> me a 404 Not found. >> >> >>>> >> >> >>>> Did I miss something? What else do I need to set to have other >> pages >> >> to >> >> >>>> load? >> >> >>>> >> >> >>>> Do I need to start over with a fresh archetype? >> >> >>>> >> >> >>>> >> >> >>> >> >> >>> >> --------------------------------------------------------------------- >> >> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >>> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >>> >> >> >>> >> >> >>> >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/T5%3A-Newbie-question---creating-and-accessible-a-new-page-tf4571676.html#a13066288 >> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > -- >> > TheDailyTube.com. Sign up and get the best new videos on the internet >> > delivered fresh to your inbox. >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/T5%3A-Newbie-question---creating-and-accessible-a-new-page-tf4571676.html#a13067073 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > > -- View this message in context: http://www.nabble.com/T5%3A-Newbie-question---creating-and-accessible-a-new-page-tf4571676.html#a13067699 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]