I recently had a similar problem with the JavaMail APIs and a custom pop3
provider which would not load wherever I moved the classes (mine were
jarred, but that should not make the difference). It turned out that in
order to get loaded these classes had to be in orions "master classpath". I
ended up with the following alternatives to achieve this:

- copy all mail + provider jars into <java_home>/jre/lib/ext (which you will
normally only do with standard java extension APIs)
- invoke orion via "java -classpath<all jars including mine>
<orion-launcher-class>" instead of java -jar orion.jar
- modify orion.jars manifest file to include my jars (a hack, but I did it)

now, I cannot exactly explain why this is so (and I think it is weird. I
would rather have all my application jars in WEB-INF/lib, and with most this
does indeed work fine), since I am not a classloader guru. Supposedly there
is logic in this, and it is really simple and informative to figure out.
However, I have so many things to figure out that more directly pertain to
my livelihood...

-----Original Message-----
From: Drew Kidder <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Donnerstag, 2. November 2000 18:39
Subject: Re: Supporting classes not getting picked up


>The class com.ibm.cfmwk.builtin.Provider cannot be loaded.  The
>com.tivoli.xtela.core.license.LicenseGenerator works just fine, but when I
>try to actually generate a license, the message "(Cannot find
>com.ibm.cmfwk.builtin.Provider)" appears on stderr, and Orion crashes.
>
>I'm not entirely sure who loads them, as this is pre-written code (all I
>have are the class files).  After I posted last night, I even went so far
>as to copy the com/ibm/... tree to the same directory where
>LicenseGenerator lives.  That didn't work either.
>
>
>At 03:08 AM 11/02/2000 -0600, you wrote:
>>hmm, classloader-science (not rocket-science, as Rober Krueger told me
>>lately :-)).
>>
>>which classes cannot be loaded? And who loads them?
>>
>>-----Original Message-----
>>From: Drew Kidder <[EMAIL PROTECTED]>
>>To: Orion-Interest <[EMAIL PROTECTED]>
>>Date: Donnerstag, 2. November 2000 07:56
>>Subject: Supporting classes not getting picked up
>>
>>
>> >I'm at my wit's end.
>> >
>> >I have a class that resides in
>>
>$ORION_HOME/applications/twsm/twsm-web/WEB-INF/classes/com/tivoli/xtela/cor
>>e/license.
>> >It (apparently) needs to call a class com.ibm.cfmwk.builtin.Provider.
Now,
>> >I have tried putting a fully expanded com/ibm/cfmwk/builtin/* tree under
>> >WEB-INF/classes, and that doesn't work. I jarred them up, and stuck them
in
>> >the WEB-INF/lib directory.  No go.  Where in the world do I need to put
>> >this class hierarchy so it can be found????
>> >
>> >This is really frustrating, and I could use some help on this one....
>> >
>> >
>
>
>------
>Andrew Kidder
>L3 SW/Support Engineer, IBU
>Tivoli Systems
>
>512-436-4544
>[EMAIL PROTECTED]
>http://www.tivoli.com
>
>
>


Reply via email to