Hi All,
I read all 65 postings under search keyword NoClassDefFoundError and got some ideas, but no one seems to have experienced exactly the odd phenomenon I am encountering.
The actual specifics of how I am using Java shouldn't matter -- LotusScript agent using LS2J to run a separate Java program (utilizing WebSphere MQ classes) residing in a Java script library in the same Notes database.
I need a whole slew of IBM MQ JAR files to make this work, but gave up on the JavaUserClasses notes.ini parameter because the number of JAR files (and the full path to each of them) is monstrously long and I read that there is a 255 byte (give or take) limit on the length of the JavaUserClasses parameter (though I have not verified this myself).
Experimentation taught me that Notes client and Domino server simply ignore the system classpath (which I find hard to believe and wonder if I missed something). So in the end, I went with the "include in the project" technique of enabling my Java code to locate the JAR files it needs. Note also that my system classpath still refers to all the same JAR files as I have included in my project.
Everything compiles okay and I can run my code.
Here is where it gets weird. I can successfully run my agent about 8 or so times and then all of a sudden Domino flips out and issues a NoClassDefFoundError error message citing its inability to locate javax/resource/resource/ResourceException (which I tracked down to connector.jar, one of the JAR files included in the project).
It seems to be some kind of class loader issue, but why/how?
Thanks in Advance,
Ken