<div>Hi, </div>
<div>I'm trying to upgrade from XEP 3.8.2 to 4.2. My 4.2 configuration works fine when I use com.renderx.xep.XSLDriver from the command line. However, when I try to call it from the Java API, I get:</div>
<div> </div>
<div>[error] java.net.MalformedURLException: Invalid URL or non-existent file: license.xml<br>[error] java.net.MalformedURLException: Invalid URL or non-existent file: etc/license.txt</div>
<div>com.renderx.xep.lib.LicenseException: Cannot determine location of the license file<br> at com.renderx.xep.lib.Conf.checkLicense(Unknown Source)<br> at com.renderx.xep.lib.Conf.<init>(Unknown Source)
<br> at com.renderx.xep.FormatterCore.<init>(Unknown Source)<br> at com.renderx.xep.FormatterImpl.<init>(Unknown Source)<br> at com.renderx.xep.FormatterImpl.<init>(Unknown Source)</div>
<div> </div>
<div>I know it's finding the xep.xml file, because if the change the LICENSE option in the xep.xml, the first error message changes accordingly. The license.xml is in the same directory as the xep.xml. </div>
<div> </div>
<div>The API I'm using is:</div>
<div>java.util.Properties props = new java.util.Properties();<br>props.setProperty("CONFIG", XEP_ROOT_DIR+"/xep.xml");<br>FormatterImpl formatter = new FormatterImpl(props);</div>
<div> </div>
<div>So, what am I missing?</div>
<div>Thanks,</div>
<div>Konrad</div>