Giuseppe Vallesi Posted April 16, 2021 Share Posted April 16, 2021 Hello, I followed this official tibco guide, to create an xpath custom function, this makes use of an external java library, so i added these external library as shown by this other guideadding-a-jar-to-a-bw6-plugin-project At designtime the applicationworks perfectly, at runtime after call custom function goes into error: kubectl logs -f testplugin-dc565f544-9bqxm | grep CausedBy TIBCO-BW-CORE-500054: Activity [putOut] XSLT transformation error. com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input ' com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input ' com.tibco.xml.cxf.runtime.exceptions.FunctionException: XPath function {http://my.custom.function.com}MimeType exception: Provider for class javax.xml.parsers.SAXParserFactory cannot be created TIBCO-BW-CORE-500054: Activity [putOut] XSLT transformation error. com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input ' com.tibco.pvm.dataexch.xml.util.exceptions.PmxException: PVM-XML-106027: Transformation failed for XSLT input ' com.tibco.xml.cxf.runtime.exceptions.FunctionException: XPath function {http://my.custom.function.com}MimeType exception: Could not initialize class org.apache.tika.mime.MimeTypesReader Can someone help me Link to comment Share on other sites More sharing options...
Giuseppe Vallesi Posted July 13, 2021 Author Share Posted July 13, 2021 Solved byset ContextClassLoaderas indicated in the following link. https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-44835 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now