<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to configure alfresco for Spring AOP in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225049#M178179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an Alfresco project already running. I needed to configure Spring AOP in Alfresco application. I have created a Spring-AOP-context.xml where all the aop configuration is done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Spring-AOP-context.xml is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:aop="&lt;A href="http://www.springframework.org/schema/aop" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/aop&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:tx="&lt;A href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;BR /&gt;&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.springframework.org/schema/aop" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/aop&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/aop/spring-aop-2.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/aop/spring-aop-2.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!– Pointcuts –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;aop:config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;aop:pointcut id="tstPointcut"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;expression="execution(public void com.ccs.credential.web.bean.workflow.CCSProcessManageTaskDialog.init(..))" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;aop:advisor pointcut-ref="tstPointcut" advice-ref="testAdvice" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/aop:config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!– AOP Proxy Interceptors –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bean id="testAdvice" class="com.ccs.credential.metrics.CCSProcessManageTaskDialogBeforeAdvice"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But whenever the application is deployed in tomcat it gives this error&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;INFO: Deploying web application archive alfresco.war&lt;BR /&gt;17:02:05,531 ERROR [web.context.ContextLoader] Context initialization failed&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmBootstrap&lt;BR /&gt;' defined in class path resource [alfresco/bootstrap-context.xml]: Error setting property values; ne&lt;BR /&gt;sted exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExcep&lt;BR /&gt;tions (1) are:&lt;BR /&gt;PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert proper&lt;BR /&gt;ty value of type [$Proxy43] to required type [org.alfresco.repo.avm.AVMLockingAwareService] for prop&lt;BR /&gt;erty 'avmLockingAwareService'; nested exception is java.lang.IllegalArgumentException: Cannot conver&lt;BR /&gt;t value of type [$Proxy43] to required type [org.alfresco.repo.avm.AVMLockingAwareService] for prope&lt;BR /&gt;rty 'avmLockingAwareService': no matching editors or conversion strategy found&lt;BR /&gt;Caused by:&lt;BR /&gt;org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) a&lt;BR /&gt;re:&lt;BR /&gt;PropertyAccessException 1:&lt;BR /&gt;org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy43]&lt;BR /&gt; to required type [org.alfresco.repo.avm.AVMLockingAwareService] for property 'avmLockingAwareServic&lt;BR /&gt;e'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy43]&lt;BR /&gt;to required type [org.alfresco.repo.avm.AVMLockingAwareService] for property 'avmLockingAwareService&lt;BR /&gt;': no matching editors or conversion strategy found&lt;BR /&gt;Caused by:&lt;BR /&gt;java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy43] to required type [org.al&lt;BR /&gt;fresco.repo.avm.AVMLockingAwareService] for property 'avmLockingAwareService': no matching editors o&lt;BR /&gt;r conversion strategy found&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the solution? Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Amit Nerkar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 May 2010 13:18:35 GMT</pubDate>
    <dc:creator>amitnerkar</dc:creator>
    <dc:date>2010-05-12T13:18:35Z</dc:date>
    <item>
      <title>How to configure alfresco for Spring AOP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225049#M178179</link>
      <description>Hi,I have an Alfresco project already running. I needed to configure Spring AOP in Alfresco application. I have created a Spring-AOP-context.xml where all the aop configuration is done.The Spring-AOP-context.xml is as follows:&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;lt;beans xmlns="http://www.sp</description>
      <pubDate>Wed, 12 May 2010 13:18:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225049#M178179</guid>
      <dc:creator>amitnerkar</dc:creator>
      <dc:date>2010-05-12T13:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure alfresco for Spring AOP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225050#M178180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am struggling with exactly the same thing. Did you find a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cosmin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 21:47:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225050#M178180</guid>
      <dc:creator>cosminaru</dc:creator>
      <dc:date>2010-10-06T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure alfresco for Spring AOP</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225051#M178181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I found the problem. Is actually a Spring issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://static.springsource.org/spring/docs/2.0.x/reference/aop.html" rel="nofollow noopener noreferrer"&gt;http://static.springsource.org/spring/docs/2.0.x/reference/aop.html&lt;/A&gt;&lt;SPAN&gt; - scroll to 6.3. Schema-based AOP support:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;========&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Warning&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &amp;lt;aop:config&amp;gt; style of configuration makes heavy use of Spring's auto-proxying mechanism. This can cause issues (such as advice not being woven) if you are already using explicit auto-proxying via the use of BeanNameAutoProxyCreator or suchlike. The recommended usage pattern is to use either just the &amp;lt;aop:config&amp;gt; style, or just the AutoProxyCreator style.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;========&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And there is actually a BeanNameAutoProxyCreator in the Alfresco config (and probably other auto-proxying stuff) - so the &amp;lt;aop:config&amp;gt; is a no-no in this case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 22:56:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-configure-alfresco-for-spring-aop/m-p/225051#M178181</guid>
      <dc:creator>cosminaru</dc:creator>
      <dc:date>2010-10-06T22:56:14Z</dc:date>
    </item>
  </channel>
</rss>

