You´re righit Chiba. The code below did the trick. Thank you very much for 
your help!


  | ClassWorld world = new ClassWorld();
  | 
  | ClassRealm realm = world.newRealm("org.codecompany.jeha.plugin", 
  |    Thread.currentThread().getContextClassLoader());
  | 
  | ClassRealm runRealm = realm.createChildRealm("runenv");
  | 
  | Set<Artifact> artifacts = project.getDependencyArtifacts();
  | for (Artifact artifact : artifacts) {
  |    runRealm.addConstituent(artifact.getFile().toURI().toURL());
  | }                           
  | 
  | Thread.currentThread().setContextClassLoader(
  |    runRealm.getClassLoader());
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235661#4235661

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235661

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to