Hi there,


I have some webapp (generated by bpm4struts) trying to connect to service 
(SLSB) on the same JBoss 4.0.2. While trying to do 

String info = this.getMassolitCatalogService().getSomeText();

in CatalogBrowserControllerImpl (implementation of some controller) I get such 
errors:



org.springframework.beans.factory.access.BootstrapException: Unable to 
initialize group definition. Group resource name 
[classpath*:beanRefFactory.xml], factory key 
[beanRefFactoryEjb]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'beanRefFactory' defined in URL 
[jar:file:/D:/Programs/jboss-4.0.2/server/default/tmp/deploy/tmp25666massolit-app-0.1.ear-contents/massolit-core-0.1.jar!/beanRefFactory.xml]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.FatalBeanException: Could not instantiate class 
[org.springframework.context.support.ClassPathXmlApplicationContext]; 
constructor threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'serviceTransactionInterceptor' defined in class path resource 
[applicationContext.xml]: Can't resolve reference
  to bean 'transactionManager' while setting property 'transactionManager'; 
nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'transactionManager' defined in class path resource 
[applicationContext-dataSource.xml]: Initialization of bean failed; 
nested exception is java.lang.IllegalArgumentException: sessionFactory is 
required

org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'beanRefFactory' defined in URL 
[jar:file:/D:/Programs/jboss-4.0.2/server/default/tmp/deploy/tmp25666massolit-app-0.1.ear-contents/massolit-core-0.1.jar!/beanRefFactory.xml]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.FatalBeanException: Could not instantiate class 
[org.springframework.context.support.ClassPathXmlApplicationContext]; 
constructor threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'serviceTransactionInterceptor' defined in class path resource 
[applicationContext.xml]: Can't resolve reference to bean 
'transactionManager' while setting property 'transactionManager'; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'transactionManager' defined in class path r
 esource [applicationContext-dataSource.xml]: Initialization of 
bean failed; nested exception is java.lang.IllegalArgumentException: 
sessionFactory is required

org.springframework.beans.FatalBeanException: Could not instantiate class 
[org.springframework.context.support.ClassPathXmlApplicationContext]; 
constructor threw exception; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'serviceTransactionInterceptor' defined in class path resource 
[applicationContext.xml]: Can't resolve reference to bean 
'transactionManager' while setting property 'transactionManager'; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'transactionManager' defined in class path resource 
[applicationContext-dataSource.xml]: Initialization of bean failed; 
nested exception is java.lang.IllegalArgumentException: sessionFactory is 
required

org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'serviceTransactionInterceptor' defined in class path resource 
[applicationContext.xml]: Can't resolve reference to bean 
'transactionManager' while setting property 'transactionManager'; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'transactionManager' defined in class path resource 
[applicationContext-dataSource.xml]: Initialization of bean failed; 
nested exception is java.lang.IllegalArgumentException: sessionFactory is 
required

org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'transactionManager' defined in class path resource 
[applicationContext-dataSource.xml]: Initialization of bean failed; 
nested exception is java.lang.IllegalArgumentException: sessionFactory is 
required

java.lang.IllegalArgumentException: sessionFactory is required

   at 
org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:333)

   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:962)

   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:354)

   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)

   at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)

   at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)

   at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)

   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:916)

   at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:72

.....





What the hell? My model is available for download here: . I am using AndroMDA 
3.1-SNAPSHOT
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2304#2304
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to