cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating content for potd in WCM

sagarsway
Champ in-the-making
Champ in-the-making
Hello All ,

     I added Web-form using content model as potd.xsd with template as potd.xls , But while creating potd content , i am getting following error ,
—————————————————————————

  Step Two - Author Web Content
Enter your document content into the repository.

org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 36 column 65: src-resolve: Cannot resolve the name 'potd:channel_choices' to a(n) 'type definition' component. 

To continue click Next.
————————————————————————–
Please suggest me solution for this if anyone knows
2 REPLIES 2

pmonks
Star Contributor
Star Contributor
That error is often caused by an xs:include or xs:import in the master XSD that's failing to resolve.  Does the potd.xsd file include any xs:include or xs:import statements, and if so, do those included or imported schemas exist in the Web Project?

jzulu2000
Champ in-the-making
Champ in-the-making
I think this is because you haven't updated the NavigationTree.xml and SC.xml; you have to update those files from the "wsf-1.5-website-war.zip" file downloaded; after updating those files, restart alfresco and the virtualization server and it should work now. It worked for me!

I think tha main reason for this to fail is that /views/components/channel-navigation.jsp doesn't compile because <c:import url="${menuHtml}" var="doc"/> evaluates to null or ""; and this evaluates to null because <c:set var="navigation" value="${ds:getConfiguration(pageContext,'Navigation')}"/> doesn't find Navigation in pageContext; and this is definided in SC.xml; I'm not sure about that, but for me, updating those two files worked.