I have a bpm4struts controller with a dependency on a <<Service>>



A debug statement in the Controller shows it gets called, but it then calls a 
method on the <<Service>> that never arrives.



The following shows up in the server.log of jBoss



2005-08-15 17&#58;49&#58;20,435 DEBUG 
&#91;org.springframework.beans.factory.support.DefaultListableBeanFactory&#93; 

Ignoring constructor 

&#91;public 
org.springframework.context.support.ClassPathXmlApplicationContext&#40;java.lang.String&#41;
 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throws 
org.springframework.beans.BeansException&#93; 

&nbsp;of bean 'beanRefFactory'&#58; 



Error creating bean with name 'beanRefFactory' defined in URL 

&#91;jar&#58;file&#58;/C&#58;/programs/org/jboss/server/... snip 
.../justtrade-core-0.0.jar!/beanRefFactory.xml&#93;&#58; 



Unsatisfied dependency expressed through constructor argument with index 0 of 
type &#91;java.lang.String&#93;&#58; 

Could not convert constructor argument value &#91;&#91;applicationContext.xml, 
applicationContext-dataSource.xml&#93;&#93; 

&nbsp; &nbsp; &nbsp; &nbsp;to required type &#91;java.lang.String&#93;&#58; 



Failed to convert property value of type &#91;java.util.ArrayList&#93; to 
required type &#91;java.lang.String&#93;



The beanRefFactory.xml looks pretty normal.



<?xml version="1.0" encoding="UTF-8"?>



<!DOCTYPE beans

&nbsp; &nbsp; PUBLIC "-//SPRING//DTD BEAN//EN"

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;"http&#58;//www.springframework.org/dtd/spring-beans.dtd">



<beans>



&nbsp; &nbsp; <bean id="beanRefFactory"

&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;class="org.springframework.context.support.ClassPathXmlApplicationContext">

&nbsp; &nbsp; &nbsp; &nbsp; <constructor-arg>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<list>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>applicationContext.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<value>applicationContext-dataSource.xml</value>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- beanRefFactory 
merge-point -->

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</list>

&nbsp; &nbsp; &nbsp; &nbsp; </constructor-arg>

&nbsp; &nbsp; </bean>



</beans>



The applicationContext-dataSource.xml looks ok too.



The applicationContext.xml file is now rather big (40 ProxyFactoryBeans), as is 
my Magic Draw model.



I'm stuck.  I've spent a day and half trying to track down the datatype 
conflict and haven't got anywhere.



Has anyone else seen this?



Can anyone suggest how I can discover which property is [java.util.ArrayList] 
instead of  [java.lang.String]?
--
Regards,

Hasan
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3882#3882
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to