|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Unsatisfied import package sun.rmi.registryHi,
When I exported "my rcp product", then was shown the following error: Problems during export Bundle org.ow2.easybeans.component.carol failed to resolve.: Unsatisfied import package sun.rmi.registry_0.0.0. Bundle org.ow2.easybeans.component.carol failed to resolve.: Unsatisfied import package sun.rmi.registry_0.0.0. 1) Someone Knows How should I do to resolve this problem ? Regards Fernando |
|
|
Re: Unsatisfied import package sun.rmi.registry
Hi Fernando,
You should look at the configuration file of Felix or Equinox or ... the org.osgi.framework.system.packages property should contains sun.rmi.transport; \ sun.rmi.registry; \ and org.osgi.framework.bootdelegation=sun.*,com.sun.* Have a look at the configuration files provided in the EasyBeans assembly for Felix, Equinox and knopflerfish. Regards, Florent Fernando Freitas wrote: Hi, |
|
|
Re: Re: Unsatisfied import package sun.rmi.registryThanks Florent!!
And about this conflict.... 1) Someone has a hint about this? Follows Below Regards Fernando PS: This only happens when I use two bundles: org.apache.commons.logging (mandatory for my application) org.eclipse.equinox.ds (mandatory for EZB) ERROR - 13:35:11 [B: org.eclipse.equinox.ds] - [SCR] Cannot activate instance org.ow2.easybeans.osgi.core.EZBCoreService@9260ee of component Component[ name = core-component autoenable = true factory = null immediate = true implementation = org.ow2.easybeans.osgi.core.EZBCoreService properties = {service.pid=org.ow2.easybeans.core} serviceFactory = false serviceInterface = [org.ow2.easybeans.osgi.core.EZBCoreService] references = { Reference[name = carolComponent, interface = org.ow2.easybeans.component.carol.CarolComponent, policy = static, cardinality = 1..1, target = null, bind = null, unbind = null] Reference[name = ezbComponents, interface = org.ow2.easybeans.component.api.EZBComponent, policy = dynamic, cardinality = 0..n, target = null, bind = addComponent, unbind = removeComponent] Reference[name = ezbContainers, interface = org.ow2.easybeans.api.EZBContainer, policy = dynamic, cardinality = 0..n, target = null, bind = addContainer, unbind = removeContainer] } located in bundle = initial@reference:file:plugins/easybeans-core_1.0.2.jar/ [59] ]. 14/04/09 13:35:11 (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.carol.CarolComponent. 14/04/09 13:35:11 (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.carol.carolcomponent-1239726909411-1 created ERROR - 13:35:11 [B: org.eclipse.equinox.ds] - [SCR] Exception while activating instance org.ow2.easybeans.osgi.core.EZBCoreService@9260ee of component core-component. Exception: null java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:118) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:149) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:290) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:578) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:195) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:317) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:213) at org.eclipse.osgi.framework.internal.core.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:91) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1248) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEventPrivileged(Framework.java:1563) at org.eclipse.osgi.framework.internal.core.Framework.publishServiceEvent(Framework.java:1538) at org.eclipse.osgi.framework.internal.core.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:122) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.createServiceRegistration(BundleContextImpl.java:666) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:617) at org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updateMapsAndRegisterService(EZBComponentServiceFactory.java:219) at org.ow2.easybeans.osgi.component.EZBComponentServiceFactory.updated(EZBComponentServiceFactory.java:198) at org.eclipse.equinox.internal.cm.ManagedServiceFactoryTracker$2.run(ManagedServiceFactoryTracker.java:177) at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) Caused by: java.lang.ExceptionInInitializerError at org.ow2.easybeans.jmx.CommonsModelerHelper.initRegistry(CommonsModelerHelper.java:66) at org.ow2.easybeans.server.Embedded.start(Embedded.java:224) at org.ow2.easybeans.osgi.core.EZBCoreService$1.execute(EZBCoreService.java:126) at org.ow2.easybeans.osgi.core.EZBCoreService$1.execute(EZBCoreService.java:103) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77) at org.ow2.easybeans.osgi.core.EZBCoreService.start(EZBCoreService.java:101) at org.ow2.easybeans.osgi.core.EZBCoreService.activate(EZBCoreService.java:187) ... 24 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log implementation at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:842) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645) at org.apache.commons.modeler.Registry.<clinit>(Registry.java:85) ... 31 more //------------------------------------- 2009/4/14 Florent BENOIT <Florent.BENOIT@...>
|
|
|
Re: Re: Re: Unsatisfied import package sun.rmi.registry
Hi Fernando,
I think you should switch to the 1.1.x version of EasyBeans. This problem is fixed in this version. Regards, Florent Fernando Freitas wrote: Thanks Florent!! |
|
|
Re: Re: Re: Re: Unsatisfied import package sun.rmi.registryI 'll try to do this!
Can you help me? In this version (1.1) 1) What bundles should I to use? ( FOR EQUINOX ) 2) what the agent bundle starts for me? 3) About start level. If necessary . What is the start level of each EZB bundles ? Thanks one more time! Fernando 2009/4/15 Florent BENOIT <Florent.BENOIT@...>
|
|
|
Re: Re: Re: Re: Unsatisfied import package sun.rmi.registryHi,
I am trying to migrate to EZB 1.1.x version. Currently , I am using the version 1.02. Someone can help me with it? 1) What is the bundle that export this package? 2) How should I do to resolve it? org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.ow2.easybeans.osgi.configuration; version="0.0.0" at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:595) thanks Fernando |
|
|
Re: Re: Re: Re: Re: Unsatisfied import package sun.rmi.registryHi,
it is working for me with org.eclipse.osgi_3.4.0.v20080205.jar and EZB 1.1.0.RC1
try add this in config.ini, remove the equinox stuffs which you don't want
.....
org.osgi.framework.bootdelegation=sun.*,com.sun.*
osgi.bundles=\ plugins/system/org.eclipse.osgi.services_3.1.200.v20071203.jar@... plugins/system/org.eclipse.osgi.util_3.1.300.v20080303.jar@... plugins/system/org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar@... plugins/system/org.eclipse.core.jobs_3.4.0.v20080512.jar@... plugins/system/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar@... plugins/system/org.eclipse.core.runtime.compatibility_3.2.0.v20071008.jar@... plugins/system/org.eclipse.core.runtime_3.4.0.v20080512.jar@... plugins/system/org.eclipse.equinox.app_1.1.0.v20080421-2006.jar@... plugins/system/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar@... plugins/system/org.eclipse.equinox.ds_1.0.0.v20080427-0830.jar@... plugins/system/org.eclipse.equinox.event_1.1.0.v20080225.jar@... plugins/system/org.eclipse.equinox.http.jetty_1.1.0.v20080425.jar@... plugins/system/org.eclipse.equinox.http.registry_1.0.100.v20080427-0830.jar@... plugins/system/org.eclipse.equinox.http.servlet_1.0.100.v20080427-0830.jar@... plugins/system/org.eclipse.equinox.log_1.1.0.v20080414.jar@... plugins/system/org.eclipse.equinox.preferences_3.2.201.R34x_v20080709.jar@... plugins/system/org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar@... plugins/system/org.eclipse.equinox.util_1.0.0.v20080414.jar@... plugins/system/org.eclipse.equinox.cm_1.0.0.v20080509-1800.jar@... plugins/system/org.eclipse.update.configurator_3.2.101.R33x_v20070810.jar@... plugins/system/org.mortbay.jetty_5.1.14.v200806031611.jar@... plugins/system/javax.servlet_2.4.0.v200806031604.jar@... plugins/system/javax.xml_1.3.4.v200806030440.jar@... plugins/system/org.apache.commons.logging_1.0.4.v20080605-1930.jar@... plugins/ejb3/ow2-bundles-externals-slf4j-jcl-1.0.12.jar@... plugins/ejb3/org.apache.felix.dependencymanager-1.1.0-2008.07.10.jar@... plugins/ejb3/ow2-bundles-externals-commons-modeler-1.0.12.jar@... plugins/ejb3/easybeans-agent-1.1.0-RC1.jar@... plugins/ejb3/ow2-util-event-api-1.0.12.jar@... plugins/ejb3/ow2-util-event-impl-1.0.12.jar@... plugins/ejb3/ow2-util-jmx-api-1.0.12.jar@... plugins/ejb3/ow2-util-jmx-impl-1.0.12.jar@... plugins/ejb3/easybeans-component-carol-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-quartz-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-jotm-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-joram-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-event-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-jmx-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-statistic-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-hsqldb-1.1.0-RC1.jar@... plugins/ejb3/easybeans-component-jdbcpool-1.1.0-RC1.jar@... plugins/ejb3/easybeans-core-1.1.0-RC1.jar@... #plugins/ejb3/easybeans-agent-1.1.0-RC1.jar@... osgi.bundles.defaultStartLevel=4 eclipse.ignoreApp=true osgi.noShutdown=true -Gembin
2009/4/15 Fernando Freitas <nandows@...> Hi, |
|
|
Re: Re: Re: Re: Re: Re: Unsatisfied import package sun.rmi.registryHi ,
Thanks for helps! Follow Below my config.ini . I don't know if all the start level are correct. But, manually, it is working! Cheers Fernando osgi.bundles=org.eclipse.equinox.common@2:start, \ com.ibm.icu, \ javax.servlet, \ org.eclipse.core.commands, \ org.eclipse.core.contenttype, \ org.eclipse.core.databinding, \ org.eclipse.core.expressions, \ org.eclipse.core.jobs, \ org.eclipse.core.runtime@start, \ org.eclipse.core.runtime.compatibility.auth, \ org.eclipse.core.runtime.compatibility.registry, \ org.eclipse.equinox.app, \ org.eclipse.equinox.cm, \ org.eclipse.equinox.ds, \ org.eclipse.equinox.launcher, \ org.eclipse.equinox.launcher.gtk.linux.x86, \ org.eclipse.equinox.log, \ org.eclipse.equinox.util, \ org.eclipse.equinox.preferences, \ org.eclipse.equinox.registry, \ org.eclipse.equinox.transforms.hook, \ org.eclipse.help, \ org.eclipse.jface, \ org.eclipse.jface.databinding, \ org.eclipse.osgi.services, \ org.eclipse.swt, \ org.eclipse.swt.gtk.linux.x86, \ org.eclipse.ui, \ org.eclipse.ui.workbench, \ org.eclipse.update.configurator@:start org.ow2.bundles.ow2-bundles-externals-commons-logging_1.0.12@:start, \ org.ow2.bundles.ow2-bundles-externals-commons-modeler_1.0.12@:start, \ org.ow2.bundles.ow2-bundles-externals-slf4j-jcl_1.0.12@:start, \ org.ow2.bundles.ow2-util-event-api_1.0.12@:start, \ org.ow2.bundles.ow2-util-event-impl_1.0.12@:start, \ org.ow2.bundles.ow2-util-jmx-api_1.0.12@:start, \ org.ow2.bundles.ow2-util-jmx-impl_1.0.12@:start, \ org.ow2.easybeans.agent_1.1.0.RC1@5:start, \ org.ow2.easybeans.component.carol_1.1.0.RC1, \ org.ow2.easybeans.component.event_1.1.0.RC1, \ org.ow2.easybeans.component.hsqldb_1.1.0.RC1, \ org.ow2.easybeans.component.jdbcpool_1.1.0.RC1, \ org.ow2.easybeans.component.jmx_1.1.0.RC1, \ org.ow2.easybeans.component.joram_1.1.0.RC1, \ org.ow2.easybeans.component.jotm_1.1.0.RC1, \ org.ow2.easybeans.component.quartz_1.1.0.RC1, \ org.ow2.easybeans.component.statistic_1.1.0.RC1, \ org.ow2.easybeans.core_1.1.0.RC1, \ org.apache.felix.dependencymanager_1.1.0 2009/4/16 张斌 <gembin@...>
|
|
|
Re: Unsatisfied import package sun.rmi.registryHi
Which configuration file are you talking about, I presume you mean the one specified in your .product file. My config.ini file already has what you mentioned but I still get the same error when I try and export the product. Am I doing something wrong?
|
| Free embeddable forum powered by Nabble | Forum Help |