Github user dsbos commented on the pull request:

    https://github.com/apache/drill/pull/116#issuecomment-131970908
  
    It seems that you have shaded references to every Java package other than 
org.apache.drill.** (not just for every package from every depended-on 
artifact, but for _every_ package--including JDK packages).
    
    Note how the following command says it can't find "oadd/java/sql/Driver":
    
    $ java -cp ./exec/jdbc-all/target/drill-jdbc-all-1.2.0-SNAPSHOT.jar 
org.apache.drill.jdbc.Driver
    Exception in thread "main" java.lang.NoClassDefFoundError: 
oadd/java/sql/Driver
    ...
    
    It seems that in trying to load org.apache.drill.jdbc.Driver it tried to 
load its base class, normally java.sql.Driver from the JDK, but the reference 
to that base class was shaded to oadd.org.java.sql.Driver, so of course it 
couldn't be found.
    
    (The expected behavior of that command is an error that 
org.apache.drill.jdbc.Driver doesn't have a main method.)
    
    
    What setup did you use to test the shading?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to