ERROR: Misconfigured. No 'class' in configuration for p:xinclude

Apparently, the system I am developing the application for is not capable
of loading annotation and properties files there by the step classes are
not loaded during initialization of config. What options do I have?

On Wed, Apr 25, 2018 at 3:08 PM, Imsieke, Gerrit, le-tex <
gerrit.imsieke@le-tex.de> wrote:

> Recent versions of Calabash should find implementations of steps by means
> of annotations like this: https://github.com/ndw/xmlcala
> bash1/blob/14dd907a8904cfd05f9e75961869b7edc1ffa82f/src/main
> /java/com/xmlcalabash/library/XInclude.java#L57
>
> Exactly how this is done, whether it should be sufficient to have
> xmlcalabash-1.1.19-96.jar on the classpath in the manifest: I don’t know.
>
> See for ex. this stackoverflow answer: https://stackoverflow.com/ques
> tions/183292/classpath-including-jar-within-a-jar?utm_medium
> =organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa#21777294
> Once they moved the jar away in the file system, the Class-Path entry in
> the manifest that purportedly pointed to a jar in a jar (but actually
> pointed to a jar in the file system) ceased to work.
>
> Gerrit
>
>
> On 25/04/2018 20:38, M. A. Arefin wrote:
>
>> I am creating a deployment jar containing xml calabash jar and all other
>> jars including my own application jar. The Manifest file of the deployment
>> jar lists the jars including xmlcalabash. In my application code, I simply
>> pass the XPL file and other parameters to the XML Calabash Main driver's
>> runMethod() method. It runs fine from within Eclipse indicating that it is
>> an issue related to classpath, but I am trying to avoid setting classpath
>> and run it entirely from the deployment jar.
>>
>> And I do not want to use a config file in /etc/ either!
>>
>> Thank you.
>>
>> On Wed, Apr 25, 2018 at 1:43 PM, Imsieke, Gerrit, le-tex <
>> gerrit.imsieke@le-tex.de <mailto:gerrit.imsieke@le-tex.de>> wrote:
>>
>>     Can you describe exactly how you invoke it?
>>
>>     I saw this error occasionally, but mostly when I used our own
>>     extensions without declaring them in the config file that we were
>>     using. But your error message pertains to a core XProc step.
>>
>>     I just installed
>>     https://github.com/ndw/xmlcalabash1/releases/download/1.1.19
>> -96/xmlcalabash-1.1.19-96.jar
>>     <https://github.com/ndw/xmlcalabash1/releases/download/1.1.1
>> 9-96/xmlcalabash-1.1.19-96.jar>,
>>     changed into the directory where it was installed, created a small
>>     pipeline with a p:xinclude step and executed the pipeline.
>>
>>     The pipeline is this:
>>
>>     <p:declare-step xmlns:p="http://www.w3.org/ns/xproc
>>     <http://www.w3.org/ns/xproc>"
>>        xmlns:c="http://www.w3.org/ns/xproc-step
>>     <http://www.w3.org/ns/xproc-step>"
>>        xmlns:xi="http://www.w3.org/2001/XInclude
>>     <http://www.w3.org/2001/XInclude>" version="1.0">
>>        <p:input port="source" primary="true">
>>          <p:inline>
>>            <wrap><xi:include href="xpl/pipe.xpl"/></wrap>
>>          </p:inline>
>>        </p:input>
>>        <p:output port="result" primary="true"/>
>>        <p:xinclude/>
>>     </p:declare-step>
>>
>>     And the result is this:
>>
>>            <wrap xmlns:c="http://www.w3.org/ns/xproc-step
>>     <http://www.w3.org/ns/xproc-step>"
>>     xmlns:xi="http://www.w3.org/2001/XInclude
>>     <http://www.w3.org/2001/XInclude>"><p:declare-step
>>     xmlns:p="http://www.w3.org/ns/xproc <http://www.w3.org/ns/xproc>"
>>     version="1.0">
>>     <p:input port="source">
>>        <p:inline><doc>
>>     Congratulations! You've run your first pipeline!
>>     </doc></p:inline>
>>     </p:input>
>>     <p:output port="result"/>
>>
>>     <p:identity/>
>>     </p:declare-step></wrap>
>>
>>     Gerrit
>>
>>
>>     On 25/04/2018 18:33, M. A. Arefin wrote:
>>
>>         Hi,
>>
>>         I am using XML Calabash 1.1.19-96 on CentOS 7 with Java 7 32-bit.
>>
>>         Thank you.
>>
>>         On Wed, Apr 25, 2018 at 12:00 PM, Achim Berndzen
>>         <achim.berndzen@xml-project.com
>>         <mailto:achim.berndzen@xml-project.com>
>>         <mailto:achim.berndzen@xml-project.com
>>         <mailto:achim.berndzen@xml-project.com>>> wrote:
>>
>>              Hi,
>>              this seems to be a processor related problem. Which XProc
>>         processor
>>              are you using?
>>
>>              Greetings from Germany,
>>              Achim
>>
>>              ------------------------------------------------
>>              Achim Berndzen
>>         achim.berndzen@xml-project.com
>>         <mailto:achim.berndzen@xml-project.com>
>>         <mailto:achim.berndzen@xml-project.com
>>         <mailto:achim.berndzen@xml-project.com>>
>>
>>              <xml-project /> Achim Berndzen
>>              Kleine Breite 26a
>>              38302 Wolfenbüttel, Germany
>>
>>         http://www.xml-project.com
>>
>>
>>
>>
>>
>>               > Am 25.04.2018 um 17:40 schrieb M. A. Arefin
>>         <arefin.m.a@gmail.com <mailto:arefin.m.a@gmail.com>
>>              <mailto:arefin.m.a@gmail.com <mailto:arefin.m.a@gmail.com>>
>> >:
>>               >
>>               > Hi all,
>>               >
>>               > I am getting this error -
>>               >
>>               > ERROR: Misconfigured. No 'class' in configuration for
>>         p:xinclude
>>               >
>>               > Not sure what configuration it is referring to! Any idea
>>         how to
>>              fix this?
>>               >
>>               > --
>>               > Thank you!
>>               >
>>               > - M. A. Arefin
>>
>>
>>
>>
>>         --         Thank you!
>>
>>         - M. A. Arefin
>>
>>
>>     --     Gerrit Imsieke
>>     Geschäftsführer / Managing Director
>>     le-tex publishing services GmbH
>>     Weissenfelser Str. 84, 04229 Leipzig, Germany
>>     Phone +49 341 355356 110, Fax +49 341 355356 510
>>     gerrit.imsieke@le-tex.de <mailto:gerrit.imsieke@le-tex.de>,
>>     http://www.le-tex.de
>>
>>     Registergericht / Commercial Register: Amtsgericht Leipzig
>>     Registernummer / Registration Number: HRB 24930
>>
>>     Geschäftsführer / Managing Directors:
>>     Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
>>
>>
>>
>>
>> --
>> Thank you!
>>
>> - M. A. Arefin
>>
>
> --
> Gerrit Imsieke
> Geschäftsführer / Managing Director
> le-tex publishing services GmbH
> Weissenfelser Str. 84, 04229 Leipzig, Germany
> Phone +49 341 355356 110, Fax +49 341 355356 510
> gerrit.imsieke@le-tex.de, http://www.le-tex.de
>
> Registergericht / Commercial Register: Amtsgericht Leipzig
> Registernummer / Registration Number: HRB 24930
>
> Geschäftsführer / Managing Directors:
> Gerrit Imsieke, Svea Jelonek, Thomas Schmidt
>
>


-- 
Thank you!

- M. A. Arefin


-- 
Thank you!

- M. A. Arefin

Received on Thursday, 17 May 2018 01:23:35 UTC