N
news-server.nc.rr.com
Hi,
I am attempting to use log4j in a certain environment. That environment is
Rational Functional Tester (a java based GUI Automation tool).
Here is the problem, as far as I can narrow it down. There are two sets of
classes involved. RFT's library classes (in jar files), my own set of
classes for the automation (in a directory structure).
When I run the application, I unfortunately cannot add my own classes to the
classpath. RFT does not allow this (it has a gui that lauches the playback
and the command line it uses is not configurable). The way RFT works, is
that my classes get loaded by a special RFT classloader, not the application
classloader.
The problem is I have log4j Appender classes, that I wrote. But log4j
cannot load them because it uses the application class loader, and they are
not on the classpath.
I tried writing my own classloader, but that doesn't help because the log4j
classloader is the parent of mine and will not delegate to a child.
I am new at classloaders. Essentially what I want is to make my class
available to a parent classloader. Any ideas how to accomplish this? Or am
I hosed because of the inability to change the classpath? Should I begin
looking at ways to hack the classpath (which would be very inconvenient to
repeatedly re-jar as I develop)
Excuse my newness on classloading.
I am attempting to use log4j in a certain environment. That environment is
Rational Functional Tester (a java based GUI Automation tool).
Here is the problem, as far as I can narrow it down. There are two sets of
classes involved. RFT's library classes (in jar files), my own set of
classes for the automation (in a directory structure).
When I run the application, I unfortunately cannot add my own classes to the
classpath. RFT does not allow this (it has a gui that lauches the playback
and the command line it uses is not configurable). The way RFT works, is
that my classes get loaded by a special RFT classloader, not the application
classloader.
The problem is I have log4j Appender classes, that I wrote. But log4j
cannot load them because it uses the application class loader, and they are
not on the classpath.
I tried writing my own classloader, but that doesn't help because the log4j
classloader is the parent of mine and will not delegate to a child.
I am new at classloaders. Essentially what I want is to make my class
available to a parent classloader. Any ideas how to accomplish this? Or am
I hosed because of the inability to change the classpath? Should I begin
looking at ways to hack the classpath (which would be very inconvenient to
repeatedly re-jar as I develop)
Excuse my newness on classloading.