Error integrating calabash

Questions about XML that are not covered by the other forums should go here.
JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

Error integrating calabash

Post by JohnBampton » Wed Aug 12, 2009 12:35 pm

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.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Error integrating calabash

Post by sorin_ristache » Wed Aug 12, 2009 3:38 pm

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

JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

Re: Error integrating calabash

Post by JohnBampton » Thu Aug 13, 2009 5:26 am

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.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Error integrating calabash

Post by sorin_ristache » Thu Aug 13, 2009 9:36 am

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

JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

Re: Error integrating calabash

Post by JohnBampton » Sat Aug 15, 2009 2:24 pm

No I do not get the error when run from the command line. Any ideas?

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Re: Error integrating calabash

Post by george » Mon Aug 17, 2009 2:41 pm

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
George Cristian Bina

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Re: Error integrating calabash

Post by george » Mon Aug 17, 2009 2:42 pm

You may find this also useful

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

Regards,
George
George Cristian Bina

Post Reply