Well, tried just dumping my jar into 'jre_home/lib/ext' but that caused other problems. So played around with some things and still having other problems which will require major tinkering with my jar and class structures.
So tried the Forehead option - to no avail. My classes don't seem to be found at all. The project won't even compile as can't find my classes that are in the jar I've added to Forehead. Hmm... Should also add that with everything as I started out (with my jars just as dependencies), if I do a 'maven eclipse:generate-project' and then run my junit test from within eclipse all is well... Grrrgghhh. Any further ideas? Thanks in advance, Sean On Wed, 2003-02-05 at 00:20, Incze Lajos wrote: > On Tue, Feb 04, 2003 at 10:56:26PM +0000, Sean Radford wrote: > > Had already tried that, with no difference. I also noticed that the > > properties tag is not in the project xsd file and so assumed that this > > is now defunct. > > > > The class that is causing the problem is my own Certificate class (a > > class that implements java.security.cert.Certificate) and is obtained > > via the java.security.cert.CertificateFactory which creates the > > instance. I'm assuming that the classloader for my jar (with the > > Certificate and Provider) is being loaded by a (lower) classloader that > > the JRE CertificateFactory can't see and so it is re-loading my jar onto > > its classloader. Thus, later on I get the ClassCastException. So I'm > > guessing I need to somehow get junit/maven to load my jar into a higher > > classloader? (I'm no expert on these classloader things by the way!) > > > > Any help much appreciated. > > > > Sean > > > > If you want to test your guess, then you can load your class into > the root clasloader by entering your jar into the $MAVEN_HOME/bin/forehead.conf > file. Or if your certificate implementation should be used obligatorily > sitewide you can even place your jar into the jre_home/lib/ext directory, > and it'll become available to any java programs as part of the language runtime. > > incze > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Sean Radford <[EMAIL PROTECTED]> Blade Systems --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
