<?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 Problems creating new content type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93467#M63968</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 some problems when i try to create a new content (and it's associated index page) following the example shown in &lt;/SPAN&gt;&lt;STRONG&gt;WCM Evaluation Guide 2.0&lt;/STRONG&gt;&lt;SPAN&gt;. To keep things simple, I imported the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"alfresco-demo-website.war" and use the same path (media/releases/content…) to put my new content as the PressRelease example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The steps I followed are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1) Create Content "my_content"&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1a) Create Web Form&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1b) Assign my_content.xsd as content definition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1c) Assign my_content.xsl as template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1d) Finish without workflow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2) Create Content Bean&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2a) Download alfresco SDK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2b) Create MyContentBean.java. Its content is copied from PressReleaseBean &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;3) Create Tag Library&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 3a) Create cont.tld with the functions to get all the contents of type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "my_content" (the namespace is called "cont" instead of "pr").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I go to "Web Projects": &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;4) Go to the path: media\releases.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 4a) I replace the current index.jsp (the one with PressRelease stuff) with a new one to render objects of type "my_content" calling methods declared in the .tld file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;5) Then I go to WEB-INF&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 5a) Register "my_content.tld"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 5b) Put the MyContentBean.class file into WEB INF\lib\org\mycompany\cont&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally when I click on index.jsp to view my new contents tomcat says "&lt;/SPAN&gt;&lt;STRONG&gt;can't find org.mycompany.cont.MyContentBean specified in TLD&lt;/STRONG&gt;&lt;SPAN&gt;".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I donÂ´t know if I have forgotten anything or if the procedure used to show my new contents is incomplete (xsd&amp;nbsp; + xsl + class + tld + jsp). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same error occurs for PressRelease when I delete "alfresco-demo-website.jar" and org\alfresco\web\pr\PressReleaseBean.class (the solution for this case its to do a new bulk import of "alfresco-demo-website.war").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know what is the relationship between alfresco-demo-website.war and alfresco-demo-website.jar and why my example doesn't work like PressRelease.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2007 09:36:36 GMT</pubDate>
    <dc:creator>bender22</dc:creator>
    <dc:date>2007-05-28T09:36:36Z</dc:date>
    <item>
      <title>Problems creating new content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93467#M63968</link>
      <description>HiI have some problems when i try to create a new content (and it's associated index page) following the example shown in WCM Evaluation Guide 2.0. To keep things simple, I imported the"alfresco-demo-website.war" and use the same path (media/releases/content…) to put my new content as the PressRelea</description>
      <pubDate>Mon, 28 May 2007 09:36:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93467#M63968</guid>
      <dc:creator>bender22</dc:creator>
      <dc:date>2007-05-28T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems creating new content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93468#M63969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you're doing everything right except for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;5b) Put the MyContentBean.class file into WEB INF\&lt;STRONG&gt;lib&lt;/STRONG&gt;\org\mycompany\cont&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;this needs to go into WEB-INF/&lt;/SPAN&gt;&lt;STRONG&gt;classes&lt;/STRONG&gt;&lt;SPAN&gt;/org/mycompany/cont.&amp;nbsp; jar files go in lib - class files in classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 16:37:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93468#M63969</guid>
      <dc:creator>arielb</dc:creator>
      <dc:date>2007-06-04T16:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems creating new content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93469#M63970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks man, I finally got it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 09:33:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-creating-new-content-type/m-p/93469#M63970</guid>
      <dc:creator>bender22</dc:creator>
      <dc:date>2007-06-05T09:33:15Z</dc:date>
    </item>
  </channel>
</rss>

