<?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 Error Deploying a Java-backed web script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-deploying-a-java-backed-web-script/m-p/273957#M227087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm newbie in Alfresco and I'm reading the book Professional Alfresco and Alfresco wiki to understand how to write my service using Javascript and Java. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For reference here are the listing of the files and their locations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Via Alfresco Explorer: Company Home -&amp;gt; Data Dictionary -&amp;gt; Web Scripts Extensions -&amp;gt; org -&amp;gt; example -&amp;gt; javadir.get.desc.xml&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Via Alfresco Explorer: Company Home -&amp;gt; Data Dictionary -&amp;gt; Web Scripts Extensions -&amp;gt; org -&amp;gt; example -&amp;gt; javadir.get.html.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Created and copied the javadir-context.xml into tomcat/shared/classes/alfresco/extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Created and copied the classes into tomcat/shared/classes/org/example/JavaDir.class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to restart tomcat, I can see that DeclarativeWebScript class is missing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/extensions/webscripts/DeclarativeWebScript"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I fix that problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 09:25:39 GMT</pubDate>
    <dc:creator>andrea_girardi</dc:creator>
    <dc:date>2011-09-20T09:25:39Z</dc:date>
    <item>
      <title>Error Deploying a Java-backed web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-deploying-a-java-backed-web-script/m-p/273957#M227087</link>
      <description>Hi all,I'm newbie in Alfresco and I'm reading the book Professional Alfresco and Alfresco wiki to understand how to write my service using Javascript and Java. For reference here are the listing of the files and their locations:Via Alfresco Explorer: Company Home -&amp;gt; Data Dictionary -&amp;gt; Web Scri</description>
      <pubDate>Tue, 20 Sep 2011 09:25:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-deploying-a-java-backed-web-script/m-p/273957#M227087</guid>
      <dc:creator>andrea_girardi</dc:creator>
      <dc:date>2011-09-20T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error Deploying a Java-backed web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-deploying-a-java-backed-web-script/m-p/273958#M227088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the problem: I copyed on tomcat/shared/lib the .jar needed on my class. But, when I try to restart the tomcat I can see that exception on log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.alfresco.repo.model.Repository' to required type 'org.alfresco.repo.model.Repository' for property 'repository'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.alfresco.repo.model.Repository] to required type [org.alfresco.repo.model.Repository] for property 'repository': no matching editors or conversion strategy found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggest? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question, why the org.alfresco.service.cmr.repository.NodeRef; is missing on alfresco jar 3.4-d?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 11:39:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-deploying-a-java-backed-web-script/m-p/273958#M227088</guid>
      <dc:creator>andrea_girardi</dc:creator>
      <dc:date>2011-09-20T11:39:28Z</dc:date>
    </item>
  </channel>
</rss>

