ClassLoader issue ?

Questions and answers on developing, deploying and using plugins and JavaBeans

ClassLoader issue ?

Postby cybersack » Mon Feb 28, 2005 11:04 am

I have 3 plugins.
Each plugin exists in its own jar.
ClientPluginA.jar + ClientPluginB.jar + ServerPluginA.jar.
Common.jar is a jar containing obfuscated classes.
All 4 jars reside in the plugins directory.

All plugins need access to these common classes.

I find that ClientPluginB and ServerPluginA cannot find the (obfuscated) common classes which ClientPluginA *is* able to find.

I wonder whether ClientPluginA is loaded first, the common classes are also loaded from Common.jar, and these classes become unavailable to the other plugins because they have a separate classloader ?

I am running Servoy Developer.

Any experience or advice appreciated.
http://www.cybersack.com/
Cybersack Java Beans and Plugins
User avatar
cybersack
 
Posts: 302
Joined: Sun Jan 02, 2005 1:17 am

Postby Jan Blok » Mon Feb 28, 2005 9:56 pm

see http://forum.servoy.com/viewtopic.php?t=671 how to load/specify libs (you have to provide a .jar.jnlp file which specifies the lib used by the plugin)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 36 guests