Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Problem using new tool


 
Search: 

8: Re: Re: Re: Re: Problem using new tool
In response to 5 11/19/09 09:34 AM
[ Reply | Forward ]
Any help =D?

Posted by Felipe Peña

9: Re: Re: Re: Re: Re: Problem using new tool
In response to 8 11/23/09 11:48 PM
[ Reply | Forward ]
Hi,

Assuming you're using the latest code from CVS, I think the problem is to do with the assumptions we've made for the package names used for all tools.  For example, your tool looks like it uses the following structure:

org.uach.lams.tool.socialToolForLAMS.service.SocialToolForLAMSService

If you look in lams_common/src/java/org/lamsfoundation/lams/beanRefContext.xml, inside the bean context.central is a list of contexts; among them is:

classpath*:org/lamsfoundation/lams/tool/**/*pplicationContext.xml

So basically the problem is that the LAMS core is only including those tools which have their context files under a package that starts with org.lamsfoundation.lams.tool.*

Can you try replacing that classpath line above with this?

classpath*:**/lams/tool/**/*pplicationContext.xml

If that doesn't work, try adding this line below it:

<value>classpath*:org/uach/lams/tool/**/*pplicationContext.xml</value>

Posted by Jun-Dir Liew

10: Re: Re: Re: Re: Re: Re: Problem using new tool
In response to 9 11/24/09 01:37 PM
[ Reply | Forward ]
I did both things, but no success.

I got this error:

Unable to initialize group definition. Group resource name [classpath:/org/lamsfoundation/lams/beanRefContext.xml], factory key [context.central]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'context.central' defined in class path resource [org/lamsfoundation/lams/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.jboss.spring.factory.VFSClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'forumManagerTarget' defined in ZipEntryHandler@1936677334[path=lams.ear/lams-tool-lafrum11.jar/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml context=file:/Users/patrosmania/Documents/Tesis/lams/jboss-5.1.0.GA/server/default/deploy/ real=file:/Users/patrosmania/Documents/Tesis/lams/jboss-5.1.0.GA/server/default/deploy/lams.ear/lams-tool-lafrum11.jar/org/lamsfoundation/lams/tool/forum/forumApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.uach.lams.tool.socialToolForLAMS.persistence.TimestampDao] to required type [org.lamsfoundation.lams.tool.forum.persistence.TimestampDao] for property 'timestampDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.uach.lams.tool.socialToolForLAMS.persistence.TimestampDao] to required type [org.lamsfoundation.lams.tool.forum.persistence.TimestampDao] for property 'timestampDao': no matching editors or conversion strategy found

Posted by Felipe Peña

11: Re: Re: Re: Re: Re: Re: Re: Problem using new tool
In response to 10 11/24/09 06:30 PM
[ Reply | Forward ]
Well it's a different error! In this case I think that's progress.

This error is saying that one the forum tool's beans can't start because there is a naming clash with one of the socialToolForLAMS beans. In your applicationContext.xml you might want to try renaming the 'timestampDao' to something more unique, e.g. 'socialToolForLAMSTimestampDao'.

Posted by Jun-Dir Liew

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum