Classloading problems org.eclipse.tomcat [message #197963] |
Fri, 27 October 2006 09:29 |
Ravi Messages: 92 Registered: July 2009 |
Member |
|
|
Hi There,
Here is the problem,
I had written a custom ODA driver for our proprietary data-source. I had
tested it with a junit test client (single process) which works perfectly.
But the whole problem is, when it comes to previewing a report (which
uses this home-grown ODA driver) from BIRT report designer. The driver is
supported by bunch of data-source related libraries for invoking, etc. All
these libraries are in classpath specified in Manifest.MF.
org.eclipse.tomcat plugin/WebappClassLoader is not able to find the
classes when the code in the plugin library tries to do
Thread.currentThread().getContextClassLoader().loadClass(xyz Class) which
ends up with ClassNotFoundException. I tried with many possibilities like
having a custom ClassLoader and setting it to currentThread classloader,
and also by setting setThreadContextClassLoader="false" under ODA
dataSource extension element. But no luck, even if the current thread
were able to find the class, it fails at some other places at the
underlying JDK level again throwing ClassNotFoundExceptions. Also,
org.eclipse.tomcat plugins Manifest.MF file doesnt specify any Eclipse
BuddyPolicy (something like Eclipse-BuddyPolicy: registered) so that I can
make my plugin as a buddy to tomcat plugin making my libraries accessible
to tomcat.
I am using IBM JDK and WAS application server (the data-source talks to
EJB services to fetch the data.)
Any clue Any help is highly appreciated.
Thanks in Advance,
Ravi Chamarthy
|
|
|
Re: Classloading problems org.eclipse.tomcat [message #198022 is a reply to message #197963] |
Fri, 27 October 2006 13:55 |
Eclipse User |
|
|
|
Originally posted by: ken_re.yahoo.com
Sorry, no answer. I am having the same problem. The problem seems to be
too many different classloaders which do not know about each other. IE.
Web App classloader and the OSGI classloader.
Another approach to solve this problem would be to add birt to a web app
and not as a plugin. I am trying to see if anything like this has been
done and how to do it.
I will try to keep you posted if I find out anything. Please repost this
every few days to see if anything can be done.
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds