Issue- Publish forms to file system/repository

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue- Publish forms to file system/repository

Hithesh
We re migrating from chiba to orbeon for many reasons. We want to use orbeon form builder to design xforms and publish the xhtml files into some folder repository. Eg c:\xforms.

After going through documentation, i made changes in web.xml and properties-local.xml
WEB.XML changes
<context-param>
        <param-name>oxf.resources.factory</param-name>
        <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
    </context-param>   
    <context-param>
        <param-name>oxf.resources.priority.1</param-name>
        <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
        <param-value>c:/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2</param-name>
        <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
        <param-value>/WEB-INF/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.3</param-name>
        <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.3.oxf.resources.filesystem.sandbox-directory</param-name>
        <param-value>c:/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.4</param-name>
        <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
    </context-param>
   
    <context-param>
        <param-name>oxf.classloader.enable</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.classloader.ignore-packages</param-name>
        <param-value>java. javax. org.apache.log4j. org.xml. org.w3c.</param-value>
    </context-param> 
    <context-param>
        <param-name>oxf.properties</param-name>
        <param-value>oxf:/config/properties.xml</param-value>
    </context-param>

PROPERTIES-LOCAL.XML i created this and added below

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors"
            xmlns:xi="http://www.w3.org/2001/XInclude">
     <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.UAB.*.*"   value="/fr/service/resource"/>   
</properties>


Following is the error i am getting when i click on publishing a form with Application name=UAB and Form name =Form1

2009-06-22 11:18:48,977 INFO  ProcessorService  - /fr/service/resource/crud/UAB/Form1/form/form.xhtml - Received request
2009-06-22 11:18:49,227 ERROR XSLTTransformer  - Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
2009-06-22 11:18:49,227 ERROR XSLTTransformer  - Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
2009-06-22 11:18:49,227 ERROR ProcessorService  - Exception at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl
org.orbeon.oxf.common.ValidationException: line 88 of oxf:/apps/fr/persistence/resource/crud.xpl: Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
oxf:/apps/fr/persistence/resource/crud.xpl, line 88, column -1: Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
Simplified stylesheet: xsl:version attribute is missing
        at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$1.createTransformer(XSLTTransformer.java:566)
        at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$1.readImpl(XSLTTransformer.java:144)
        at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:995)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1178)
        at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)

...


2009-06-22 11:11:04,415 INFO  ProcessorService  - /fr/service/resource/crud/UAB/a/form/form.xhtml - Timing: 4032 - Cache hits for cache.main: 114, fault: 16, adds: 14, expirations: 13, success rate: 87%
2009-06-22 11:11:04,493 ERROR XFormsServer  - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException: line 24 of oxf:/config/xforms-widgets.xsl (processing submission response): xforms:submission for submission id: fr-publish-form-submission, error code received when submitting instance: 500
oxf:/config/xforms-widgets.xsl, line 24, column -1: xforms:submission for submission id: fr-publish-form-submission, error code received when submitting instance: 500

Please give me some direction....
--Hithesh Gazzala





Reply | Threaded
Open this post in threaded view
|

Re: Issue- Publish forms to file system/repository

Erik Bruchez
Administrator
Hithesh,

Form Runner uses a REST API to talk to a persistence layer:

http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes

Currently we implement read/write/search support for eXist and Oracle  
XML. We have a read-only persistence layer implementation for the  
Orbeon Forms resource manager as well, but it is unable to perform  
writes at the moment. So you would have to either:

* Update this to support writes
* Write your own implementation to write files to disk

-Erik

On Jun 22, 2009, at 2:31 PM, hithesh gazzala wrote:

>
> We re migrating from chiba to orbeon for many reasons. We want to  
> use orbeon
> form builder to design xforms and publish the xhtml files into some  
> folder
> repository. Eg c:\xforms.
>
> After going through documentation, i made changes in web.xml and
> properties-local.xml
> WEB.XML changes
> <context-param>
>     <param-name>oxf.resources.factory</param-name>
>
> <param-
> value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-
> value>
> </context-param>
> <context-param>
>     <param-name>oxf.resources.priority.1</param-name>
>
> <param-
> value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</
> param-value>
> </context-param>
> <context-param>
>
> <param-name>oxf.resources.priority.
> 1.oxf.resources.filesystem.sandbox-directory</param-name>
>     <param-value>c:/resources</param-value>
> </context-param>
> <context-param>
>     <param-name>oxf.resources.priority.2</param-name>
>
> <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</
> param-value>
> </context-param>
> <context-param>
>
> <param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</
> param-name>
>     <param-value>/WEB-INF/resources</param-value>
> </context-param>
> <context-param>
>     <param-name>oxf.resources.priority.3</param-name>
>
> <param-
> value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</
> param-value>
> </context-param>
> <context-param>
>
> <param-name>oxf.resources.priority.
> 3.oxf.resources.filesystem.sandbox-directory</param-name>
>     <param-value>c:/resources</param-value>
> </context-param>
> <context-param>
>     <param-name>oxf.resources.priority.4</param-name>
>
> <param-
> value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</
> param-value>
> </context-param>
> <!--Orbeon Class Loader-->
> <context-param>
>     <param-name>oxf.classloader.enable</param-name>
>     <param-value>false</param-value>
> </context-param>
> <context-param>
>     <param-name>oxf.classloader.ignore-packages</param-name>
>     <param-value>java. javax. org.apache.log4j. org.xml.
> org.w3c.</param-value>
> </context-param>
> <context-param>
>     <param-name>oxf.properties</param-name>
>     <param-value>oxf:/config/properties.xml</param-value>
> </context-param>
>
> PROPERTIES-LOCAL.XML i created this and added below
>
> <properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
>         xmlns:oxf="http://www.orbeon.com/oxf/processors"
>         xmlns:xi="http://www.w3.org/2001/XInclude">
>  <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.UAB.*.*"
> value="/fr/service/resource"/>
> </properties>
>
>
> Following is the error i am getting when i click on publishing a  
> form with
> Application name=UAB and Form name =Form1
>
> 2009-06-22 11:18:48,977 INFO  ProcessorService  -
> /fr/service/resource/crud/UAB/Form1/form/form.xhtml - Received request
> 2009-06-22 11:18:49,227 ERROR XSLTTransformer  - Error at line 88 of
> oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> 2009-06-22 11:18:49,227 ERROR XSLTTransformer  - Error at line 88 of
> oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> 2009-06-22 11:18:49,227 ERROR ProcessorService  - Exception at line  
> 88 of
> oxf:/apps/fr/persistence/resource/crud.xpl
> org.orbeon.oxf.common.ValidationException: line 88 of
> oxf:/apps/fr/persistence/resource/crud.xpl: Error at line 88 of
> oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> oxf:/apps/fr/persistence/resource/crud.xpl, line 88, column -1:  
> Error at
> line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> Error at line 88 of oxf:/apps/fr/persistence/resource/crud.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> at
> org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer
> $1.createTransformer(XSLTTransformer.java:566)
> at
> org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer
> $1.readImpl(XSLTTransformer.java:144)
> at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:
> 995)
> at
> org.orbeon.oxf.processor.ProcessorImpl
> $ProcessorOutputImpl.read(ProcessorImpl.java:1178)
> at
> org
> .orbeon
> .oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:350)
>
> ...
>
>
> 2009-06-22 11:11:04,415 INFO  ProcessorService  -
> /fr/service/resource/crud/UAB/a/form/form.xhtml - Timing: 4032 -  
> Cache hits
> for cache.main: 114, fault: 16, adds: 14, expirations: 13, success  
> rate: 87%
> 2009-06-22 11:11:04,493 ERROR XFormsServer  - XForms - submission -
> xforms-submit-error throwable:
> org.orbeon.oxf.xforms.XFormsModelSubmission
> $XFormsSubmissionException: line
> 24 of oxf:/config/xforms-widgets.xsl (processing submission response):
> xforms:submission for submission id: fr-publish-form-submission,  
> error code
> received when submitting instance: 500
> oxf:/config/xforms-widgets.xsl, line 24, column -1:  
> xforms:submission for
> submission id: fr-publish-form-submission, error code received when
> submitting instance: 500
>
> Please give me some direction....
> --Hithesh Gazzala
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/Issue--Publish-forms-to-file-system-repository-tp24150856p24150856.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws