Dear everyone,

I know this may not be the problem of struts, but you guys may knows the answer.
I am using Liferay portal 5.2.3 and I want to overwrite a method in a
liferay source class. Therefore I have created my own Wrapper class
and I want it to be used.
I realised I need to separate the bean id declaration in a different
spring xml file eg. myext-spring.xml and reference it in
protal-ext.properties.

Here is what I have done:

myext-spring.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd";>

<beans>
<bean id="com.liferay.portlet.imagegallery.service.IGFolderLocalService.impl"
class="au.com.ip6.ext.portlet.mytest.service.impl.IP6IGFolderLocalServiceWrapperImpl"
/>
</beans>


portal-ext.properties:

 spring.configs=\
        META-INF/base-spring.xml,\
        \
        META-INF/hibernate-spring.xml,\
        META-INF/infrastructure-spring.xml,\
        META-INF/management-spring.xml,\
        \
        META-INF/util-spring.xml,\
        \
        META-INF/editor-spring.xml,\
        META-INF/jcr-spring.xml,\
        META-INF/messaging-spring.xml,\
        META-INF/scheduler-spring.xml,\
        META-INF/search-spring.xml,\
        \
        META-INF/counter-spring.xml,\
        META-INF/document-library-spring.xml,\
        META-INF/lock-spring.xml,\
        META-INF/mail-spring.xml,\
        META-INF/portal-spring.xml,\
        META-INF/portlet-container-spring.xml,\
        META-INF/wsrp-spring.xml,\
        \
        META-INF/mirage-spring.xml,\
        \
        #META-INF/dynamic-data-source-spring.xml,\
        #META-INF/shard-data-source-spring.xml,\
        \
        META-INF/ext-spring.xml,\
        META-INF/myext-spring.xml


but I am still getting the following errors:


Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException:
Bean named 'com.liferay.portlet.imagegallery.service.IGFolderLocalService.impl'
must be of type
[com.liferay.portlet.imagegallery.service.IGFolderLocalService], but
was actually of type [$Proxy180]



What is actually going on here?

Very appreciate for any suggestion and help.

Thanks
Sam

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to