<?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 Custom Bean Action problems in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117452#M82946</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 &lt;/SPAN&gt;&lt;STRONG&gt;created a new custom action as a Java class &lt;/STRONG&gt;&lt;SPAN&gt;that implements the &lt;/SPAN&gt;&lt;STRONG&gt;ActionExecuterAbstractBase &lt;/STRONG&gt;&lt;SPAN&gt;as you suggest in the wiki documentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I created a class to &lt;/SPAN&gt;&lt;STRONG&gt;test the new action executer&lt;/STRONG&gt;&lt;SPAN&gt;, extending the &lt;/SPAN&gt;&lt;STRONG&gt;BaseSpringTest &lt;/STRONG&gt;&lt;SPAN&gt;class, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;new action bean &lt;/STRONG&gt;&lt;SPAN&gt;has been &lt;/SPAN&gt;&lt;STRONG&gt;registered &lt;/STRONG&gt;&lt;SPAN&gt;into the &lt;/SPAN&gt;&lt;STRONG&gt;action-service-context.xml &lt;/STRONG&gt;&lt;SPAN&gt;file in order to be loaded into Spring context….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is: when executing the JUnit test class the following exception is raised:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;10:01:51,421 ERROR [alfresco.action.UploadFolderCleanerActionExecuterTest] Setup error&lt;BR /&gt;org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'deleteNodeAction' is defined&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:352)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:555)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at it.nsi.microarray.alfresco.action.UploadFolderCleanerActionExecuterTest.onSetUpInTransaction(UploadFolderCleanerActionExecuterTest.java:68)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:116)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:192)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestCase.runBare(TestCase.java:125)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult$1.protect(TestResult.java:106)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult.runProtected(TestResult.java:124)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestResult.run(TestResult.java:109)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestCase.run(TestCase.java:118)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestSuite.runTest(TestSuite.java:208)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at junit.framework.TestSuite.run(TestSuite.java:203)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)&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;It seems not to find the bean named 'deleteNodeAction'….Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Taking a look at the BaseSpringTest class, I found that it tries to load any .xml configuration file from the alfresco classpath (isn't it), so I was supposing that even the action-service-context.xml file was loaded, and my action class, too. What was wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be very appreciated….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the best.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sergio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 08:34:45 GMT</pubDate>
    <dc:creator>sergio</dc:creator>
    <dc:date>2007-08-10T08:34:45Z</dc:date>
    <item>
      <title>Custom Bean Action problems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117452#M82946</link>
      <description>Hi.I have created a new custom action as a Java class that implements the ActionExecuterAbstractBase as you suggest in the wiki documentation.Then, I created a class to test the new action executer, extending the BaseSpringTest class, too.The new action bean has been registered into the action-servi</description>
      <pubDate>Fri, 10 Aug 2007 08:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117452#M82946</guid>
      <dc:creator>sergio</dc:creator>
      <dc:date>2007-08-10T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Bean Action problems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117453#M82947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this all information in the log? No Caused by… line?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 14:20:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117453#M82947</guid>
      <dc:creator>tyve</dc:creator>
      <dc:date>2007-08-13T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Bean Action problems</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117454#M82948</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;Where have you defined this xml file? Either the xml file with the bean definition it is not found or its replacement is broken somehow (and you are seeing the old one in preference). I would add "custom" to the front of the filename to rule this out, make sure it is in the extension directory and check the classpath (you can get this from the admin screen if you start your app without your changes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 14:36:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-bean-action-problems/m-p/117454#M82948</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-09-10T14:36:58Z</dc:date>
    </item>
  </channel>
</rss>

