Page 1 of 1

Error integrating calabash

Posted: Wed Aug 12, 2009 12:35 pm
by JohnBampton
I am trying to use calabash in oxygen an I get the following error? Why is the file not found error popping up?

Started: java -cp "C:\calabash\calabash-0.9.14\lib\calabash.jar;C:\Program Files\Saxon9.1B\saxon9.jar;C:\Program Files\Saxon9.1B\saxon9-s9api.jar" com.xmlcalabash.drivers.Main pipe.xpl

Error : Pipeline failed: err:XD0011: XProc error err:XD0011 It is a dynamic error if the resource referenced by a p:document element does not exist, cannot be accessed, or is not a well-formed XML document.
Error : Underlying exception: net.sf.saxon.s9api.SaxonApiException: java.io.FileNotFoundException: C:\calabash\calabash-0.9.14\xpl\pipe.xpl
(The filename, directory name, or volume label syntax is incorrect)
Process ended with exit code: 0

Regards,

John.

Re: Error integrating calabash

Posted: Wed Aug 12, 2009 3:38 pm
by sorin_ristache
Hello,

Do you mean you configured XProc as external tool in Oxygen? What is the value of the working directory of the external tool? Does the file C:\calabash\calabash-0.9.14\xpl\pipe.xpl exist on disk?

For example I set the command line of the external tool as:

Code: Select all

java -cp ... com.xmlcalabash.drivers.Main ${cfd}/${cfne}
and I do not get the error. ${cfd} and ${cfne} are Oxygen editor variables that are expanded to the directory and filename of the current file edited in Oxygen. I get the same error as you only if .xpl file does not exist in the specified path.


Regards,
Sorin

Re: Error integrating calabash

Posted: Thu Aug 13, 2009 5:26 am
by JohnBampton
Yes I am trying to run calabash as an external tool.

The working directory is set as a .


The file does exist.

Not sure what I am doing wrong??

Regards,

John.

Re: Error integrating calabash

Posted: Thu Aug 13, 2009 9:36 am
by sorin_ristache
Hello,

Do you get the same error if you copy and paste the Java command from the output view of Oxygen to a command line?


Regards,
Sorin

Re: Error integrating calabash

Posted: Sat Aug 15, 2009 2:24 pm
by JohnBampton
No I do not get the error when run from the command line. Any ideas?

Re: Error integrating calabash

Posted: Mon Aug 17, 2009 2:41 pm
by george
The . as working directory expands to the directory where oXygen is started in. You can use ${cfd} and it should work if the current file is the one you want to execute or another file in the same folder.

An even better alternative is to use for the command line the expression Sorin gave you to specify the XProc script ${cfd}/${cfne}, so the command line should look like

java -cp "..." com.xmlcalabash.drivers.Main ${cfd}/${cfne}

where "..." is your actual class path.

Best Regards,
George

Re: Error integrating calabash

Posted: Mon Aug 17, 2009 2:42 pm
by george
You may find this also useful

http://fgeorges.blogspot.com/2008/10/po ... -into.html

Regards,
George