[
https://issues.apache.org/jira/browse/DRILL-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Barclay (Drill) updated DRILL-2570:
------------------------------------------
Assignee: Parth Chandra (was: Daniel Barclay (Drill))
> Broken JDBC-All Jar packaging can cause missing XML classes
> -----------------------------------------------------------
>
> Key: DRILL-2570
> URL: https://issues.apache.org/jira/browse/DRILL-2570
> Project: Apache Drill
> Issue Type: Bug
> Components: Tools, Build & Test
> Reporter: Daniel Barclay (Drill)
> Assignee: Parth Chandra
> Fix For: 1.0.0
>
> Attachments: DRILL-2570.1.patch.txt, ElementTraversal.rtf,
> xerces-error.rtf
>
>
> [Transcribed from other medium:]
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - -
> When starting Spotfire Server using JDBC driver an error see attachment
> (xerces-error) is produced.
> This error is then resolved by adding the jars/3rdparty/xercesImpl-2.11.0.jar
> from the drillbit package to the classpath for the JDBC client driver.
> Then the following error is observed. See attachment (ElementTraversal).
> This requires to add jars/3rdparty/xml-apis-1.4.01.jar to the classpath from
> the drillbit package.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - -
> The issue is Tomcat and Spotfire Server does not show any errors and starts
> up fine without the Drill JDBC driver. Once the Drill driver is added the
> application server fails to start with the errors shown.
> Adding the 2 jars to the classpath then resolves the issue.
> I have not looked at all the JDBC driver classes, but it is important to note
> that the error occurs when the JDBC driver is added and resolved by adding 2
> jars from the drillbit package.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - -
> > I do not see Drill classes in the stack trace. This seems to be a Tomcat
> > configuration issue.
> I suspect another possibility: that the Drill JDBC-all Jar file contains a
> stray reference to the unfound class (SAXParserFactoryImpl) in some file in
> META-INF/services (left over from some package whose classes we either
> excluded or renamed (with "shading")
> Xxx, Yyy: Can you try this?:
> (Temporarily) removing the added XML Jar files from the class path to
> re-confirm the problem.
> Move the Drill JDBC-all Jar file to be last on the class path (and remove
> ).
> Report whether the symptoms change.
> Thanks.
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - -
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)