Hi I'm using the public 9.3.1 image.
I've been able to set up most of my app, but I get an error when trying to apply an xsl. Cannot compile and the error mention that Xalan is used.
I just added the saxon9.jar in /srv/basex/lib/custom the way I would have on my normal local installation.
FROM basex/basexhttp:9.3.1 ... COPY ./image-setup-files/bx/saxon9.jar /srv/basex/lib/custom/saxon9.jar
17:04:57.447 172.17.0.1:39752 admin 400 Stopped at /srv/basex/webapp/Accounting_Bilans.xqm, 301/25: [xslt:error] ERROR: 'Could not compile stylesheet' FATAL ERROR: 'Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'.' :Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'. javax.xml.transform.TransformerConfigurationException: Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:988) at org.basex.query.func.xslt.XsltTransform.transform(XsltTransform.java:122) at org.basex.query.func.xslt.XsltTransform.transform(XsltTransform.java:62) at org.basex.query.func.xslt.XsltTransform.item(XsltTransform.java:40) at org.basex.query.expr.ParseExpr.value(ParseExpr.java:50) at org.basex.query.expr.gflwor.GFLWOR.value(GFLWOR.java:80) at org.basex.query.func.StaticFunc.invValue(StaticFu... 5305.15 ms
Hi,
Found my own answer. Although most things we'd find locally under basex/ are under /srv/basex in the docker image, it is not true from basex/lib not true for the .jar, which is at /usr/src/basex/basex-api/lib. I copied my saxon. jar there instead and it works.
It might be useful in the docker documentation to specify the directory structure.
On Sat, Jan 25, 2020 at 5:13 PM France Baril france.baril@architextus.com wrote:
Hi I'm using the public 9.3.1 image.
I've been able to set up most of my app, but I get an error when trying to apply an xsl. Cannot compile and the error mention that Xalan is used.
I just added the saxon9.jar in /srv/basex/lib/custom the way I would have on my normal local installation.
FROM basex/basexhttp:9.3.1 ... COPY ./image-setup-files/bx/saxon9.jar /srv/basex/lib/custom/saxon9.jar
17:04:57.447 172.17.0.1:39752 admin 400 Stopped at /srv/basex/webapp/Accounting_Bilans.xqm, 301/25: [xslt:error] ERROR: 'Could not compile stylesheet' FATAL ERROR: 'Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'.' :Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'. javax.xml.transform.TransformerConfigurationException: Error checking type of the expression 'funcall(lower-case, [parameter-ref(legal-entity/reference)])'. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:988) at org.basex.query.func.xslt.XsltTransform.transform(XsltTransform.java:122) at org.basex.query.func.xslt.XsltTransform.transform(XsltTransform.java:62) at org.basex.query.func.xslt.XsltTransform.item(XsltTransform.java:40) at org.basex.query.expr.ParseExpr.value(ParseExpr.java:50) at org.basex.query.expr.gflwor.GFLWOR.value(GFLWOR.java:80) at org.basex.query.func.StaticFunc.invValue(StaticFu... 5305.15 ms
-- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com
basex-talk@mailman.uni-konstanz.de