cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create content following the tutorial

walbar
Champ in-the-making
Champ in-the-making
Hi, I am new to alfresco and following the WCM tutorial.

I've reached the "Creating a New Company Footer" section but when I click next after "Step Two - Enter Content" a message error is displayed: "Please provide values for all required fields". But all fields are loaded exactly as the screenshot in the tutorial. At the same time I get the following log in the tomcat console:

[Warning] :3:130: schema_reference.4: Failed to read schema document 'http://www-alfresco-www--admin.avm.127-0-0-1.ip.alfrescodemo.net:8180/GetCompanyFooterSimp
leType', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Warning] :2:130: schema_reference.4: Failed to read schema document 'http://www-alfresco-www--admin.avm.127-0-0-1.ip.alfrescodemo.net:8180/GetCompanyFooterSimp
leType', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[Warning] :2:130: schema_reference.4: Failed to read schema document 'http://www-alfresco-www--admin.avm.127-0-0-1.ip.alfrescodemo.net:8180/GetCompanyFooterSimp
leType', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
13:00:43,515 ERROR [xml.xforms.Container] keeping org.chiba.xml.xforms.exception.XFormsSubmitError for rethrowal
13:01:55,281 ERROR [xml.xforms.Container] keeping org.chiba.xml.xforms.exception.XFormsSubmitError for rethrowal

Thanks in advance for your help,

Waldemar
8 REPLIES 8

arielb
Champ in-the-making
Champ in-the-making
the import of /GetCompanyFooterSimpleType in company_footer.xsd shouldn't be there (it's been fixed in our source tree).  but those are just warnings and should not be impacting submitting the form.

if you raise the volume on the org.chiba.xml.xforms logger (http://wiki.alfresco.com/wiki/Log4J_Configuration) it will tell you what field is invalid (obviously you shouldn't have to do this - i'm still working on providing more robust error reporting) - but regardless, if you have a value in each of the form fields, then the form should be submitting properly.  if you are adding multiple instances of the body tag, check that they are all filled in.

walbar
Champ in-the-making
Champ in-the-making
Hi Ariel,

Thanks for your prompt answer.

I followed your instructions, removed the /GetCompanyFooterSimpleType" line and activated the debugging log. Unfortunatelly it keeps not allowing me to submit the form with the same error message.

Please find below the log generated.

Thanks again,

Waldemar


18:42:01,409 DEBUG [templating.xforms.XFormsBean] org.alfresco.web.templating.xforms.XFormsBean@e7b92e fireAction(submit_0)
18:42:01,409 DEBUG [xml.xforms.ChibaBean] dispatch: targetId: submit_0, event: DOMActivate
18:42:01,409 DEBUG [xforms.events.AbstractXFormsEventFactory] creating event 'DOMActivate' (bubbling, cancelable)
18:42:01,409 DEBUG [xml.xforms.XFormsDocument] dispatch event: DOMActivate to [xforms:submit id='submit_0']
18:42:01,409 DEBUG [xforms.events.AbstractXFormsEventFactory] creating event 'xforms-submit' (bubbling, cancelable)
18:42:01,409 DEBUG [xml.xforms.XFormsDocument] dispatch event: xforms-submit to [xforms:submission id='submission_0']
18:42:01,409 DEBUG [xml.xforms.XFormsDocument] dispatch event: xforms-submit needed 0 ms
18:42:01,409 DEBUG [xml.xforms.XFormsDocument] perform default: xforms-submit
18:42:01,409 DEBUG [xml.xforms.Submission] [xforms:submission id='submission_0'] submit
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: processing [xforms:instance id='instance_0'] path '/' in submission mode
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#document: null] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [alfresco:company-footer: null] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:alfresco="http://www.alfresco.org/alfresco" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.alfresco.org/alfresco] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:chiba="http://chiba.sourceforge.net/xforms" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://chiba.sourceforge.net/xforms] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:ev="http://www.w3.org/2001/xml-events" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.w3.org/2001/xml-events] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:xforms="http://www.w3.org/2002/xforms" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.w3.org/2002/xforms] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:xhtml="http://www.w3.org/1999/xhtml" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.w3.org/1999/xhtml] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:xlink="http://www.w3.org/1999/xlink" with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.w3.org/1999/xlink] with @xforms:type='null:string' considered valid
18:42:01,409 DEBUG [xforms.constraints.Validator] validate: item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [#text: http://www.w3.org/2001/XMLSchema-instance] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [alfresco:name: null] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [#text: Alfresco] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [alfresco:body: null] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [#text: Alfresco is the leading open source alternative for enterprise content management. It is the first company to bring the power of open source to the enterprise content management market, enabling unprecedented scale and a much lower total cost of ownership than proprietary systems.<br>] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [alfresco:body: null] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.Validator] validate: item [#text: Founded by a team of content management veterans that includes the co-founder of Documentum, John Newton and former COO of Business Objects, John Powell. Alfresco is based in London. For more information, visit www.alfresco.com.] with @xforms:type='null:string' considered valid
18:42:01,425 DEBUG [xforms.constraints.RelevanceSelector] select relevant: processing /
18:42:01,425 DEBUG [xforms.connector.DefaultConnectorFactory] creating submission handler for 'http://localhost:8080/alfresco/ajax/invoke/XFormsBean.handleAction'
18:42:01,425 DEBUG [connector.http.AbstractHTTPConnector] context params>>>
18:42:01,425 DEBUG [connector.http.AbstractHTTPConnector] request-cookie=[Lorg.apache.commons.httpclient.Cookie;@190f782
18:42:01,425 DEBUG [connector.http.AbstractHTTPConnector] <<<end params
18:42:01,425 ERROR [xml.xforms.Container] keeping org.chiba.xml.xforms.exception.XFormsSubmitError for rethrowal
18:42:01,425 DEBUG [xforms.events.AbstractXFormsEventFactory] creating event 'xforms-submit-error' (bubbling, cancelable)
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] dispatch event: xforms-submit-error to [xforms:submission id='submission_0']
18:42:01,425 DEBUG [templating.xforms.XFormsBean] received event org.chiba.xml.xforms.events.impl.XercesEventImpl@697dbc
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] dispatch event: xforms-submit-error needed 0 ms
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] perform default: xforms-submit-error
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] perform default: xforms-submit-error needed 0 ms
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] perform default: xforms-submit needed 16 ms
18:42:01,425 WARN  [xml.xforms.Container] non-fatal xforms error: instance submission failed
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] dispatch event: DOMActivate needed 16 ms
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] perform default: DOMActivate
18:42:01,425 DEBUG [xml.xforms.XFormsDocument] perform default: DOMActivate needed 0 ms
18:42:01,425 DEBUG [templating.xforms.XFormsBean] adding event xforms-submit-error to the event log
18:42:01,425 DEBUG [templating.xforms.XFormsBean] adding property {:http://localhost:8080/alfresco/ajax/invoke/XFormsBean.handleAction} to event xforms-submit-error
18:42:01,425 DEBUG [web.templating.TemplatingService] writing out a document for events to org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl@1bdf003
18:42:01,425 DEBUG [web.templating.TemplatingService] <?xml version="1.0" encoding="UTF-8"?>
<events>
<xforms-submit-error targetId="submission_0" targetName="submission">
<property name="" value="http://localhost:8080/alfresco/ajax/invoke/XFormsBean.handleAction'/>
</xforms-submit-error>
</events>

arielb
Champ in-the-making
Champ in-the-making
hmmm….

i've not seen this before.  your form inputs are indeed valid.  are cookies enabled in your browser? (it seems like they are but just want to confirm).

are you able to fill out the company footer form?

could you try creating a form from a very simple xsd and see if you can get that filled out?  (you don't need to upload a corresponding xsl)

something like:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormQualified="true">
  <xs:element name="simple">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="value" type="xs:string" default="default value"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

also - what url are you using to access the webapp?  is it http://localhost:8080/alfresco.

and what browser are you using (highly doubt this is related … but the more information the better as this seems weird).

walbar
Champ in-the-making
Champ in-the-making
Hi Ariel,

Thanks a lot for your answer.

The error is shown when, following the tutorial, I fill out the company footer form and press "Next". I'll check that schema you pasted and give you the feedback. I'm browsing the site from localhost:8080/alfresco using Firefox.

Thanks again,

Waldemar

walbar
Champ in-the-making
Champ in-the-making
Hi Ariel,

I checked your schema. Unfortunately I couldn't make it work. After uploading it as a Form I tried to create content using it and I got the following error message:

XMLHttpTransport Error: 500 Failed to execute method XFormsBean.getXForm: document container not present

The console logged the following:

10:08:45,383 DEBUG [web.templating.TemplatingService] <?xml version="1.0" encoding="UTF-8"?>
<div id="alf-ui">
<script type="text/javascript">
djConfig = { isDebug: true };
var WEBAPP_CONTEXT = "/alfresco";
</script>
<script src="/alfresco/scripts/tiny_mce/tiny_mce_src.js" type="text/javascript">

</script>
<script src="/alfresco/scripts/ajax/dojo/dojo.js.uncompressed.js" type="text/jav
ascript">
</script>
<script src="/alfresco/scripts/ajax/xforms.js" type="text/javascript">
</script>
</div>

10:08:46,485 DEBUG [templating.xforms.XFormsBean] org.alfresco.web.templating.xforms.XFormsBean@1cedaf2 building xform
10:08:46,485 DEBUG [templating.xforms.XFormsBean] building xform for Test Schema 2
10:08:46,485 ERROR [alfresco.ajax] org.chiba.xml.xforms.exception.XFormsException: document container not present

By the way, I would like to ask about a weird situation. After getting this error I tried to delete the form, I got to 'My Alfresco > Company Home > Data Dictionary > Content Forms' and pressed 'delete' in the menu below the form. These options were shown:

What do you want to delete?
- This space and all its contents. Note: Rules will also be deleted.
- Only the files within this space.
- Only the folders within this space.
- Files and folders within this space.

I tried all of them and none produced any effect. But, besides, are they referring to the whole space, instead of referring to the form?. Maybe I'm wrong, could you clarify this?

Thanks a lot in advace, your answers would be of great help since we are very interested in Alfresco for our project, just got a bit blocked with these issues.

Regards,

Waldemar

walbar
Champ in-the-making
Champ in-the-making
Ariel,

I re-tried deleting the form, I was wrong, the first option works and deleted it correctly. Now I understand that the 'space' term is relative.

'This space and all its contents. Note: Rules will also be deleted.'

Regards,

Waldemar

walbar
Champ in-the-making
Champ in-the-making
Ariel,

Finally I decided to drop the database schema, reinstall the WCM and restart the tutorial from scratch. Once I did it I could perfectly finnish the tutorial without problems.

I cannot tell you the source of those issues, but anyway I congratulate you for such great tool and tutorial.

Thanks a lot for your help.

Waldemar

mzafer
Champ in-the-making
Champ in-the-making
Hi Waldemar,

What did you do to fix that error. After reading the forum, I tried to reinstall, but it does'nt help me. I still get the error "Please provide values for all required fields."

Thanks
Mohamed