<?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 bean definition getting awry  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297057#M250187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;looks like I stumbled upon another issue&amp;nbsp; that's troubling me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For my little project I followed the steps in Jeff Potts fine tutorial&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using the Eclipse and the Alfresco Maven-SDK.&amp;nbsp; To connect my custom &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;content model with my localized labels in fooModel.properties, I &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;created a foo-content-share-context.xml with a bean referring to my model:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="${project.artifactId}_resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="resourceBundles"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;alfresco.module.${project.artifactId}.messages.fooModel&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Except for the 'foo' this is just copy/pasted from the tutorial. "${project.artifactId}" gets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;replaced with the artifactId by maven during the build process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem now is, that Eclipse puts a red flag on the bean definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Multiple annotations found at this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Start tag of element &amp;lt;bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Attribute value "${project.artifactId}_resources" of type ID must be a name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/cite&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This behaviour seems to new – it worked like this before and I didn't change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the code or other relevant parts of the code so this one comes out of the blue for me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what kind of magic I need to make that one work again. (And BTW: am I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the only one who fell into this pit?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 13:38:02 GMT</pubDate>
    <dc:creator>hello_wrold</dc:creator>
    <dc:date>2014-05-09T13:38:02Z</dc:date>
    <item>
      <title>bean definition getting awry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297057#M250187</link>
      <description>Hello there,looks like I stumbled upon another issue&amp;nbsp; that's troubling me.For my little project I followed the steps in Jeff Potts fine tutorialusing the Eclipse and the Alfresco Maven-SDK.&amp;nbsp; To connect my custom content model with my localized labels in fooModel.properties, I created a foo-content-s</description>
      <pubDate>Fri, 09 May 2014 13:38:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297057#M250187</guid>
      <dc:creator>hello_wrold</dc:creator>
      <dc:date>2014-05-09T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: bean definition getting awry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297058#M250188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you remove original &amp;lt;CODE&amp;gt;content-share-context.xml&amp;lt;/CODE&amp;gt; file? If there are both, Spring bean name will conflict.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 14:37:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297058#M250188</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-14T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: bean definition getting awry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297059#M250189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just checked: the original &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;content-share-context.xml&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; is removed already; there are no other files in my web-extension directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyway,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; -daniel&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:18:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297059#M250189</guid>
      <dc:creator>hello_wrold</dc:creator>
      <dc:date>2014-05-14T16:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: bean definition getting awry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297060#M250190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried to change &amp;lt;CODE&amp;gt;bean id="${project.artifactId}_resources"&amp;lt;/CODE&amp;gt; by another name (ex. "${project.artifactId}_foo_resources")?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will not show the problem, but may let you continue with the project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297060#M250190</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-14T16:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: bean definition getting awry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297061#M250191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I did was to replace the &amp;lt;cite&amp;gt;${project.artifactId}&amp;lt;/cite&amp;gt; with the actual artifactId by hand just to get a working enviroment. However, hardcoding isn't exactly the way it ought to be and sooner or later I will run into other surprises.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;… and I have no idea how I managed to run into this in the first place. My Maven-foo is kind of limited and I didn't touch it's innards. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 10:45:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bean-definition-getting-awry/m-p/297061#M250191</guid>
      <dc:creator>hello_wrold</dc:creator>
      <dc:date>2014-05-21T10:45:15Z</dc:date>
    </item>
  </channel>
</rss>

