<?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 ApplicationModel NoClassDefFoundError in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/applicationmodel-noclassdeffounderror/m-p/126775#M89171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to implement my own bean that looks very similar as the SimpleWorkflow one. It should move a document when the action is triggered. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a part of the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;final NodeRef docNodeRef = new NodeRef(Repository.getStoreRef(), id);&lt;BR /&gt;NodeRef newParent = (NodeRef)nodeService.getProperty(docNodeRef, ApplicationModel.PROP_APPROVE_FOLDER);&lt;BR /&gt;nodeService.moveNode(docNodeRef,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newParent,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContentModel.ASSOC_CONTAINS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nodeService.getPrimaryParent(docNodeRef).getQName());&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The ContentModel seems to work fine but the ApplicationModel gives an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;javax.faces.el.EvaluationException: Exception while invoking expression #{MyBean.approve}&lt;BR /&gt;caused by: java.lang.NoClassDefFoundError: org/alfresco/model/ApplicationModel&lt;SPAN class="line-numbers-rows"&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;Any idea why? I imported the org.alfresco.model.ApplicationModel but should I register this in the faces-config as well (some Spring related issue maybe)? The ContentModel isn't and that doesn't break…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error seems to indicate there is something missing but I suppose something as important as the ApplicationModel should be there, no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 13:37:14 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2007-11-12T13:37:14Z</dc:date>
    <item>
      <title>ApplicationModel NoClassDefFoundError</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/applicationmodel-noclassdeffounderror/m-p/126775#M89171</link>
      <description>Alfresco,I'm trying to implement my own bean that looks very similar as the SimpleWorkflow one. It should move a document when the action is triggered. Here is a part of the code:final NodeRef docNodeRef = new NodeRef(Repository.getStoreRef(), id);NodeRef newParent = (NodeRef)nodeService.getProperty</description>
      <pubDate>Mon, 12 Nov 2007 13:37:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/applicationmodel-noclassdeffounderror/m-p/126775#M89171</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2007-11-12T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: ApplicationModel NoClassDefFoundError</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/applicationmodel-noclassdeffounderror/m-p/126776#M89172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's solved…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For future reference: the code above is only valid for 2.x environments, older Alfresco systems, like our 1.4.3 Enterprise one need this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef newParent = (NodeRef)nodeService.getProperty(docNodeRef, ContentModel.PROP_APPROVE_FOLDER);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco moved the ApplicationModel out of the ContentModel with 2.x.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 15:38:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/applicationmodel-noclassdeffounderror/m-p/126776#M89172</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2007-11-12T15:38:04Z</dc:date>
    </item>
  </channel>
</rss>

