We found that the manifest file in oxf.jar was incorrect in 2.2, which prevented the command-line functionality to work correctly. I attach a new manifest that you can put in your oxf.jar (for 2.2 only!) to enable the command-line functionality.
The documentation is not extremely clear as to how to run OXF in command-line mode, so here is how to make a simple example work:
1) Extract oxf.war, if not already done.
2) Extract the little example I attach under the WEB-INF/resources directory of the exploded WAR.
2) From the directory where oxf.war is extracted, run:
java -jar WEB-INF/lib/oxf.jar -r WEB-INF/resources -p oxf:/cmdline/properties.xml
The simple example runs an XSLT tranformation, and uses the URL serializer to output the result to a file called result.xml under WEB-INF/resources/cmdline. We will make sure that this example is included in the next release.
We hope to be able to make it more convenient to use in the next release, as now you don't really have a choice but to use a resource manager root and a properties file.
Regards,
-Erik
anifest-Version: 1.0 Main-Class: org.orbeon.oxf.main.OXF Class-Path: cli/commons-cli.jar avalon-framework-cvs-20020315.jar axis-1_0b3-axis.jar axis-1_0b3-jaxrpc.jar axis-1_0b3-saaj.jar axis-1_0b3-tt-bytecode.jar axis-1_0b3-wsdl4j.jar batik-all-1_5.jar castor-0_9_4_3-xml.jar commons-beanutils-1_5.jar commons-collections-2_0.jar commons-digester-1_5.jar commons-fileupload-1.0-beta-1.jar commons-lang-1_0-b1.jar commons-logging-1_0_3.jar commons-validator-1_0_2.jar dom4j-1_4.jar fop-0_20_5.jar hsqldb-1_7_1.jar isorelax-20031020.jar jakarta-oro-2_0_6.jar jakarta-poi-1.11.0-dev-20030610.jar jaxen-1_1-beta-1-dev.jar jcommon-0_7_2.jar jdom-b9.jar jfreechart-0_9_6.jar joost-20030623-orbeon.jar jtidy-04aug2000r7.jar junit.jar kawa-1_7.jar log4j-1_2_8.jar metadata-extractor-2_1.jar mondrian-0_5_orbeon.jar msv-20031020.jar oxf.jar relaxngDatatype-20031020.jar saxon-6_5_2.jar saxon-7_7.jar saxpath-dev_orbeon.jar struts-1_1.jar tamino-api4j-4_1_4.jar xalan-2_5_1_orbeon.jar xercesImpl-2_2_1_orbeon.jar xml-apis-2_5_1.jar xsdlib-20031020.jar xsltc-2_5_1_orbeon.jar ymsg9-v0_31.jar cli/servlet-2_3-4_0_4.jar
cmdline.zip
Description: Zip compressed data
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
