On 22/02/2008, Derek Broughton <[EMAIL PROTECTED]> wrote:
>
> Michael Horwitz wrote:
>
> > On 22/02/2008, Derek Broughton
> > <[EMAIL PROTECTED]> wrote:
> >>
> >>        <!-- Framework dependency versions -->
> >>        <appfuse.version>2.0.1</appfuse.version>
> >>        <spring.version>2.5</spring.version>
> >>
> >>        <!-- Testing dependency versions -->
> >>        <jmock.version>1.1.0</jmock.version>
> >>        <jsp.version>2.0</jsp.version>
> >>        <junit.version>4.4</junit.version>
> >>        <servlet.version>2.4</servlet.version>
> >>        <wiser.version>1.2</wiser.version>
> >>
> >>        <!-- WebTest dependency versions  -->
> >>        <webtest.version>R_1600</webtest.version>
> >>
> >> Having created my tables, POJOs, actions and tests, starting with a
> >> Postgres
> >> database structure and using "mvn appfuse:gen-model" and "mvn
> >> appfuse:gen",
> >> I'm at the point of trying to run my tests.  However,
> >> "mvn test" fails for _every_ test with an error that seems to come down
> >> to:
> >> java.lang.IllegalArgumentException: Cannot convert value of type
> >> [org.appfuse.service.impl.GenericManagerImpl] to required type
> >> [org.springframework.transaction.PlatformTransactionManager] for
> >> property 'transactionManager.
> >
> >
> > Have you got a bean called transactionManager that is intended to be
> used
> > in the service layer of your application?
>
>
> Not as far as I know - though I'll check.  All I have created directly in
> this project is the original database tables (+ the odd edit to data in
> the
> generated tests), everything else was automatically created by "mvn
> appfuse:gen" or "mvn appfuse:gen-model"


Do you have a model class called Transaction? If so it may have created an
entry for a bean in the Spring files called "transactionManager". You will
need to change this by hand.

Mike

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

Reply via email to