Eclipse RCP Application, Plugins and Classloader

Hi there,
I'm currently evaluatin KODO within an eclipse RCP application.
Anything went fine until I started to modularize my classes into
different plugins.
Background:
===========
The application consists of a "main" plugin, a "basic persistence layer"
plugin and an "additional persitent classes" plugin.
"basic" contains anything for kodo connections and persistence managers
and some general persitent classes
"additional" introduces some applicationspecific persitent classes.
the persistent classes of any plugin are registered using
"kodo.PersistentClasses".
I use "kodo.ClassResolver" to point to a class
"MultiPluginClassResolver" which inherits from
"MultiLoaderClassResolver" and has the classloader of each plugin
registered.
main depends on "basic" and "additional".
Problem:
========
Whenever I instaniate a PersistenceManager from within plugin "basic"
kodo throws a ClassNotFoundException as shown below.
de.bioassay.pla.assay.Assay is a class from plugin "additional"
What am I missing?
297 WARN [main] kodo.Runtime - java.lang.ClassNotFoundException:
de.bioassay.pla.assay.Assay
java.lang.ClassNotFoundException: de.bioassay.pla.assay.Assay
     at serp.util.MultiClassLoader.findClass(MultiClassLoader.java:230)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:242)
     at
kodo.runtime.PersistenceManagerFactoryImpl.loadPersistentClasses(PersistenceManagerFactoryImpl.java:208)
     at
kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:151)
     at
kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:104)
     at
kodo.runtime.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:97)
regards
Markus

Hi again.
could solve the problem on my own:
the "additional" plugin didn't have the jdo libraries within the
runtime classpath. The solution was to export the jdo libraries from
within the "base" plugin.
regards
Markus
M. Stier schrieb:
Problem:
========
Whenever I instaniate a PersistenceManager from within plugin "basic"
kodo throws a ClassNotFoundException as shown below.
de.bioassay.pla.assay.Assay is a class from plugin "additional"
What am I missing?

Similar Messages

  • How to webStart javafx in eclipse RCP Application.

    My Application is a RCP application containing javafx. I use efxclipse 3.8.2 to developing .   It can run in eclipse.
    I start it with jnlp,it have following errors:
    java.lang.NoClassDefFoundError: javafx/scene/paint/Paint
      at com.macrosan.ui.tree.DevicesRootNode.handleSelectEvent(Unknown Source)
      at com.macrosan.core.common.AbstractTreeNode.handleSelectTreeNode(Unknown Source)
      at com.macrosan.core.event.EventCenter.notifyTreeSelectHandler(Unknown Source)
      at com.macrosan.core.event.EventCenter.sendToEventCenter(Unknown Source)
      at com.macrosan.ui.views.PrimNavigationView$1.selectionChanged(Unknown Source)
      at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
      at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
      at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
      at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
      at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
      at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
      at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
      at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
      at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
      at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
      at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
      at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
      at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
      at org.eclipse.ui.internal.Workbench.init(Workbench.java:1595)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2628)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at com.macrosan.ui.Application.start(Unknown Source)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:79)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:57)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.scene.paint.Paint
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
      at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 58 more

    hi,
    http://www.ericgar.com/2006/10/17/eclipse-jbossas-ejb-30-setup-instructions/love google
    http://www.google.co.in/search?q=steps+to+interact+ejb+with+Eclipse&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

  • Developing an Eclipse RCP Plugin Project with CE and NWDI

    Hallo,
    I want to know what's the best way to create an Eclipse RCP application and have the sources managed by the NWDI.
    My problem is that development components within a software component can only be plain java projects and not plugin projects. Now I can convert a plugin project to a development component but when I try to build this dc it fails because the needed libraries for this origin plugin project (Plug-In Dependencies) are not available because is it now just a plain java project.
    However I could create another dc with the needed libraries and add this dc as a required dc but then it is not the same as a standard plugin project and I don't know if that could create problems then.
    In case anybody knows how to solve this problems, please give me a hint.
    Fabian

    Hi,
    I fixed the java.lang.NoClassDefFoundError problem in the Eclipse 3.1 Plug-in: in the Run > Environment, set the CLASSPATH variable to the directory containing the target program's package hierarchy. Now the Trace program runs ok when invoked from the plug-in.
    However, when I repeated the same configuration in Eclipse 3.0.2, I got the following runtime error.
    Unhandled event loop exception
    Reason:
    com/sun/jdi/connect/VMStartException
    Isn't Eclipse 3.0.2 supposed to behave in the same way? Any help will be much appreciated!
    Sunny

  • How to extending CR4E from Eclipse RCP plugin's

    Hi All,
    I want to create a eclipse RCP application which will extend CR4E and let me create my own wizards for data source customization.
    I read it from crystal report for eclipse 2.0 guide that RCP and CR4E support possible but please let me know how ? and is ther any material or sample for this? any where?
    Any related information will be highly appreciated.
    Regards,
    Sunil Kumar Sahoo.
    Sr. Software Engg.

    Dear Ted,
    I want to create one RCp application . which will invoke the custom plugins created by exteding eclipse extension pionts. Is it possiblle to invoke these eclipse plugins inside RCP applications. So that I can invoke my custom eclipse designer having custom data source and few more branding wizards ,inside RCP standalone application?
    If yes , Please kindly refer  how and which material describes this?
    your reply  will be hignly appreciated .
    Regards,
    Sunil Kumar Sahoo

  • Fatal errors using JavaFX ChoiceBox, Tooltip, Popup in Eclipse (RCP) View

    I'm using JavaFX within an Eclipse RCP application. Any JavaFX popup (ChoiceBox, Tooltip, etc..) within an eclipse view causes a fatal exception to occur when clicking on the popup. The popups do appear, but clicking on them causes the fatal error.
    I created a standalone JavaFX application to confirm that the Popups work fine in that environment. They do.
    I also created a standalone SWT-based application (outside of an RCP) that embeds the FXCanvas within an SWT shell and the problem doesn't occur there either.
    But when the Combo is contained in an FXCanvas within and RCP view, the fatal exception occurs.
    Has anybody else seen this behavior?
    I tried it with JavaFX 2.0.2, 2.1 b17, 2.1 b19 (all 32bit)
    I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit)
    My RCP target platform is based on eclipse 3.6 (galileo).
    Thanks!

    The problem is described in http://javafx-jira.kenai.com/browse/RT-20883. e(fx)clipse 0.0.14 (http://tomsondev.bestsolution.at/2012/05/29/efxclipse-0-0-14-released/) which I've just released fixes the problem. Unfortunately it does not work with 3.6 because I'm using OSGi API only available > 3.7.0

  • Question about Starting Eclipse with PVCS Version Manager Plugin and Flash Builder 4 plugin

    I used Eclipse 3.4.2 SR2 with PVCS Version Manager plugin.
    I installed Adobe Flash Builder 4 Plugin to the Eclipse.
    Eclipse executed successfully at first time.
    After I open *.mxml file with the Eclipse and close.
    After minutes, I execute Eclipse.
    But I waited 40 minutes to see Eclipse Editor screen.
    Are there any problem in Adobe Flash Builder 4 Plugin?
    ====== If you know Korean Character, You can see below message, I hope so ========
    Environment
    * OS: Windows XP SP3
    * Eclipse: 3.4.2 SR2
    * JDK: 1.5.0
    * Serena PVCS Version Manager : 8.3.0
    * Adobe Flash Builder 4 Plugin
    위의 환경에서 Eclipse에 Version Manager Plugin을 설치하여 사용할 때는 잘 동작 하였습니다.
    하지만, Adobe Flash Builder 4 Plugin 을 설치하고 *.mxml 파일을 열어 작업한 후에 Eclipse를 Close 하였습니다.
    잠시후에 다시 Eclipse를 실행하면 약 40분 정도 시간이 지나서야 Eclipse 편집창을 볼 수 있었습니다.
    혹시 Adobe Flash Builder 4 Plugin 제품과 Serena PVCS Version Manager 제품이 서로 conflict 하는 것이 아닌가
    의심을 하고 있습니다.
    귀사에서 이런 경험이 있다면 해결 방법을 알려주시면 감사하겠습니다.
    Thank's

    I experimented with the latest Zend Studio 8 trials on both platforms yesterday, and it looks a little different depending on which platform you're using:
    On OS X, because Zend Studio is now contained entirely within the app bundle, it's tricky navigating to the proper eclipse folder with our Plug-in Utility. As it turns out, the Zend dropins folder does exist if you look down low enough:
    /Applications/Zend Studio.app/Contents/Resources/Java/dropins
    When I typed that path into the Burrito Plug-in Utility manually, it found the dropins folder, and proceeded to install the link without complaint. However, the Zend dropins folder is not working properly on OS X either, as already found on Win, so it's not using the link.
    On Win, Zend Studio 8 doesn't include the dropins folder in the first place, as noted earlier. Apparently, Zend doesn't have its dropins folder enabled on either Mac or Win.
    To see if this problem is specific to dropin links, I downloaded the latest Orbit plugins from eclipse.org and tried adding those directly to the Zend dropins folder, instead of using a link. Zend doesn’t appear to recognize them either.
    I'll check with our contact at Zend to see what happened.
    -Chris

  • Extending CR4E using Eclipse RCP plugin's

    <p>Hi Sean,</p><p>I have not started checking this for myself, so this question is more theoretical.</p><p>I plan to customize and extend CR4E using Eclipse RCP plugin architecture. The two main requirements are to add a custom data-source type/provider to the report wizard, and to add a custom result-set wrapper for the said data-source. Other requiremnets may be more look&feel related.</p><p>Assuming licensing issues are met, I had a few questions.</p><p>1. Are there suitable extension points for this in CR4E</p><p>2. Given your current roadmap, is the api stable.</p><p>Thanks,</p><p>Nathaniel</p>

    <p>Unfortunately, developing against these extension points is not currently supported. We definitely plan to support building against these extension points in the future, but in the initial release this was just not in the timeframe. The extension points are likely to change in future releases and we didn&#39;t want to be bound to the initial definition released in version 1. I will keep you updated when this feature does become available. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • Crystal Reports for Eclipse plugin and CR XI server

    I have a software requirement in which I need to support both internal (CR Eclipse plugin using the report viewer, not sure what the real name of this is) along with external (CR XI server) reporting.  In other words, I should be able to display a report (.rpt) that exists on my local app server along with one that exists on the CR XI server.  My question is this:
    So I have both sets of jar libraries (eclipse plugin and XI server) and I see that some of the them are overlapping (some of the jars have the same name).  For the ones that overlap, should I choose the ecilipse plugin or XI server ones...?
    One example I found is that the eclipse plugin rasapp.jar contains the POJOResultSetHelper class whereas the rasapp.jar from the XI server does not.  In this case, I presume I should use the eclipse version, right?
    Thanks for your help!
    Louis

    Hello Louis,
    -If you are using latest version of CR Eclipse plugin using the report viewer,then I would recommend going for JAR files of this eclipse plugin than that of CR XI Server.
    -The only reason being Eclipse plugin will give you most updated JAR files.
    -Before using JAR files from Eclipse plugin, I would suggest you to update your present JAR files to latest available JAR files.
    This can be done through Eclipse using update option.
    And once you update them, you can use those JARs.
    Thanks,
    Chinmay

  • Eclipse RCP and swing key accelerator

    Hi,
    I have a JTree inside a view and a popup message when you right click
    on the tree.
    I added a key accelerator to the menu and I see the shortcut on the menu but when I use the shortcut, nothing happens.
    I believe the problem is SWT -> SWING issue but I don't have any idea
    how to solve it.
    Thanks in advance
    Dekel

    Java 'WebStart is (in principle) a fine distribution/deployment/update technology.
    It covers smart versioning of jars/jvms.
    Native user experience and Swing poses no problem.
    I prefer Swing as one can construe one own controls in detail.
    Both Eclipse RCP and Netbeans Platform have a very specific starting point.
    Both come with a considerable amount of code.
    In fact have a feasability study in the form of writing hello-worlds in both.
    The unmentioned alternative, starting from scratch with Swing,
    may have some benefits.

  • When I try to open my AI CS6 "missing required plugins" and "PDF Format.aip" comes up I click ok and the application stops. Not opening What can I do?

    When I try to open my AI CS6 "missing required plugins" and "PDF Format.aip" comes up I click ok and the application stops. Not opening What can I do?

    Matilda,
    You may need to reinstall, using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • 10.8.2 update and Eclipse Based Applications

    Every since this upgrade came out all my Eclipse based applications take an age to load. Zend Studio, Aptana, Titanium & Jaspersoft all take over 10 minutes + to load the workbench. Is anyone else experiencing the same issues and if so any solution? Really annoying...

    Try the steps at > OS X Mountain Lion: Reset the printing system

  • Using UFL's in RCP application

    <p>We are trying to use UFL functions in a RCP client that we downloaded from this site (BaileyRCPDemo).  </p><p> We built the UFL based on &#39;Crystal Reports for Exclipse - Using User Function Libraries to Internationalize Reports&#39;. This part went fine and we are able to jar the UFL library and use it in a sample .rpt and everything looks fine.</p><p>But when we change the .rpt file in the BaileyRCPDemo to use the same UFL we get the following exception:. We tried Specifying the jar file for the UFL functions in the classpath for the runtime. When this did not help we created a plugin project off the UFL jar and listed that as a dependency in the plugin for the BailyeRCPDemo. But, we are still getting the same exception listed below.</p><p>Is there anything else required to use the UFL functions in a RCP application? Looking forward to any approaches, suggestions for this problem.</p><p>Thanks!</p><p>--</p><font size="2" color="#ff0000"><p align="left">Caused by: com.crystaldecisions.reports.formatter.formatter.c: Exception in formula &#39;{@LocalizeIdColName}&#39; at &#39;get_localized_string("idColName", "Messages", "en_US")</p></font><font size="2" color="#ff0000"><p align="left">&#39;:</p><p align="left">UFL &#39;com.iex.tv.InternationalizationLibrary&#39; that implements this function is missing.</p><p align="left">at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.<init>(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.if(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.formatter.formatter.e.l.<init>(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.formatter.formatter.e.p.<init>(Unknown Source)</p><p align="left">at com.crystaldecisions.reports.formatter.formatter.e.p.a(Unknown Source)</p><p>... 62 more</p><p>--
    </p></font><p>Both</p>

    Hi,
      Additional to ensuring that the UFL jar file is on the classpath you will also need to ensure that the CRConfig.xml file is added to your RCP project and modified with the appropriate tags for your UFL. You can read my response here to find out exactly how to do this:
    <a href="http://diamond.businessobjects.com/node/1214#comment-1140">http://diamond.businessobjects.com/node/1214#comment-1140</a>
    We don't have any tooling right now to automatically ad the CRConfig.xml file to an RCP application so you may find it easier to grab the file from a blank Crystal Reports Web Application.
    Let me know if you have further questions.
    Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>

  • A RCP Application using javafx deployed by java web start,in jre8u25 run have problem.

    a RCP Application using javafx deployed by java web start,in jre8u20 can use jre7run the applicat,but in jre8u25 use jre7run application have problem.
    in jre8u20 use jre7 run the application can run success.
    but in jre8u20 the control print:
    java.lang.UnsupportedClassVersionError: com/sun/javafx/runtime/VersionInfo : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.sun.deploy.config.JfxRuntime.runtimeForPath(Unknown Source)
    at com.sun.deploy.config.JREInfo.<init>(Unknown Source)
    at com.sun.deploy.config.JREInfo.setInstalledJREList(Unknown Source)
    at com.sun.deploy.config.ClientConfig.storeInstalledJREs(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    the reason (i think) is that the application will use javafx's com.sum.javafx.runtime.VersionInfo,i use e(fx)clipse load the javafx runtime.in jre8u20,the web start use jre7's class.in jre8u25,the web start use jre8's class.
    so i use jre7 run the application get this result.
    how could i solve this problem?

    Hi,
    I have created client stubs for a webservice using axis wsdl2java tool. When I try calling these stubbed methods from JUnit tests, they are working fine but when I try to execute the jar (it is a swing) I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.Gudds.SeCURE.MainUI.<init>(MainUI.java:76)
    at com.Gudds.SeCURE.Main.Start(Main.java:62)
    at org.owasp.webscarab.WebScarab.main(WebScarab.java:34)
    I have put the jaxrpc.jar in the classpath and I suppose this jar has the java.xml.rpc.service class but I donot understand why it fails while executing the jar but works fine from the eclipse IDe. Plase help me.
    Regrdas,
    Kundan

  • Eclipse RCP Migration 3x to 4x

    I am migrating my eclipse RCP 3.4.2 application to Luna 4.2. I did below steps for that:
    1. imported source code in Luna and resolve all compilation error.
    2. updated plug in in plugin.xml
    able to make build but when started the application getting below error:
    !SESSION 2015-02-13 14:31:07.975 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.7.0_51
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments: -product com.mywells.edf.core.RWProduct
    Command-line arguments: -product com.mywells.edf.core.RWProduct -dev file:C:/Users/CANDVLPTP-1/workspace_tech_upgrade/.metadata/.plugins/org.eclipse.pde.core/NDUSA/dev.properties
    !ENTRY org.eclipse.ui.workbench 4 0 2015-02-13 14:31:10.175
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY com.mywells.edf.plugin.iadc.reviewreports 4 0 2015-02-13 14:31:10.185
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: com.mywells.edf.plugin.iadc.reviewreports [9]
    Unresolved requirement: Require-Bundle: org.eclipse.ui
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY org.eclipse.ui 4 0 2015-02-13 14:31:10.195
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY org.eclipse.ui.browser 4 0 2015-02-13 14:31:10.195
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.ui.browser [78]
    Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="[3.6.0,4.0.0)"
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY org.eclipse.core.databinding 4 0 2015-02-13 14:31:10.205
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.core.databinding [80]
    Unresolved requirement: Require-Bundle: org.eclipse.core.databinding.observable; bundle-version="[1.3.0,2.0.0)"; visibility:="reexport"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY com.mywells.edf.plugin.highfrequency 4 0 2015-02-13 14:31:10.215
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: com.mywells.edf.plugin.highfrequency [84]
    Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="3.106.0"
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY com.mywells.edf.plugin.iadc.bha 4 0 2015-02-13 14:31:10.215
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: com.mywells.edf.plugin.iadc.bha [85]
    Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="3.106.0"
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY com.mywells.edf.plugin.costcenter 4 0 2015-02-13 14:31:10.225
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: com.mywells.edf.plugin.costcenter [86]
    Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="3.106.0"
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    !ENTRY com.mywells.edf.plugin.iadc.equipment 4 0 2015-02-13 14:31:10.235
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: com.mywells.edf.plugin.iadc.equipment [87]
    Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="3.106.0"
    -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.0.v20140812-1751"; singleton:="true"
    org.eclipse.ui [14]
    Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.1.v20140827-1737"; singleton:="true"
    org.eclipse.ui.workbench [4]
    Unresolved requirement: Import-Package: javax.annotation; version="1.0.0"
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
    Please let me know if you have some better steps for migrating 3.x to 4.x .or let me know how I can resolve this issue.

    hello, did you fix this problem already?

  • Eclipse RCP & RMI

    Hi,
    I might be considered a noob with these two technologies and I have a problem using RMI with my eclipse RCP app.
    Simple RMI server and client works fine, however if use eclipse rcp as the client, it hangs forever while "lookup".
    Simple Server Code:
    System.setSecurityManager(new RMISecurityManager());
    Registry registry = LocateRegistry.getRegistry("localhost", 1099);
    HelloImpl obj = new HelloImpl();
    registry.rebind("HelloServer", obj);Simple RCP Client Code: (executed in a job scheduled)
    System.setSecurityManager(new MySecurityManager());
    Registry registry = LocateRegistry.getRegistry("localhost", 1099);
    Hello obj = (Hello) registry.lookup("HelloServer");  //hangs here
    String message = obj.sayHello();MySecurityManager:
    public class MySecurityManager extends SecurityManager {
    public MySecurityManager() {}
    public void checkPermission() {}
    public void checkPermission(Permission perm) {}
    public void checkPermission(Permission perm, Object context) {}
    }Client code works fine if it is a simple application. The only difference to me was VM arguments and I added "codebase" and "policy" arguments but no change at all. (actually, rcp client already has stub file)
    Is there any specific configuration I need to adjust to make it work?
    Any help would be appreciated.
    Thx

    okay, it wasnt hanged, it throws an exception.my bad..
    java.lang.ClassCastException: HelloImpl_Stub
    So, I remove the stub file from Client and change codebase arg to
    -Djava.rmi.server.codebase=file:${workspace_loc:/RMIServer/bin}
    didnt work..
    Both classes are generated by same SDK (1.5). Client and server are running on same machine (local)
    someone claimns to have a solution in your forum here:
    http://www.genady.net/forum/viewtopic.php?t=205
    and another one here:
    http://forum.java.sun.com/thread.jspa?forumID=58&threadID=721143
    here is the new code:
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
    System.setSecurityManager(new MySecurityManager());     
    Registry registry = LocateRegistry.getRegistry("localhost", 1099);
    Hello obj = (Hello) registry.lookup("HelloServer");
    String message = obj.sayHello();
    System.out.println(message);
    Thread.currentThread().setContextClassLoader(oldLoader);Still I get the same exception.

Maybe you are looking for