Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Here is my web.xml: * http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; version="3.0"> cheetah web application

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Looks like Spring's application context descriptor is not read. How do you tell Tapestry to load it? Are you using TapestrySpringFilter? On Sat, Jul 16, 2011 at 6:09 PM, Julien Martin wrote: > One thing comes to mind: I use Spring and the service in question is a > Spring service injected with T

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
One thing comes to mind: I use Spring and the service in question is a Spring service injected with Tapestry's @Inject. Would that get in the way of Tapestry tests? Regards, Julien. 2011/7/16 Julien Martin > I changed to that. I still get the same exception about the service i.e. * > Error obtai

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
I changed to that. I still get the same exception about the service i.e. * Error obtaining injected value for field com.cheetah.web.pages.ConfirmationPage.cheetahService: No service implements the interface com.cheetah.service.CheetahService.* What puzzles me is that the app works when I use the br

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Usually src/main/webapp On Sat, Jul 16, 2011 at 5:50 PM, Julien Martin wrote: > Hello Igor, > Thanks. Where should it point to then bearing in mind I use Maven? > Regards, > Julien. > > 2011/7/16 Igor Drobiazko > > > Not sure why your service is not bund but your context path src/main/java > >

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Hello Igor, Thanks. Where should it point to then bearing in mind I use Maven? Regards, Julien. 2011/7/16 Igor Drobiazko > Not sure why your service is not bund but your context path src/main/java > is > wrong. > > On Sat, Jul 16, 2011 at 5:11 PM, Julien Martin wrote: > > > Hello, > > I have an

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Not sure why your service is not bund but your context path src/main/java is wrong. On Sat, Jul 16, 2011 at 5:11 PM, Julien Martin wrote: > Hello, > I have an issue with a unit test in Tapestry. It seems Tapestry is not able > to find a service when I run the unit tests whereas there are no prob

Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Hello, I have an issue with a unit test in Tapestry. It seems Tapestry is not able to find a service when I run the unit tests whereas there are no problems when I run the application from the browser. What have I misconfigured? Thanks in advance, Julien. Here is the unit test: * @Test pub