NoClassDefFoundError when trying to develop custom ODA for Birt [message #235051] |
Tue, 17 April 2007 21:24 |
Eclipse User |
|
|
|
Originally posted by: lmundt.rogers.com
I think this problem should be easy for those of you with more
experience, but so far I haven't been able to find a solution.
I am trying to implement my own custom ODA plug-in for Birt. It is
supposed to leverage a data layer that I have put in stuff.jar.
I add stuff.jar to the project as an external jar. I am then able to
test the methods of my ODA plug-in using junit.
The problem starts when I try to debug the plug-in as an eclipse
framework. My driver appears when I try to create a new data source, so
far so good. When I hit test connection in the new data source wizard
it produces a NoClassDefFoundError. It does this when it tries to
instantiate one of the classes in my stuff.jar.
So I realize that this means that stuff.jar is not in the classpath for
this invocation of the Eclipse/Birt framework.
I have done some reading and the two options seem to be either a. wrap
the contents of stuff.jar in it's own plug-in or b. add it to the
defined libraries for the plug-in. I don't want to create a plug-in as
the jar is used by other non-eclipse apps. I have tried using the
manifest editor and added stuff.jar to the Classpath on the runtime tab
but it still produces the same exception.
I am using eclipse 3.2.2 and Birt 2.1.2
Any assistance would be much appreciated.
|
|
|
|
Re: NoClassDefFoundError when trying to develop custom ODA for Birt [message #698907 is a reply to message #698790] |
Wed, 20 July 2011 12:55 |
Paul Anderson Messages: 2 Registered: July 2011 |
Junior Member |
|
|
I solved my problem. Might be 4 years to late for the original poster.
Having followed the Integrating and Extending BIRT CSV ODA Driver example, I noticed there was a Hibernate Driver. You can download the source from Actuate Site.
This driver was put together differently. It had settings for manipulating the class path when creating it through the wizard. Unfortunately the class path could not be set in the version of Eclipse SDK I downloaded - Indigo. So I thought I would go through manually and see the differences.
To do this you only need to open the MANIFEST.MF in the Eclipse IDE.
build.properties tab
Include all jar files you want to reference/include as follows:
source.odasentinel.jar = src/
output.odasentinel.jar = bin/
bin.includes = plugin.xml,\
META-INF/,\
odasentinel.jar,\
lib/activation.jar\ ...
MANIFEST.MF tab
Set the Bundle-ClassPath setting to include all jar files you want to reference/include as follows:
Bundle-ClassPath: odasentinel.jar,
lib/activation.jar,
lib/bsh-2.0b2.jar,
lib/comm.jar,
You can now run and debug your ODA Driver with Eclipse.
[Updated on: Wed, 20 July 2011 12:56] Report message to a moderator
|
|
|
Re: NoClassDefFoundError when trying to develop custom ODA for Birt [message #699006 is a reply to message #698907] |
Wed, 20 July 2011 15:53 |
|
Thanks for posting this Paul.
Jason
On 7/20/2011 8:55 AM, Paul Anderson wrote:
> I solved my problem. Might be 4 years to late for the original poster.
>
> Having followed the Integrating and Extending BIRT CSV ODA Driver
> example, I noticed there was a Hibernate Driver. You can download the
> source from Actuate Site.
>
> This driver was put together differently. It had settings for
> manipulating the class path when creating it through the wizard.
> Unfortunately the class path could not be set in the version of Eclipse
> SDK I downloaded - Indigo. So I thought I would go through manually and
> see the differences.
>
> To do this you only need to open the MANIFEST.MF in the Eclipse IDE.
> build.properties tab
>
> Include all jar files you want to reference/include as follows:
>
> source.odasentinel.jar = src/ output.odasentinel.jar = bin/ bin.includes
> = plugin.xml,\ META-INF/,\ odasentinel.jar,\ lib/activation.jar\ ...
>
> MANIFEST.MF tab
>
> Set the Bundle-ClassPath setting to include all jar files you want to
> reference/include as follows: Bundle-ClassPath: odasentinel.jar,
> lib/activation.jar, lib/bsh-2.0b2.jar, lib/comm.jar,
>
> You can now run and debug your ODA Driver with Eclipse.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03254 seconds