Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable
RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #702431] Tue, 26 July 2011 07:16 Go to next message
Paul Ramsden is currently offline Paul Ramsden
Messages: 79
Registered: February 2011
Location: BW, Germany
Member
I have downloaded the runtimes for RAP1.4 and BIRT3.7 in order to create a new target. I put the 2 runtimes in separate directories and removed the duplicates from the BIRT directory.

I created a new target definition using the 2 runtime directories and an ICU 3.7 directory.

However, when I start the application, I get

java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable

and the app goes into a continuous 302 redirect loop.

The core.runtime plugin is present, in the class path and in the runtime configuration.

Any ideas what is going on here?
Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #703674 is a reply to message #702431] Wed, 27 July 2011 16:07 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Paul,

what does the ss command return in the OSGi console? Any duplicated
bundles? Any inactive ones?

Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #707463 is a reply to message #702431] Mon, 01 August 2011 13:35 Go to previous messageGo to next message
Austin Riddle is currently offline Austin Riddle
Messages: 128
Registered: July 2009
Senior Member
Hi Paul,

I am able to reproduce your problem. All of my bundles are active. Is there any more information you have discovered?
Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #707500 is a reply to message #707463] Mon, 01 August 2011 14:32 Go to previous messageGo to next message
Austin Riddle is currently offline Austin Riddle
Messages: 128
Registered: July 2009
Senior Member
The org.eclipse.birt.runtime bundle seems to be missing quite a few things to make it usable in RAP, like bundle dependencies and exported packages. If I edit the jar's manifest file and add a RequireBundle entry for org.eclipse.core.runtime, the problem goes away for me. But of course then there are complaints about BIRT classes not being found in the runtime bundle because their packages are not exported.

Hope this helps. Let us know if you find out any more information.
Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #708840 is a reply to message #703674] Wed, 03 August 2011 04:03 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul Ramsden
Messages: 79
Registered: February 2011
Location: BW, Germany
Member
Hi Ralf

As far as I can tell it all looks fairly healthy - no duplicates.

Paul

0 ACTIVE org.eclipse.osgi_3.7.0.v20110613
551 ACTIVE org.eclipse.equinox.common_3.6.0.v20110523
552 ACTIVE javax.servlet_2.5.0.v201103041518
553 ACTIVE org.eclipse.rap.ui.workbench_1.4.0.20110614-2335
554 RESOLVED org.eclipse.rap.rwt.q07_1.4.0.20110614-2335
555 ACTIVE org.eclipse.equinox.registry_3.5.100.v20110502
556 ACTIVE com.ibm.icu_4.4.2.v20110208
557 ACTIVE org.eclipse.core.expressions_3.4.300.v20110228
558 ACTIVE org.eclipse.help_3.5.100.v20110426
559 ACTIVE org.eclipse.core.databinding_1.4.0.I20110111-0800
560 ACTIVE org.eclipse.rap.ui_1.4.0.20110614-2335
561 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.2.0.v20100503
562 ACTIVE org.eclipse.rap.jface.databinding_1.4.0.20110614-2335
563 ACTIVE org.eclipse.core.databinding.property_1.4.0.I20110222-0800
564 ACTIVE org.eclipse.core.databinding.observable_1.4.0.I20110222-0800
565 ACTIVE org.eclipse.equinox.http.servlet_1.1.200.v20110502
566 ACTIVE org.eclipse.equinox.app_1.3.100.v20110321
567 ACTIVE org.eclipse.equinox.http.registry_1.1.100.v20110502
568 ACTIVE org.eclipse.rap.ui.forms_1.4.0.20110614-2335
569 ACTIVE org.eclipse.core.commands_3.6.0.I20110111-0800
570 ACTIVE org.eclipse.rap.rwt_1.4.0.20110614-2335
571 ACTIVE org.eclipse.rap.jface_1.4.0.20110614-2335
572 ACTIVE org.eclipse.core.runtime_3.7.0.v20110110
573 ACTIVE org.eclipse.core.jobs_3.5.100.v20110404
574 ACTIVE org.eclipse.equinox.http.servletbridge_1.0.200.v20100503
575 ACTIVE org.eclipse.osgi.services_3.3.0.v20110513
576 ACTIVE org.eclipse.rap.ui.views_1.4.0.20110614-2335
578 ACTIVE org.eclipse.equinox.preferences_3.4.0.v20110502
579 ACTIVE org.eclipse.birt.runtime_3.7.0.v20110615-1818
580 ACTIVE org.eclipse.core.contenttype_3.4.100.v20110423-0524
581 ACTIVE org.eclipse.equinox.servletbridge_1.2.100.v20110502
660 ACTIVE FairManagement_1.0.0.qualifier
661 ACTIVE org.eclipse.datatools.enablement.postgresql_1.0.1.v200906020900
662 ACTIVE org.eclipse.datatools.enablement.mysql_1.0.2.v201002041100
663 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
664 ACTIVE org.eclipse.datatools.connectivity.oda.consumer_3.2.4.v201105200848
665 ACTIVE org.eclipse.rap.demo_1.4.0.20110614-2335
666 ACTIVE org.eclipse.rap.ui.cheatsheets_1.4.0.20110614-2335
667 ACTIVE org.apache.batik.util_1.6.0.v201011041432
668 ACTIVE org.eclipse.datatools.enablement.ibm.informix_1.0.1.v201005211230
669 ACTIVE org.eclipse.datatools.connectivity.sqm.core_1.2.2.v201104090305
670 ACTIVE org.mortbay.jetty.util_6.1.23.v201012071420
671 ACTIVE org.eclipse.emf.ecore.xmi_2.7.0.v20110520-1406
672 ACTIVE org.mozilla.javascript_1.7.2.v201005080400
673 ACTIVE org.eclipse.datatools.connectivity.oda.profile_3.2.5.v201104090305
674 ACTIVE javax.xml_1.3.4.v201005080400
675 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
676 ACTIVE org.eclipse.core.filesystem_1.3.100.v20110423-0524
677 ACTIVE org.eclipse.datatools.modelbase.sql.query_1.1.1.v201008100700
678 ACTIVE org.eclipse.datatools.connectivity.apache.derby_1.0.101.v201104090305
679 ACTIVE derby_10.5.1000001.764942
680 ACTIVE org.eclipse.datatools.enablement.oracle_1.0.0.v200908130544
681 ACTIVE org.eclipse.datatools.connectivity.oda.design_3.3.3.v201105191315
682 ACTIVE org.eclipse.datatools.enablement.msft.sqlserver_1.0.1.v201001180222
683 ACTIVE org.eclipse.emf_2.6.0.v20110530-1010
684 ACTIVE org.eclipse.emf.common_2.7.0.v20110527-1609
685 ACTIVE org.apache.batik.css_1.6.0.v201011041432
686 ACTIVE org.mortbay.jetty.server_6.1.23.v201012071420
687 ACTIVE org.eclipse.rap.design.example_1.4.0.20110614-2335
688 ACTIVE org.eclipse.core.resources_3.7.100.v20110510-0712
689 ACTIVE org.eclipse.datatools.modelbase.dbdefinition_1.0.2.v201002130228
690 ACTIVE org.eclipse.core.databinding.beans_1.2.100.I20100824-0800
691 ACTIVE org.eclipse.rap.demo.databinding_1.4.0.20110614-2335
692 ACTIVE org.apache.batik.svggen_1.6.0.v201011041432
693 ACTIVE org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1.0.4.v201005211215
694 ACTIVE org.eclipse.datatools.modelbase.derby_1.0.0.v201002161452
695 ACTIVE org.eclipse.datatools.enablement.ibm.informix.dbdefinition_1.0.4.v201005211230
696 ACTIVE org.eclipse.datatools.connectivity.apache.derby.dbdefinition_1.0.2.v200906161815
697 ACTIVE org.eclipse.update.configurator_3.3.100.v20100512
698 ACTIVE org.apache.batik.dom.svg_1.6.0.v201011041432
699 ACTIVE org.eclipse.datatools.enablement.mysql.dbdefinition_1.0.4.v200906161800
700 ACTIVE org.junit_3.8.2.v3_8_2_v20100427-1100
701 ACTIVE org.eclipse.datatools.enablement.oda.xml_1.2.1.v201104121500
702 ACTIVE org.eclipse.datatools.enablement.hsqldb_1.0.0.v200906020900
703 ACTIVE org.eclipse.datatools.connectivity_1.2.2.v201105270956
704 ACTIVE org.apache.batik.xml_1.6.0.v201011041432
705 ACTIVE org.eclipse.equinox.http.jetty_2.0.100.v20110502
706 ACTIVE org.eclipse.rap.junit_1.4.0.20110614-2335
707 ACTIVE org.apache.batik.parser_1.6.0.v201011041432
708 ACTIVE org.eclipse.rap.rwt.theme.classic_1.4.0.20110614-2335
709 ACTIVE org.eclipse.emf.ecore_2.7.0.v20110527-1609
710 ACTIVE org.eclipse.datatools.enablement.hsqldb.dbdefinition_1.0.0.v200906161800
711 ACTIVE org.eclipse.rap.junit.runtime_1.4.0.20110614-2335
712 ACTIVE org.apache.batik.transcoder_1.6.0.v201011041432
713 ACTIVE org.w3c.dom.svg_1.1.0.v201011041433
714 ACTIVE org.apache.batik.util.gui_1.6.0.v201011041432
715 ACTIVE org.eclipse.datatools.enablement.oda.ws_1.2.2.v201011041216
716 ACTIVE org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition_1.0.0.v201004211630
717 ACTIVE org.apache.batik.dom_1.6.0.v201011041432
718 ACTIVE org.eclipse.datatools.connectivity.db.generic_1.0.1.v200908130547
719 ACTIVE org.eclipse.datatools.enablement.ibm.db2.luw_1.0.2.v201005211230
720 ACTIVE com.lowagie.text_2.1.7.v201004222200
721 ACTIVE org.apache.commons.codec_1.3.0.v201101211617
722 ACTIVE org.eclipse.datatools.connectivity.oda_3.3.2.v201105200920
723 ACTIVE org.eclipse.datatools.enablement.oracle.dbdefinition_1.0.102.v201101120745
724 ACTIVE org.eclipse.datatools.connectivity.console.profile_1.0.0.v200906020553
725 ACTIVE org.eclipse.datatools.enablement.postgresql.dbdefinition_1.0.1.v200906161800
726 ACTIVE org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945
727 ACTIVE org.apache.batik.pdf_1.6.0.v201105071520
728 ACTIVE org.eclipse.datatools.connectivity.oda.flatfile_3.1.1.v201104191557
729 ACTIVE javax.wsdl_1.5.1.v201012040544
730 ACTIVE org.eclipse.datatools.connectivity.dbdefinition.genericJDBC_1.0.1.v200906161815
731 ACTIVE org.apache.batik.bridge_1.6.0.v201011041432
732 ACTIVE org.apache.batik.ext.awt_1.6.0.v201011041432
733 ACTIVE org.eclipse.emf.ecore.change_2.7.0.v20110408-2116
734 ACTIVE org.apache.xml.resolver_1.2.0.v201005080400
735 ACTIVE org.eclipse.jdt.junit.runtime_3.4.300.v20110505-0800
736 ACTIVE org.apache.xml.serializer_2.7.1.v201005080400
737 ACTIVE org.apache.xerces_2.9.0.v201101211617
Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #708905 is a reply to message #707500] Wed, 03 August 2011 05:16 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul Ramsden
Messages: 79
Registered: February 2011
Location: BW, Germany
Member
Hi Austin

thanks for your input!

Not sure if I did this correctly. I unpacked birt.runtime.jar and modified the Manifest to depend on core.runtime. I repacked into birt.runtime.jar and the application runs.

However, there are compile errors due to birt.runtime not being found and the BIRT part of my app does not function. birt.runtime is in my plugin dependency list but does not appear in the Package Explorer Plug-in Dependencies.

Any ideas what's going on?

Paul


index.php/fa/3564/0/
  • Attachment: birt.jpg
    (Size: 314.73KB, Downloaded 288 times)

[Updated on: Fri, 05 August 2011 02:19]

Report message to a moderator

Re: RAP1.4 + BIRT3.7 - java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IPlatformRunnable [message #710964 is a reply to message #708905] Fri, 05 August 2011 12:22 Go to previous message
Austin Riddle is currently offline Austin Riddle
Messages: 128
Registered: July 2009
Senior Member
Hi Paul,

In their 3.7 release, the BIRT team changed the way that the runtime release is meant to be consumed:

http://www.eclipse.org/birt/phoenix/project/notable3.7.php

Unfortunately this makes it more difficult to integrate BIRT into RAP (if you want BIRT to be in the same OSGi runtime).

So here is what I did to make it work the way it used to:

1. Download the BIRT SDK bundle:
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-3_7_0-201106151818/birt-report-framework-sdk-3_7_0.zip

2. Download the BIRT runtime bundle:
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-3_7_0-201106151818/birt-runtime-3_7_0.zip

3. Merge the 2 together and remove duplicates.

4. Remove the bundles from this new set of plugins that are already in the RAP Target Platform.

5. Remove the icu base bundle in the RAP Target Platform and replace with the full icu bundle from BIRT.

6. Add the new plugins to your target platform.

Then your bundles will have to depend on the specific BIRT bundles they need and everything should work fine.

This was just my quick and dirty stab at it.

After more refinement of the process we will update the wiki page.

Hope this helps.

--Austin
Previous Topic:Which qooxdoo Simulator version to use for UI test?
Next Topic:RAP JUnit Tests Ignore RAP Target Platform (Win only)
Goto Forum:
  


Current Time: Thu Jul 31 19:42:53 EDT 2014

Powered by FUDForum. Page generated in 0.02173 seconds