AnsweredAssumed Answered

Alfresco Wordpress Integration Problem

Question asked by sapo on Dec 1, 2008
Latest reply on Dec 1, 2008 by mikeh
Hello friends.

I'm new in Alfesco… I was assigned to evaluate it in my company.

I have installed Alfresco Labs 3b and I have tried to integrate it with wordpress. For the integration, I have executed the apply_amps.bat.

When the tomcat start up, it throws the following exception:



org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.alfresco.module.blogIntegration.BlogIntegrationServiceImpl] to required type [org.alfresco.repo.blogIntegration.BlogIntegrationService] for property 'blogIntegrationService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.alfresco.module.blogIntegration.BlogIntegrationServiceImpl] to required type [org.alfresco.repo.blogIntegration.BlogIntegrationService] for property 'blogIntegrationService': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.alfresco.module.blogIntegration.BlogIntegrationServiceImpl] to required type [org.alfresco.repo.blogIntegration.BlogIntegrationService] for property 'blogIntegrationService': no matching editors or conversion strategy found
   at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
   


I think that the problem is in Spring configaration files.
There are duplicates beans definitions. In the alfresco\WEB-INF\classes\alfresco\blog-context.xml appears the following beans definitions:

   <bean id="blog-post" class="org.alfresco.repo.action.executer.BlogAction" parent="action-executer">
      <property name="nodeService">
         <ref bean="nodeService" />
      </property>
      <property name="dictionaryService">
         <ref bean="dictionaryService" />
      </property>
      <property name="blogIntegrationService">
         <ref bean="blogIntegrationService" />
      </property>
   </bean>
  
   <bean id="BlogIntegrationService" class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="proxyInterfaces">
            <value>org.alfresco.repo.blogIntegration.BlogIntegrationService</value>
        </property>
        <property name="target">
            <ref bean="blogIntegrationService"/>
        </property>
        <property name="interceptorNames">
            <list>
                <idref local="BlogIntegrationService_transaction"/>
                <idref bean="AuditMethodInterceptor"/>
                <idref bean="exceptionTranslator"/>
                <idref local="BlogIntegrationService_security"/>
            </list>
        </property>
    </bean>
       
    <bean id="blogIntegrationService" class="org.alfresco.repo.blogIntegration.BlogIntegrationServiceImpl">
       <property name="nodeService" ref="NodeService"/>
       <property name="contentService" ref="ContentService"/>
    </bean> 


and in the \WEB-INF\classes\alfresco\module\org.alfresco.module.blogIntegration\module-context.xml appears:

    <bean id="BlogIntegrationService" class="org.springframework.aop.framework.ProxyFactoryBean">
        <property name="proxyInterfaces">
            <value>org.alfresco.module.blogIntegration.BlogIntegrationService</value>
        </property>
        <property name="target">
            <ref bean="blogIntegrationService"/>
        </property>
        <property name="interceptorNames">
            <list>
                <idref local="BlogIntegrationService_transaction"/>
                <idref bean="AuditMethodInterceptor"/>
                <idref bean="exceptionTranslator"/>
                <idref local="BlogIntegrationService_security"/>
            </list>
        </property>
    </bean>

   
    <bean id="blogIntegrationService" class="org.alfresco.module.blogIntegration.BlogIntegrationServiceImpl">
       <property name="nodeService" ref="NodeService"/>
       <property name="contentService" ref="ContentService"/>
    </bean>   
   

Obviously, the type of the beans aren`t the same.

I don`t know how I can resolve this problem.

Anyone might help my?

Thanks.-

Martín

Outcomes