Command line XPL - help needed

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

Command line XPL - help needed

Marco Lebel-2
Hello all,

I am trying to build a command line application using XPL and all of its
processors.  So as a test I created this XPL file inspired from the sandbox:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Validate input document with schema -->
    <p:processor name="oxf:validation">
        <p:input name="data" href="../schema/registration.xml"/>
        <p:input name="schema" href="../schema/registration.xsd"/>
        <p:input name="config">
            <config>
                <decorate>true</decorate>
            </config>
        </p:input>
        <p:output name="data" id="validation"/>
    </p:processor>
   
    <p:processor name="oxf:xml-converter">
        <p:input name="config"><config/></p:input>
        <p:input name="data" href="#validation"/>
        <p:output name="data" id="xml"/>
    </p:processor>

    <!-- Serialize -->
    <p:processor name="oxf:http-serializer">
        <p:input name="config"><config/></p:input>
        <p:input name="data" href="#xml"/>
    </p:processor>

</p:config>


This file can be call in command mode and works...  Then for testing
purposes I decided to split that file in two in order to try the
sub-pipeline concept.
So I have the following file being the sub-pipeline(validation.xpl):
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <p:param name="instance" type="input"/>
    <p:param name="schema" type="input"/>
    <p:param name="decorated" type="output"/>

    <!-- Validate input document with schema -->
    <p:processor name="oxf:validation">
        <p:input name="data" href="#instance"/>
        <p:input name="schema" href="#schema"/>
        <p:input name="config">
            <config>
                <decorate>true</decorate>
            </config>
        </p:input>
        <p:output name="data" id="validation"/>
    </p:processor>
   
    <p:processor name="oxf:xml-converter">
        <p:input name="config"><config/></p:input>
        <p:input name="data" href="#validation"/>
        <p:output name="data" ref="decorated"/>
    </p:processor>

</p:config>

and this calling pipeline file(test.xpl):
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <p:processor name="oxf:pipeline">
        <p:input name="config" href="validation.xpl"/>
        <p:input name="schema" href="../schema/registration.xsd"/>
        <p:input name="instance" href="../schema/registration.xml"/>
        <p:output name="decorated" id="result"/>
    </p:processor>

    <p:processor name="oxf:http-serializer">
        <p:input name="config"><config/></p:input>
        <p:input name="data" href="#result"/>
    </p:processor>

</p:config>


When I run this pipeline in command mode I get the following error:
2009-06-09 18:31:24,639 INFO  org.orbeon.oxf.main.OPS  - Running processor
2009-06-09 18:31:24,737 ERROR org.orbeon.oxf.main.OPS  - Exception at
line 8, column 49 of oxf:/local/vlc/proof/xpl/test.xpl (reading
processor output: name='decorated', id='result')
org.orbeon.oxf.resources.ResourceNotFoundException: Cannot read from
file /local/vlc/proof/xpl/validation.xpl
    at
org.orbeon.oxf.resources.FilesystemResourceManagerImpl.getContentAsStream(FilesystemResourceManagerImpl.java:67)
    at
org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:128)
    at
org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:122)
    at
org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:271)
:
:

This is the same error I get when I try to call from the command line a
pipeline containing a reference to the xform-submission processor
mention in another thread.

Any help will be appreciated and thanks in advance.


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Command line XPL - help needed

Alessandro Vernet
Administrator
Marco,

Marco Lebel-2 wrote
org.orbeon.oxf.resources.ResourceNotFoundException: Cannot read from
file /local/vlc/proof/xpl/validation.xpl
So it is looking for the file /local/vlc/proof/xpl/validation.xpl. The validation.xpl is not in that directory? Where is it?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Command line XPL - help needed

Marco Lebel-2
Alex

Thank you for pointing out that one should always look for the
obvious... The file name had a typo ARGH ARGH

So it does solve the issue of calling a sub pipeline as long as your
filename do not have a typo :-[

Now what about the xform-submission in the other thread that still does
not work even after I had added private resources on my classpath as
suggested by Erik and by the way I did check that the name did not
include a typo ;-)

me,

Alessandro Vernet wrote:

> Marco,
>
>
> Marco Lebel-2 wrote:
>  
>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot read from
>> file /local/vlc/proof/xpl/validation.xpl
>>
>>    
>
> So it is looking for the file /local/vlc/proof/xpl/validation.xpl. The
> validation.xpl is not in that directory? Where is it?
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
>  


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Command line XPL - help needed

Alessandro Vernet
Administrator
Marco,

Marco Lebel-2 wrote
Thank you for pointing out that one should always look for the
obvious... The file name had a typo ARGH ARGH

So it does solve the issue of calling a sub pipeline as long as your
filename do not have a typo :-[
If you only knew how often this happens to me... (OK, maybe it is better for me not say!).

Marco Lebel-2 wrote
Now what about the xform-submission in the other thread that still does
not work even after I had added private resources on my classpath as
suggested by Erik and by the way I did check that the name did not
include a typo ;-)
That is strange; have you checked that this file is indeed in your orbeon-resources-private.jar? Have you tried adding this file to META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be missing right now)?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Command line XPL - help needed

Marco Lebel-2
Alex,

I just finish verifying the manifest content of the orbeon-cli.jar file
in the WEB-INF directory an all of the jar files from the lib directory
are present except for all those that start with orbeon*.jar, they are
excluded from the manifest.  Should I update the manifest with them
all?  and as a side question should the CLASSPATH mechanism work here?

Marco

btw.: this is 3.7.1 dev distribution.


Alessandro Vernet wrote:

> Marco,
>
>
> Marco Lebel-2 wrote:
>  
>> Thank you for pointing out that one should always look for the
>> obvious... The file name had a typo ARGH ARGH
>>
>> So it does solve the issue of calling a sub pipeline as long as your
>> filename do not have a typo :-[
>>
>>    
>
> If you only knew how often this happens to me... (OK, maybe it is better for
> me not say!).
>
>
> Marco Lebel-2 wrote:
>  
>> Now what about the xform-submission in the other thread that still does
>> not work even after I had added private resources on my classpath as
>> suggested by Erik and by the way I did check that the name did not
>> include a typo ;-)
>>
>>    
>
> That is strange; have you checked that this file is indeed in your
> orbeon-resources-private.jar? Have you tried adding this file to
> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be missing
> right now)?
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
>  


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Command line XPL - help needed

Erik Bruchez
Administrator
Marco,

When using java -jar, the classpath is not used AFAIK.

And yes, I think that orbeon-resources-private.jar should be in the  
manifest. Can you please try and let us know if that works?

-Erik

On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:

> Alex,
>
> I just finish verifying the manifest content of the orbeon-cli.jar  
> file in the WEB-INF directory an all of the jar files from the lib  
> directory are present except for all those that start with  
> orbeon*.jar, they are excluded from the manifest.  Should I update  
> the manifest with them all?  and as a side question should the  
> CLASSPATH mechanism work here?
>
> Marco
>
> btw.: this is 3.7.1 dev distribution.
>
>
> Alessandro Vernet wrote:
>> Marco,
>>
>>
>> Marco Lebel-2 wrote:
>>
>>> Thank you for pointing out that one should always look for the  
>>> obvious... The file name had a typo ARGH ARGH
>>>
>>> So it does solve the issue of calling a sub pipeline as long as  
>>> your filename do not have a typo :-[
>>>
>>>
>>
>> If you only knew how often this happens to me... (OK, maybe it is  
>> better for
>> me not say!).
>>
>>
>> Marco Lebel-2 wrote:
>>
>>> Now what about the xform-submission in the other thread that still  
>>> does not work even after I had added private resources on my  
>>> classpath as suggested by Erik and by the way I did check that the  
>>> name did not include a typo ;-)
>>>
>>>
>>
>> That is strange; have you checked that this file is indeed in your
>> orbeon-resources-private.jar? Have you tried adding this file to
>> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be  
>> missing
>> right now)?
>>
>> Alex
>>
>> -----
>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>> Orbeon's Blog: http://www.orbeon.com/blog/
>> Personal Blog: http://avernet.blogspot.com/
>> Twitter - http://twitter.com/avernet
>>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Command line XPL - help needed

Marco Lebel-2
Erik, Alex,

Thanks for your help, it would appear that by modifying the manifest as
oppose to the CLASSPATH, as you initially suggested, was the key in
solving the issue of the file not found AHU... Another Happy User.

Of course now I am facing the next hurdle... which seems to demonstrate
that I really do not get it when it comes to connecting processors in a
pipeline

My understanding is that if I have the following pipeline
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <p:processor name="oxf:xforms-submission">
        <p:input name="submission">
           <xforms:submission
xmlns:xforms="http://www.w3.org/2002/xforms" method="get"
action="http://localhost:8080/orbeon/exist/rest/db/orbeon/xforms-bookcast/books.xml"/>
        </p:input>
        <p:input name="request">
           <dummy/>
        </p:input>
        <p:output name="response" id="response"/>
    </p:processor>

I need to connect a processor in here but so far any processor that I
put in the chain except the null-serializer generates the following error:

Initializing Resource Manager with:
{oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory,
oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory}
2009-06-19 10:55:47,971 INFO  org.orbeon.oxf.main.OPS  - Running processor
2009-06-19 10:55:48,916 ERROR org.orbeon.oxf.main.OPS  - Exception at
oxf:/ops/xforms/xforms-submission.xpl (executing XSLT transformation)
org.orbeon.oxf.common.OXFException: Root element must contain an
xsi:type attribute
    at
org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:110)
    at
org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69)
    at
org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268)


I guess my question is which processor do I need in the chain in order
to see the result of the get/put/post/delete?  I was under the
impression that the data that came out of the xforms:submission was an
html document... like with curl


Erik Bruchez wrote:

> Marco,
>
> When using java -jar, the classpath is not used AFAIK.
>
> And yes, I think that orbeon-resources-private.jar should be in the
> manifest. Can you please try and let us know if that works?
>
> -Erik
>
> On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:
>
>> Alex,
>>
>> I just finish verifying the manifest content of the orbeon-cli.jar
>> file in the WEB-INF directory an all of the jar files from the lib
>> directory are present except for all those that start with
>> orbeon*.jar, they are excluded from the manifest.  Should I update
>> the manifest with them all?  and as a side question should the
>> CLASSPATH mechanism work here?
>>
>> Marco
>>
>> btw.: this is 3.7.1 dev distribution.
>>
>>
>> Alessandro Vernet wrote:
>>> Marco,
>>>
>>>
>>> Marco Lebel-2 wrote:
>>>
>>>> Thank you for pointing out that one should always look for the
>>>> obvious... The file name had a typo ARGH ARGH
>>>>
>>>> So it does solve the issue of calling a sub pipeline as long as
>>>> your filename do not have a typo :-[
>>>>
>>>>
>>>
>>> If you only knew how often this happens to me... (OK, maybe it is
>>> better for
>>> me not say!).
>>>
>>>
>>> Marco Lebel-2 wrote:
>>>
>>>> Now what about the xform-submission in the other thread that still
>>>> does not work even after I had added private resources on my
>>>> classpath as suggested by Erik and by the way I did check that the
>>>> name did not include a typo ;-)
>>>>
>>>>
>>>
>>> That is strange; have you checked that this file is indeed in your
>>> orbeon-resources-private.jar? Have you tried adding this file to
>>> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be
>>> missing
>>> right now)?
>>>
>>> Alex
>>>
>>> -----
>>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>>> Orbeon's Blog: http://www.orbeon.com/blog/
>>> Personal Blog: http://avernet.blogspot.com/
>>> Twitter - http://twitter.com/avernet
>>>
>>
>>
>> --
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Command line XPL - help needed

Marco Lebel-2
Hello Erik, Alex,

Please ignore the following my understanding was correct... but my
fingers are not.  One think he should learn to read what was is written
and not what was intended.

So bottom line all his fine and working as I expected it.

Marco,
Does you dog bite  ....  It is not my dog :-)

Marco Lebel wrote:

> Erik, Alex,
>
> Thanks for your help, it would appear that by modifying the manifest
> as oppose to the CLASSPATH, as you initially suggested, was the key in
> solving the issue of the file not found AHU... Another Happy User.
>
> Of course now I am facing the next hurdle... which seems to
> demonstrate that I really do not get it when it comes to connecting
> processors in a pipeline
>
> My understanding is that if I have the following pipeline
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>    <p:processor name="oxf:xforms-submission">
>        <p:input name="submission">
>           <xforms:submission
> xmlns:xforms="http://www.w3.org/2002/xforms" method="get"
> action="http://localhost:8080/orbeon/exist/rest/db/orbeon/xforms-bookcast/books.xml"/>
>
>        </p:input>
>        <p:input name="request">
>           <dummy/>
>        </p:input>
>        <p:output name="response" id="response"/>
>    </p:processor>
>
> I need to connect a processor in here but so far any processor that I
> put in the chain except the null-serializer generates the following
> error:
>
> Initializing Resource Manager with:
> {oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory,
> oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory}
>
> 2009-06-19 10:55:47,971 INFO  org.orbeon.oxf.main.OPS  - Running
> processor
> 2009-06-19 10:55:48,916 ERROR org.orbeon.oxf.main.OPS  - Exception at
> oxf:/ops/xforms/xforms-submission.xpl (executing XSLT transformation)
> org.orbeon.oxf.common.OXFException: Root element must contain an
> xsi:type attribute
>    at
> org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:110)
>
>    at
> org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69)
>
>    at
> org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268)
>
>
>
> I guess my question is which processor do I need in the chain in order
> to see the result of the get/put/post/delete?  I was under the
> impression that the data that came out of the xforms:submission was an
> html document... like with curl
>
>
> Erik Bruchez wrote:
>> Marco,
>>
>> When using java -jar, the classpath is not used AFAIK.
>>
>> And yes, I think that orbeon-resources-private.jar should be in the
>> manifest. Can you please try and let us know if that works?
>>
>> -Erik
>>
>> On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:
>>
>>> Alex,
>>>
>>> I just finish verifying the manifest content of the orbeon-cli.jar
>>> file in the WEB-INF directory an all of the jar files from the lib
>>> directory are present except for all those that start with
>>> orbeon*.jar, they are excluded from the manifest.  Should I update
>>> the manifest with them all?  and as a side question should the
>>> CLASSPATH mechanism work here?
>>>
>>> Marco
>>>
>>> btw.: this is 3.7.1 dev distribution.
>>>
>>>
>>> Alessandro Vernet wrote:
>>>> Marco,
>>>>
>>>>
>>>> Marco Lebel-2 wrote:
>>>>
>>>>> Thank you for pointing out that one should always look for the
>>>>> obvious... The file name had a typo ARGH ARGH
>>>>>
>>>>> So it does solve the issue of calling a sub pipeline as long as
>>>>> your filename do not have a typo :-[
>>>>>
>>>>>
>>>>
>>>> If you only knew how often this happens to me... (OK, maybe it is
>>>> better for
>>>> me not say!).
>>>>
>>>>
>>>> Marco Lebel-2 wrote:
>>>>
>>>>> Now what about the xform-submission in the other thread that still
>>>>> does not work even after I had added private resources on my
>>>>> classpath as suggested by Erik and by the way I did check that the
>>>>> name did not include a typo ;-)
>>>>>
>>>>>
>>>>
>>>> That is strange; have you checked that this file is indeed in your
>>>> orbeon-resources-private.jar? Have you tried adding this file to
>>>> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be
>>>> missing
>>>> right now)?
>>>>
>>>> Alex
>>>>
>>>> -----
>>>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>>>> Orbeon's Blog: http://www.orbeon.com/blog/
>>>> Personal Blog: http://avernet.blogspot.com/
>>>> Twitter - http://twitter.com/avernet
>>>>
>>>
>>>
>>> --
>>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Command line XPL - help needed

Erik Bruchez
Administrator
Great, so in the end did you have to modify the manifest? If so, we  
should make that change on our end as well.

-Erik

On Jun 19, 2009, at 1:46 PM, Marco Lebel wrote:

> Hello Erik, Alex,
>
> Please ignore the following my understanding was correct... but my  
> fingers are not.  One think he should learn to read what was is  
> written and not what was intended.
>
> So bottom line all his fine and working as I expected it.
>
> Marco,
> Does you dog bite  ....  It is not my dog :-)
>
> Marco Lebel wrote:
>> Erik, Alex,
>>
>> Thanks for your help, it would appear that by modifying the  
>> manifest as oppose to the CLASSPATH, as you initially suggested,  
>> was the key in solving the issue of the file not found AHU...  
>> Another Happy User.
>>
>> Of course now I am facing the next hurdle... which seems to  
>> demonstrate that I really do not get it when it comes to connecting  
>> processors in a pipeline
>>
>> My understanding is that if I have the following pipeline
>> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>>
>>   <p:processor name="oxf:xforms-submission">
>>       <p:input name="submission">
>>          <xforms:submission xmlns:xforms="http://www.w3.org/2002/xforms 
>> " method="get" action="http://localhost:8080/orbeon/exist/rest/db/orbeon/xforms-bookcast/books.xml 
>> "/>
>>       </p:input>
>>       <p:input name="request">
>>          <dummy/>
>>       </p:input>
>>       <p:output name="response" id="response"/>
>>   </p:processor>
>>
>> I need to connect a processor in here but so far any processor that  
>> I put in the chain except the null-serializer generates the  
>> following error:
>>
>> Initializing Resource Manager with: {oxf.resources.priority.
>> 1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory,  
>> oxf.resources.priority.
>> 2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,  
>> oxf
>> .resources
>> .factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory}
>> 2009-06-19 10:55:47,971 INFO  org.orbeon.oxf.main.OPS  - Running  
>> processor
>> 2009-06-19 10:55:48,916 ERROR org.orbeon.oxf.main.OPS  - Exception  
>> at oxf:/ops/xforms/xforms-submission.xpl (executing XSLT  
>> transformation)
>> org.orbeon.oxf.common.OXFException: Root element must contain an  
>> xsi:type attribute
>>   at  
>> org
>> .orbeon
>> .oxf
>> .processor
>> .serializer
>> .BinaryTextContentHandler
>> .startElement(BinaryTextContentHandler.java:110)
>>   at  
>> org
>> .orbeon
>> .oxf
>> .xml
>> .SimpleForwardingContentHandler
>> .startElement(SimpleForwardingContentHandler.java:69)
>>   at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer
>> $3.startElement(XSLTTransformer.java:268)
>>
>>
>> I guess my question is which processor do I need in the chain in  
>> order to see the result of the get/put/post/delete?  I was under  
>> the impression that the data that came out of the xforms:submission  
>> was an html document... like with curl
>>
>>
>> Erik Bruchez wrote:
>>> Marco,
>>>
>>> When using java -jar, the classpath is not used AFAIK.
>>>
>>> And yes, I think that orbeon-resources-private.jar should be in  
>>> the manifest. Can you please try and let us know if that works?
>>>
>>> -Erik
>>>
>>> On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:
>>>
>>>> Alex,
>>>>
>>>> I just finish verifying the manifest content of the orbeon-
>>>> cli.jar file in the WEB-INF directory an all of the jar files  
>>>> from the lib directory are present except for all those that  
>>>> start with orbeon*.jar, they are excluded from the manifest.  
>>>> Should I update the manifest with them all?  and as a side  
>>>> question should the CLASSPATH mechanism work here?
>>>>
>>>> Marco
>>>>
>>>> btw.: this is 3.7.1 dev distribution.
>>>>
>>>>
>>>> Alessandro Vernet wrote:
>>>>> Marco,
>>>>>
>>>>>
>>>>> Marco Lebel-2 wrote:
>>>>>
>>>>>> Thank you for pointing out that one should always look for the  
>>>>>> obvious... The file name had a typo ARGH ARGH
>>>>>>
>>>>>> So it does solve the issue of calling a sub pipeline as long as  
>>>>>> your filename do not have a typo :-[
>>>>>>
>>>>>>
>>>>>
>>>>> If you only knew how often this happens to me... (OK, maybe it  
>>>>> is better for
>>>>> me not say!).
>>>>>
>>>>>
>>>>> Marco Lebel-2 wrote:
>>>>>
>>>>>> Now what about the xform-submission in the other thread that  
>>>>>> still does not work even after I had added private resources on  
>>>>>> my classpath as suggested by Erik and by the way I did check  
>>>>>> that the name did not include a typo ;-)
>>>>>>
>>>>>>
>>>>>
>>>>> That is strange; have you checked that this file is indeed in your
>>>>> orbeon-resources-private.jar? Have you tried adding this file to
>>>>> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to  
>>>>> be missing
>>>>> right now)?
>>>>>
>>>>> Alex
>>>>>
>>>>> -----
>>>>> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
>>>>> Orbeon's Blog: http://www.orbeon.com/blog/
>>>>> Personal Blog: http://avernet.blogspot.com/
>>>>> Twitter - http://twitter.com/avernet
>>>>>
>>>>
>>>>
>>>> --
>>>> 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
--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Command line XPL - help needed

Marco Lebel-2
Erik

Yes,  I added the following to the manifest not sure they were all needed but since they were missing:

  • lib/orbeon-resources-private.jar
  • lib/orbeon-resources-public.jar
  • lib/orbeon-xforms-filter.jar
There is other jar file missing that I did not add.   One seems to be for FormsBuilder and the other for FormsRunner... Strange now that I write it I seem to remember that DEC use to have a product call Form Runner in the late 80!!!! Oh well trip down memory lane.

Marco

Erik Bruchez wrote:
Great, so in the end did you have to modify the manifest? If so, we should make that change on our end as well.

-Erik

On Jun 19, 2009, at 1:46 PM, Marco Lebel wrote:

Hello Erik, Alex,

Please ignore the following my understanding was correct... but my fingers are not.  One think he should learn to read what was is written and not what was intended.

So bottom line all his fine and working as I expected it.

Marco,
Does you dog bite  ....  It is not my dog :-)

Marco Lebel wrote:
Erik, Alex,

Thanks for your help, it would appear that by modifying the manifest as oppose to the CLASSPATH, as you initially suggested, was the key in solving the issue of the file not found AHU... Another Happy User.

Of course now I am facing the next hurdle... which seems to demonstrate that I really do not get it when it comes to connecting processors in a pipeline

My understanding is that if I have the following pipeline
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
        xmlns:oxf="http://www.orbeon.com/oxf/processors">

  <p:processor name="oxf:xforms-submission">
      <p:input name="submission">
         <xforms:submission xmlns:xforms="http://www.w3.org/2002/xforms" method="get" action="http://localhost:8080/orbeon/exist/rest/db/orbeon/xforms-bookcast/books.xml"/>
      </p:input>
      <p:input name="request">
         <dummy/>
      </p:input>
      <p:output name="response" id="response"/>
  </p:processor>

I need to connect a processor in here but so far any processor that I put in the chain except the null-serializer generates the following error:

Initializing Resource Manager with: {oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory}
2009-06-19 10:55:47,971 INFO  org.orbeon.oxf.main.OPS  - Running processor
2009-06-19 10:55:48,916 ERROR org.orbeon.oxf.main.OPS  - Exception at oxf:/ops/xforms/xforms-submission.xpl (executing XSLT transformation)
org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type attribute
  at org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:110)
  at org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69)
  at org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268)


I guess my question is which processor do I need in the chain in order to see the result of the get/put/post/delete?  I was under the impression that the data that came out of the xforms:submission was an html document... like with curl


Erik Bruchez wrote:
Marco,

When using java -jar, the classpath is not used AFAIK.

And yes, I think that orbeon-resources-private.jar should be in the manifest. Can you please try and let us know if that works?

-Erik

On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:

Alex,

I just finish verifying the manifest content of the orbeon-cli.jar file in the WEB-INF directory an all of the jar files from the lib directory are present except for all those that start with orbeon*.jar, they are excluded from the manifest.  Should I update the manifest with them all?  and as a side question should the CLASSPATH mechanism work here?

Marco

btw.: this is 3.7.1 dev distribution.


Alessandro Vernet wrote:
Marco,


Marco Lebel-2 wrote:

Thank you for pointing out that one should always look for the obvious... The file name had a typo ARGH ARGH

So it does solve the issue of calling a sub pipeline as long as your filename do not have a typo :-[



If you only knew how often this happens to me... (OK, maybe it is better for
me not say!).


Marco Lebel-2 wrote:

Now what about the xform-submission in the other thread that still does not work even after I had added private resources on my classpath as suggested by Erik and by the way I did check that the name did not include a typo ;-)



That is strange; have you checked that this file is indeed in your
orbeon-resources-private.jar? Have you tried adding this file to
META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be missing
right now)?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



-- 
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
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: [hidden email]
For general help: [hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Command line XPL - help needed

Erik Bruchez
Administrator
Marco,

This change is now in git. I just added orbeon-resources-private.jar
which should be enough.

-Erik

On Fri, Jun 19, 2009 at 2:23 PM, Marco Lebel<[hidden email]> wrote:

> Erik
>
> Yes,  I added the following to the manifest not sure they were all needed
> but since they were missing:
>
> lib/orbeon-resources-private.jar
> lib/orbeon-resources-public.jar
> lib/orbeon-xforms-filter.jar
>
> There is other jar file missing that I did not add.   One seems to be for
> FormsBuilder and the other for FormsRunner... Strange now that I write it I
> seem to remember that DEC use to have a product call Form Runner in the late
> 80!!!! Oh well trip down memory lane.
>
> Marco
>
> Erik Bruchez wrote:
>
> Great, so in the end did you have to modify the manifest? If so, we should
> make that change on our end as well.
>
> -Erik
>
> On Jun 19, 2009, at 1:46 PM, Marco Lebel wrote:
>
> Hello Erik, Alex,
>
> Please ignore the following my understanding was correct... but my fingers
> are not.  One think he should learn to read what was is written and not what
> was intended.
>
> So bottom line all his fine and working as I expected it.
>
> Marco,
> Does you dog bite  ....  It is not my dog :-)
>
> Marco Lebel wrote:
>
> Erik, Alex,
>
> Thanks for your help, it would appear that by modifying the manifest as
> oppose to the CLASSPATH, as you initially suggested, was the key in solving
> the issue of the file not found AHU... Another Happy User.
>
> Of course now I am facing the next hurdle... which seems to demonstrate that
> I really do not get it when it comes to connecting processors in a pipeline
>
> My understanding is that if I have the following pipeline
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>         xmlns:oxf="http://www.orbeon.com/oxf/processors">
>
>   <p:processor name="oxf:xforms-submission">
>       <p:input name="submission">
>          <xforms:submission xmlns:xforms="http://www.w3.org/2002/xforms"
> method="get"
> action="http://localhost:8080/orbeon/exist/rest/db/orbeon/xforms-bookcast/books.xml"/>
>       </p:input>
>       <p:input name="request">
>          <dummy/>
>       </p:input>
>       <p:output name="response" id="response"/>
>   </p:processor>
>
> I need to connect a processor in here but so far any processor that I put in
> the chain except the null-serializer generates the following error:
>
> Initializing Resource Manager with:
> {oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory,
> oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory,
> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory}
> 2009-06-19 10:55:47,971 INFO  org.orbeon.oxf.main.OPS  - Running processor
> 2009-06-19 10:55:48,916 ERROR org.orbeon.oxf.main.OPS  - Exception at
> oxf:/ops/xforms/xforms-submission.xpl (executing XSLT transformation)
> org.orbeon.oxf.common.OXFException: Root element must contain an xsi:type
> attribute
>   at
> org.orbeon.oxf.processor.serializer.BinaryTextContentHandler.startElement(BinaryTextContentHandler.java:110)
>   at
> org.orbeon.oxf.xml.SimpleForwardingContentHandler.startElement(SimpleForwardingContentHandler.java:69)
>   at
> org.orbeon.oxf.processor.transformer.xslt.XSLTTransformer$3.startElement(XSLTTransformer.java:268)
>
>
> I guess my question is which processor do I need in the chain in order to
> see the result of the get/put/post/delete?  I was under the impression that
> the data that came out of the xforms:submission was an html document... like
> with curl
>
>
> Erik Bruchez wrote:
>
> Marco,
>
> When using java -jar, the classpath is not used AFAIK.
>
> And yes, I think that orbeon-resources-private.jar should be in the
> manifest. Can you please try and let us know if that works?
>
> -Erik
>
> On Jun 18, 2009, at 4:47 PM, Marco Lebel wrote:
>
> Alex,
>
> I just finish verifying the manifest content of the orbeon-cli.jar file in
> the WEB-INF directory an all of the jar files from the lib directory are
> present except for all those that start with orbeon*.jar, they are excluded
> from the manifest.  Should I update the manifest with them all?  and as a
> side question should the CLASSPATH mechanism work here?
>
> Marco
>
> btw.: this is 3.7.1 dev distribution.
>
>
> Alessandro Vernet wrote:
>
> Marco,
>
>
> Marco Lebel-2 wrote:
>
> Thank you for pointing out that one should always look for the obvious...
> The file name had a typo ARGH ARGH
>
> So it does solve the issue of calling a sub pipeline as long as your
> filename do not have a typo :-[
>
>
>
> If you only knew how often this happens to me... (OK, maybe it is better for
> me not say!).
>
>
> Marco Lebel-2 wrote:
>
> Now what about the xform-submission in the other thread that still does not
> work even after I had added private resources on my classpath as suggested
> by Erik and by the way I did check that the name did not include a typo ;-)
>
>
>
> That is strange; have you checked that this file is indeed in your
> orbeon-resources-private.jar? Have you tried adding this file to
> META-INF/MANIFEST.MF inside the orbeon-cli.jar (as it seems to be missing
> right now)?
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
>
>
>
> --
> 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
>
> --
> 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
>
>


--
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