Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
is someone have problem with the use of tFileExcelWorkbookOpen component in Karaf with a job called by a cTalendJob in a route?
It works fine in Studio, but not in Karaf.
It seems to be an api conflict between xml apis: SAX in component and Xerces embedded in Karaf, i don't know how i can resolve it properly.
I have a message like this if i use a component which use xml api with the excel component in the same job(like extractxmlfield or trouteinput, or others...):
org.dom4j.DocumentException:SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader Nested exception: SAX2 driver class org.apache.xerces.parsers.SAXParser does not implement XMLReader
Add libraryload component with saxon.jar, saxon-dom.jar, dom4j.jar, poi..all-dependancies.jar doesn't resolve the problem.
It looks like to work if i add a BundleID property in the xx_java.xml file of the excel component and if i add the POI...all_dependancy.jar in the deploy folder of Karaf. But i don't like this solution because i don't want to have sides effects with others bundles deployed (with the POI...all-dependancy.jar deployed as bundle).
This problem talking to someone?
thanks.
Xavier
<CODEGENERATION>
<IMPORTS>
<IMPORT NAME="tFileExcelPOI" MODULE="de.jar" REQUIRED="true"/>
<IMPORT NAME="xmlbeans" MODULE="xmlbeans-2.3.0.jar" REQUIRED="true" />
<IMPORT NAME="commons-codec" MODULE="commons-codec-1.5.jar" REQUIRED="true"/>
<IMPORT NAME="dom4j" MODULE="dom4j-1.6.1.jar" REQUIRED="true"/>
<IMPORT NAME="poi-ooxml" MODULE="poi-ooxml-3.10-FINAL.jar" REQUIRED="true"/>
<IMPORT NAME="poi-ooxml-schemas" MODULE="poi-ooxml-schemas-3.10-FINAL.jar" REQUIRED="true"/>
<IMPORT NAME="stax-api" MODULE="stax-api-1.0.1.jar" REQUIRED="true"/>
<IMPORT NAME="xml-apis" MODULE="xml-apis-1.0.b2.jar" REQUIRED="true"/>
<IMPORT NAME="poi" MODULE="poi-3.10-FINAL.jar" REQUIRED="true"/>
</IMPORTS>
</CODEGENERATION>