Chiba,
It seems that testng-5.8-jdk15.jar is already in classpath. Look at this:
Thread.currentThread().getContextClassLoader() and classPool.getClass().getClassLoader()
are the same:
System.out.println(Thread.currentThread().getContextClassLoader()):
| ClassRealm[/plugins/org.codecompany:jeha-plugin:1.0-SNAPSHOT@48/thread:main, parent:
ClassRealm[plexus.core, parent: null]]
|
System.out.println(pool.getClass().getClassLoader()):
| ClassRealm[/plugins/org.codecompany:jeha-plugin:1.0-SNAPSHOT@48/thread:main, parent:
ClassRealm[plexus.core, parent: null]]
|
System.out.println(pool):
| [class path:
java.lang.Object.class;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\classes;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\test-classes;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\classes;C:\Andre\workspace\Pessoal\jeha\jeha-core\target\classes;java.util.jar.JarFile@2585e;]
|
I believe that java.util.jar.JarFile@2585e corresponds to testng-5.8-jdk15.jar
Would it happen if I put the whole class code here?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235472#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...