<?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 Running Jeff Potts' web scripts tutorial code on Alfresco 4.2.c with Maven in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286560#M239690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a non-SDK development environment of Alfresco 4.2.c set up in Eclipse using Alfresco Maven. My main goal is to familiarise myself with Share development, content models, and web scripts for the upcoming project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only Alfresco tutorials I've found are Jeff Potts' &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer"&gt;Alfresco Developer Series&lt;/A&gt;&lt;SPAN&gt;. So far I've done the &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;Working with Custom Content Types, 2nd Edition&lt;/A&gt;&lt;SPAN&gt; and the simple part of &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf" rel="nofollow noopener noreferrer"&gt;Intro to the Web Script Framework&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second part of the web script tutorial requires downloading and running the code created by the author. I downloaded &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article-project.zip" rel="nofollow noopener noreferrer"&gt;the code&lt;/A&gt;&lt;SPAN&gt; and put everything from &amp;lt;em&amp;gt;src/&amp;lt;/em&amp;gt; directory into my &amp;lt;em&amp;gt;src/main/resources/&amp;lt;/em&amp;gt; directory. (I'm not sure where the &amp;lt;em&amp;gt;web/&amp;lt;/em&amp;gt; directory should go, but I don't think it matters for getting &amp;lt;em&amp;gt;src/&amp;lt;/em&amp;gt; to run).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several things about the sample code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- It is meant to be built with ant. There are &amp;lt;em&amp;gt;build.properties&amp;lt;/em&amp;gt; and &amp;lt;em&amp;gt;build.xml&amp;lt;/em&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- The tutorial is dated at 2007, nearly 6 years old now&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I restart Alfresco Tomcat, I get an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;em&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.someco.scripts.PostRating] for bean with name 'webscript.com.someco.ratings.rating.post' defined in file [/home/alexk/workspace/cabnet-alfresco/alfresco/target/alfresco/WEB-INF/classes/alfresco/extension/someco-scripts-context.xml]; nested exception is java.lang.ClassNotFoundException: com.someco.scripts.PostRating&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/em&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've checked and the code is there in those files with those class names. Being both Alfresco and Maven nubie I thought that this code should just run. Evidently some more config needs to be included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to get this code running in Maven Alfresco 4.2.c?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. If anyone knows other more current Alfresco (escpeically Share) tutorials I would be very interested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 23:07:50 GMT</pubDate>
    <dc:creator>akoudrin</dc:creator>
    <dc:date>2013-06-04T23:07:50Z</dc:date>
    <item>
      <title>Running Jeff Potts' web scripts tutorial code on Alfresco 4.2.c with Maven</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286560#M239690</link>
      <description>I have a non-SDK development environment of Alfresco 4.2.c set up in Eclipse using Alfresco Maven. My main goal is to familiarise myself with Share development, content models, and web scripts for the upcoming project.The only Alfresco tutorials I've found are Jeff Potts' Alfresco Developer Series.</description>
      <pubDate>Tue, 04 Jun 2013 23:07:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286560#M239690</guid>
      <dc:creator>akoudrin</dc:creator>
      <dc:date>2013-06-04T23:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jeff Potts' web scripts tutorial code on Alfresco 4.2.c with Maven</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286561#M239691</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;SPAN&gt;your webscript class must be in the classpath and check if the Spring's configuration of your script is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moreover if the webscript is Java-backed, remember that if you put it in some package its Spring class definition must reflect that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 07:50:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286561#M239691</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2013-06-05T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Jeff Potts' web scripts tutorial code on Alfresco 4.2.c with Maven</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286562#M239692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;akoudrin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can recommend the following excellent books:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&lt;/SPAN&gt;&lt;A href="http://www.amazon.com/Professional-Alfresco-Practical-Enterprise-Management/dp/0470571047/ref=sr_1_1?ie=UTF8&amp;amp;qid=1378942489&amp;amp;sr=8-1&amp;amp;keywords=alfresco+professional" rel="nofollow noopener noreferrer"&gt;Professional Alfresco (Wrox, 2010)&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&lt;/SPAN&gt;&lt;A href="http://www.amazon.com/Alfresco-Share-Amita-Bhandari/dp/184951710X/ref=sr_1_fkmr0_1?ie=UTF8&amp;amp;qid=1378942571&amp;amp;sr=8-1-fkmr0&amp;amp;keywords=packtpub+alfresco+share" rel="nofollow noopener noreferrer"&gt;Alfresco Share, (Packtpub, 2012)&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps. Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 00:16:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/running-jeff-potts-web-scripts-tutorial-code-on-alfresco-4-2-c/m-p/286562#M239692</guid>
      <dc:creator>eric_soto</dc:creator>
      <dc:date>2013-09-12T00:16:25Z</dc:date>
    </item>
  </channel>
</rss>

