File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anyone ever used Liferay Portal 5.2 Systems Development Book? - I have a problem and cant fix it!

 
Dan Sco
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

Im new to JAVA and liferay, and i am trying to customise the CMS as per chapter 7 and 8 of the book Liferay Portal 5.2 Systems Development

However my problem is that although i have followed the instructions (Twice) i keep getting this error message. The issues occur when following pages 258,259,260.

The issue seems to lie when you follow the code to create the beans in ext-spring.xml.
The code given is
<bean id="com.ext.portal.service.ExtVelocityToolService" class="com.ext.portal.service.impl.ExtVelocityToolServiceImpl" /> <bean id="com.ext.portal.util.ExtVelocityToolUtil" class="com.ext.portal.util.ExtVelocityToolUtil">
<property name="extVelocityToolService" ref="com.ext.portal.service.ExtVelocityToolService" />
</bean><bean id="com.ext.portal.util.ExtVelocityToolUtil.velocity" class="org.springframework.aop.framework.ProxyFactoryBean" parent="baseVelocityUtil"> <property name="target" ref="com.ext.portal.service.ExtVelocityToolService" />
</bean>

But it produces this error
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ext.portal.util.ExtVelocityToolUtil' defined in class path resource [META-INF/ext-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.ext.portal.service.impl.ExtVelocityToolServiceImpl] to required type [com.ext.portal.service.ExtVelocityToolService] for property 'extVelocityToolService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.ext.portal.service.impl.ExtVelocityToolServiceImpl] to required type [com.ext.portal.service.ExtVelocityToolService] for property 'extVelocityToolService': no matching editors or conversion strategy found

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)


Does anyone know how to fix this

thanks in advance for any help
Dan

 
Jonas X. Yuan
author
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dan,

You can find details (errata, including the issue you mentioned, see Page 256) at

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Errata+for+the+Liferay+Portal+5.2+Systems+Development

Thanks

Jonas Yuan
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic