Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Classloading problems – org.eclipse.tomcat
Classloading problems – org.eclipse.tomcat [message #197963] Fri, 27 October 2006 09:29 Go to next message
Ravi is currently offline RaviFriend
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 ‘preview’ing 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 ClassNotFoundException’s. Also,
org.eclipse.tomcat plugin’s Manifest.MF file doesn’t 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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Problem with classpaht and event handlers
Next Topic:NoSuchMethodError in IRowContent
Goto Forum:
  


Current Time: Thu Dec 26 11:56:54 GMT 2024

Powered by FUDForum. Page generated in 0.03422 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top