I am trying to find out if jboss aop will work within an applet, and have
stumbled upon a problem when javassist tries to determine if a class exists.
This seems to be releated to how applets find resources. 

Isolating this, I have the following code in my applet:

         ClassLoader cl = Thread.currentThread().getContextClassLoader();
         System.out.println("ClassLoader: " + cl);
         URL coll = (URL)cl.getResource("java/util/Collection.class");

         System.out.println("Resource: " + coll);

which gives the following output when running with the appletviewer:

ClassLoader: [EMAIL PROTECTED]
Resource: null

If I run it from withing eclipse (debug applet) it can find the resource:

ClassLoader: [EMAIL PROTECTED]
Resource:
jar:file:/C:/Java/jdk/jdk1.5.0_04/jre/lib/rt.jar!/java/util/Collection.class

Does anybody have any suggestions to what could be going on here?

Cheers,

Kabir



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to