Kit If you feel the guide (http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html) should be more explicit, you should create a JIRA issue to add the instruction to include tapestry-test into your POM.
I'm sitting on the fence on this one - I know there's a tapestry-test module and it is obvious to me it should be included, but I've also been using Tapestry for a while. More experience with Java, and at least some with Maven would let you know that you were missing a dependency. I have had my share of trying to figure out WHAT dependency I've missed, so that's not something that goes away entirely - it just gets easier to solve. I hope you enjoy Tapestry. I selected Tapestry in 2004 as a framework I wanted to use - two years before I actually had a project I could use it on. I just keep getting happier with it. Jonathan > -----Original Message----- > From: Kit Yeung [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2008 21:57 > To: Tapestry users > Subject: Re: PageTester and HttpServletRequest error. > > Hi Hilcon, > > > On Wed, Sep 17, 2008 at 01:19, Kit Yeung <[EMAIL PROTECTED]> wrote: > >> I am doing a evaluation on Tapestry, I am very new to Tapestry as well > as > >> Java and its frameworks. > > > > Don't you think you're taking on slightly more than you can handle? If > > you're really that new to Java, its frameworks, and Tapestry, I would > > suggest you focus on getting to know Java first. Even more so if > > you're also new to programming in general (I couldn't tell from your > > post). There are plenty of tutorials around. > > > > It seems difficult to properly evaluate something without a more solid > > foundation. > > Sorry for not being specify, I am working on a project on evaluating > various Java > frameworks. By new mean I am just not used to program in Java, but I've > got years of > experience in other programming languages and frameworks like Django or > Zend. > > > >> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest > > > > You don't have servlet.jar in your classpath. > > I've kept trying to resolve this problem by numerous trial and error since > I asked > this question. And in case anyone who had this problem when following the > tutorial > and came across this problem, you may want to add: > > <dependency> > <groupId>org.apache.tapestry</groupId> > <artifactId>tapestry-test</artifactId> > <version>${tapestry-release-version}</version> > </dependency> > > to your pom.xml . > > I've followed the tutorial to create my project by this command: > > mvn archetype:create > -DarchetypeGroupId=org.apache.tapestry > -DarchetypeArtifactId=quickstart > -DgroupId=org.apache.tapestry > -DartifactId=tutorial1 > -DpackageName=org.apache.tapestry5.tutorial > > > And seem the tapestry-test is not part of the pom.xml dependency when > generated > through the above command so the maven2 dependencies were not added > properly, jar > files like ant, servlet and selenium were missing. > > Thanks. > > Kit > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]