You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Richard Clark <rd...@nextquestion.net> on 2005/12/14 04:13:04 UTC

T4/Hivemind/Spring likes Jetty but hates Tomcat

Here's a puzzler for you all:

I'm using the Tapestry-4 Spring integration from the Wiki (http:// 
wiki.apache.org/jakarta-tapestry/Tapestry4Spring) using the  
individual files instead of the pre-packaged JAR. This all works  
beautifully when running under Jetty. But when I deploy it under  
Tomcat, I get an error:

org.apache.hivemind.ApplicationRuntimeException
Unable to construct service hivemind.lib.SpringObjectProvider: Error  
building service hivemind.lib.SpringObjectProvider: Error at  
jar:file:/usr/local/jakarta-tomcat5.5/shared/lib/hivemind- 
lib-1.1.jar!/META-INF/hivemodule.xml, line 138, column 89: Unable to  
update property beanFactory of object  
org.apache.hivemind.lib.impl.SpringObjectProvider@8a6351: argument  
type mismatch
location:
jar:file:/usr/local/jakarta-tomcat5.5/shared/lib/hivemind- 
lib-1.1.jar!/META-INF/hivemodule.xml, line 136, column 21
132
<service-point id="SpringObjectProvider"  
interface="org.apache.hivemind.service.ObjectProvider">
133

134
Provides the "spring:" prefix, which looks up Spring beans in a  
Spring BeanFactory.
135

***136**** This line is highlighted ****
<invoke-factory>
137
<construct class="impl.SpringObjectProvider">
138
<set-object property="beanFactory" value="${hivemind.lib.spring-bean- 
factory}"/>
139
</construct>
140
</invoke-factory>




I knocked together a little debugging page and got identical results  
under Jetty and Tomcat:
- global-property:hivemind.lib.spring-bean-factory is  
service:DefaultSpringBeanFactory
- service:hivemind.lib.DefaultSpringBeanFactory is <SingletonProxy  
for hivemind.lib.DefaultSpringBeanFactory 
(org.springframework.beans.factory.BeanFactory)>

So, why would this work in one container (Jetty) and not another  
(Tomcat 5.5)?

  ...Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org