I'm faced to the same problem now ...
Did you get an ansmwer or either find an solution ?
nothing jboss specific about it....just eclipse hard to see through classloaders playing with you ,)
have you remembered to add it in the plugin.xml as a dependent jar ?
I would be also interested in a solution.
I tried to add jboss client jars (ie copied client/*.jar in my plugin dir.) , then added them as dependency. It seems to work because IDE is able to find the packages and resolve Jboss/J2EE imports.
But when I run my RCP application using this plugin I get this ClassNotFoundException when calling InitialContext( props)
For information, is my plugin.xml :
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.0"?> <plugin id="com.arcadia.richclient.ejb.tools" name="com.arcadia.richclient.ejb.tools" version="1.0.0" provider-name="" class="com.arcadia.richclient.ejb.tools.EjbToolsPlugin"> <runtime> <library name="jbossall-client.jar"> <export name="*"/> </library> <library name="jboss-client.jar"> <export name="*"/> </library> <library name="jboss-common-client.jar"> <export name="*"/> </library> <library name="jnp-client.jar"> <export name="*"/> </library> <library name="log4j.jar"> <export name="*"/> </library> </runtime> <requires> <import plugin="org.eclipse.core.runtime"/> <import plugin="com.arcadia.richclient.core.libs"/> <import plugin="com.arcadia.richclient.core.tools"/> </requires> </plugin>
that is a workaround basically overriding the eclipse classloading mechanism ..... should not be used unless you have a very good reason and understanding on what classes is loaded.
just a warning ,)
Well, I don't really see what is hiding this class loading mechanism. But it made my problem solved so I thought that was THE solution.