Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During startup error "You are running with invalid JAXP api or implementation" is logged #1110

Closed
tfr42 opened this issue Dec 21, 2020 · 4 comments
Labels
bug error issue and bug (fix) documentation documentation

Comments

@tfr42
Copy link
Member

tfr42 commented Dec 21, 2020

When running deegree 3.4.14 during startup the following error message is logged:

ERROR: [JAXBUtils] Error in configuration file: You are running with invalid JAXP api or implementation. JAXP api/implementation of version 1.3.1 (included in JDK6) or higher is required. In case you are using ant, make sure ant 1.7.0 or higher is used - older versions of ant contain JAXP api/impl version 1.2 (in xml-apis.jar). If you want to keep using older ant versions, you have to configure it to use higher the JAXP api/impl versions.
@tfr42 tfr42 added the bug error issue and bug (fix) label Dec 21, 2020
@tfr42
Copy link
Member Author

tfr42 commented Dec 21, 2020

To resolve this issue you have to set the javax.xml.transform.TransformerFactory.

  • For deegree 3.4.14 use:
    javax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl which uses Saxon HE 9.9 as XSLT 2.0 implementation.

  • For versions 3.4.13 and earlier you can add the following environment variable
    javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl which uses the JAXP build-in TransformerFactory supporting XSTL 1.0.

@tfr42 tfr42 pinned this issue Dec 21, 2020
@tfr42 tfr42 added the documentation documentation label Jan 4, 2021
@tfr42
Copy link
Member Author

tfr42 commented Jan 4, 2021

Information should go into documentation #1028 .

@tfr42
Copy link
Member Author

tfr42 commented Jan 11, 2021

With deegree 3.4.14 containing PR #999 (supporting XSLT 2.0 using Saxon 9.x) the transformer factory has to be set to:
javax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl

This is an important change coming with version 3.4.14 which is not using Apache Xalan 2.x anymore!

tfr42 added a commit to tfr42/deegree-docker that referenced this issue Jan 20, 2021
As of version 3.4.14 (see deegree/deegree3#1110) the TransformerFactory of Saxon shall be used. Apache Xalan has been removed from the list of dependencies. JAXP build-in TransformerFactory still can be used, but supports XSLT 1.0 only. Saxon supports XSLT 2.0.
@tfr42 tfr42 unpinned this issue May 11, 2023
@julianzz98
Copy link
Contributor

In deegree version 3.5.3, the reported error message can not be observed during startup. Therefore the issue is considered as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug error issue and bug (fix) documentation documentation
Projects
None yet
Development

No branches or pull requests

2 participants