steve christensen created ONAMI-114:
---------------------------------------

             Summary: duplicate entries not cleared in ASMClasspathScanner
                 Key: ONAMI-114
                 URL: https://issues.apache.org/jira/browse/ONAMI-114
             Project: Apache Onami
          Issue Type: Bug
    Affects Versions: autobind-0.9.2
            Reporter: steve christensen
             Fix For: autobind-0.9.2


I'm using Onami Autobind to scan my application's classpath for Guice modules.

Depending on how I format the commandline, I may get duplicates:

{noformat}

> java -jar ./shade/target/myapplication-1.0-SNAPSHOT.jar
[much more output]
INFO  [2014-09-17 18:45:36,854] 
org.apache.onami.autobind.scanner.asm.ASMClasspathScanner: Using Root-Path for 
Classpath scanning:
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunjce_provider.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar
file:/home/schristensen/work/ms/./shade/target/myapplication-1.0-SNAPSHOT.jar
file:/home/schristensen/work/ms/shade/target/myapplication-1.0-SNAPSHOT.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/dnsns.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/pulse-java.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/localedata.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/libatk-wrapper.so
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/zipfs.jar
[much more output, including lots of Guice binding errors since the modules are 
given to createInjector twice]
{noformat}

But, it runs fine if I don't start the path to the Jar w/ a ../ or ./
{noformat}
> java -jar shade/target/myapplication-1.0-SNAPSHOT.jar 

Or, use the absolute path

> java -jar `pwd`/shade/target/myapplication-1.0-SNAPSHOT.jar 
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to