cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Wordpress Integration Problem

sapo
Champ in-the-making
Champ in-the-making
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
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
Revert back to your original WAR (before you apply the blog amp) - it's now built-in to the WAR, so you don't need to add it as a separate module.

Mike

sapo
Champ in-the-making
Champ in-the-making
Thaks Mike.

I have revert back to my original WAR, but the option to add blog details not appear in the action menu.

Can you help me with this?

Thanks again.

Martín.-

anselmo_abadia
Champ in-the-making
Champ in-the-making
Hi Martin, I have the same problem. I can´t see the menu option.

mikeh
Star Contributor
Star Contributor
Blog posting is now achieved via the Alfresco Share web client - the support in V2.9 was a preview of the V3.0 functionality.

Mike