I was finally able to get the chapter 14/15 Knowledge Base app running. My problem appears to have to do with internationalization. I should preface the rest of this post by saying that I'm new to Alfresco and I'm not a Java dev. If anyone can offer a suggestion as to how to properly solve this problem, I'm all ears.
I narrowed down my issue to to custom-slingshot-application-context.xml inside tomcat/shared/classes/alfresco/web-extension. There you will find the following bean:
Code:
<bean id="webscripts.resources" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.webscripts</value>
<value>alfresco.messages.slingshot</value>
<value>alfresco.web-extension.messages.kbsite</value>
</list>
</property>
</bean>
I changed this to the following:
Code:
<bean id="webscripts.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>webscripts.messages.webscripts</value>
<value>alfresco.messages.common</value>
<value>alfresco.messages.slingshot</value>
<value>alfresco.web-extension.messages.kbsite</value>
</list>
</property>
</bean>
I believe this will simply override the webscripts.resources bean inside slingshot-application-context.xml. Obviously it will not support i18n, but the KB app works and the default kbsite message bundle is utilized.
So, what have I done wrong such that the org.alfresco.i18n.ResourceBundleBootstrapComponent class is causing a problem?