W3C home > Mailing lists > Public > xproc-dev@w3.org > November 2010

Calabash: help getting started with Relax-NG and jing?

From: Chris Maloney <voldrani@gmail.com>
Date: Thu, 11 Nov 2010 12:01:43 -0500
Message-ID: <AANLkTikWNehu_YpPS-ZwKSxMJM90VofuZC=RwrpQFrQE@mail.gmail.com>
To: xproc-dev@w3.org
I'm trying to set up Calabash to handle the <p:validate-with-relax-ng> using
jing.  Under Windows, I just installed xmlcalabash-0.9.24 and
jing-20081028.

I copied the "calabash.bat" file to my-calabash.bat, and changed added jing
to the classpath, as:

    @java -Xmx1024m -cp
"C:\bin\xmlcalabash-0.9.24\lib\calabash.jar;C:\bin\xmlcalabash-0.9.24\lib\commons-codec-1.3.jar;C:\bin\xmlcalabash-0.9.24\lib\commons-logging-1.1.1.jar;C:\bin\xmlcalabash-0.9.24\lib\commons-httpclient-3.1.jar;C:\bin\xmlcalabash-0.9.24\lib\saxon9he.jar;C:\bin\jing-20081028\bin\jing.jar"
com.xmlcalabash.drivers.Main %*

Now I'm seeing this error
    Nov 11, 2010 11:46:45 AM
com.xmlcalabash.util.DefaultXProcMessageListener info
    INFO: Running pipeline multivalidate
    Nov 11, 2010 11:46:46 AM
com.xmlcalabash.util.DefaultXProcMessageListener info
    INFO: Running validate-with-xml-schema !1.3
    Nov 11, 2010 11:46:46 AM
com.xmlcalabash.util.DefaultXProcMessageListener info
    INFO: MultiValidate.xpl:20:31:Validating with Xerces
    Nov 11, 2010 11:46:46 AM
com.xmlcalabash.util.DefaultXProcMessageListener info
    INFO: Running validate-with-relax-ng !1.4
    Exception in thread "main" java.lang.NoSuchFieldError: ERROR_HANDLER
            at
com.xmlcalabash.library.ValidateJing.run(ValidateJing.java:101)
            at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:389)
            at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:231)
            at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:129)
            at com.xmlcalabash.drivers.Main.run(Main.java:305)
            at com.xmlcalabash.drivers.Main.main(Main.java:78)

This is different than the error I get if jing is not installed, or not in
the classpath, so I know that at least it's finding the jing validator
class.  But I am not a Java programmer, so I don't know how to diagnose this
problem.  Anybody run into this before, or could point me in the right
direction?

Thanks!
Received on Thursday, 11 November 2010 17:02:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 November 2010 17:02:55 GMT