It just occurred to me that these errors are during the running of
tests.  Suffice it to say I've had challenges getting tests working
with Spring, while getting an application running has been easy.

If you don't run your tests, what do you get?  Can you get a runnable
application - minus tests?  It looks like, as Thiago suggests, that
you don't have the bean defined, and it may be that you don't have
Spring wired in properly for *testing*.


On Thu, May 17, 2012 at 9:19 AM, m...@raibledesigns.com
<m...@raibledesigns.com> wrote:
>
> Lance Java wrote
>>
>> Take a look at the tapestry-spling 5.0 compatability mode
>> http://tapestry.apache.org/integrating-with-spring-framework.html#IntegratingwithSpringFramework-5.0CompatibilityMode
>>
>
> I have compatibility mode enabled in my web.xml:
>
>    <context-param>
>        <param-name>tapestry.use-external-spring-context</param-name>
>        <param-value>true</param-value>
>    </context-param>
>
> I have my Spring beans defined there as well:
>
>    <context-param>
>        <param-name>contextConfigLocation</param-name>
>        <param-value>
>            classpath:/applicationContext-resources.xml
>            classpath:/applicationContext-dao.xml
>            classpath:/applicationContext-service.xml
>            classpath*:/applicationContext.xml
>            /WEB-INF/applicationContext*.xml
>            /WEB-INF/cxf-servlet.xml
>            /WEB-INF/security.xml
>        </param-value>
>    </context-param>
>
>    <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>    </listener>
>
> And in /WEB-INF/applicationContext.xml, I have a personManager bean defined:
>
>    <bean id="personManager"
> class="org.appfuse.service.impl.GenericManagerImpl">
>        <constructor-arg>
>            <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate">
>                <constructor-arg value="com.company.model.Person"/>
>            </bean>
>        </constructor-arg>
>    </bean>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-3-Spring-3-1-and-Inject-tp5711099p5711380.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
>



-- 
Jonathan Barker
ITStrategic

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

Reply via email to