You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Korosh Afshar <ko...@pinksheets.com> on 2003/02/14 22:26:39 UTC
thirdparty classloader can't find loaded classes by phoenix launcher
I am creating a component wrapper around a third-party product to be
able to deploy it onto Phoenix.
This product has its own Launcher that loads its classes because it is
using some sort of obfuscation and decryption scheme since it is a
licensed proprietery product.
I create the wrapper to initilize the product and expose some of its
interfaces, I then try to deploy onto Phoenix.
This results in ClassNotFoundException, where thirdparty product
application launcher thread is not able to locate any of my application
classes.
here is the hierarchy of the SAR file:
MyApp.sar
|--SAR/lib/myclasses.jar
|--SAR/lib/thirdparty.jar
|--SAR/lib/someotherstuff.jar
|--SAR/assembly.xml
|--SAR/environment.xml
|--SAR/config.xml
so the ThirdPartyAppLauncher is inside thirdparty.jar
the ClassNotFoundExcpetion is from the loader thread of
ThirdPartyAppLauncher not finding a class in myclasses.jar
There is no problem when I don't use the framwork and just a regular
server application. In that scenario, I think(but not 100% sure) that
all classes in myclasses.jar are loaded using System classloader and
the thirdparty.jar classes are loaded using ThirdPartyAppLauncher
classloader thread.
I realize this is dev mailing list but I didn't get any response from
user mailing list when I posted an earlier classloader issue.
any ideas how I can get around this ??
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org