From dev-return-43065-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Dec 7 03:39:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 342E4180674 for ; Fri, 7 Dec 2018 03:39:07 +0100 (CET) Received: (qmail 83579 invoked by uid 500); 7 Dec 2018 02:39:05 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 83568 invoked by uid 99); 7 Dec 2018 02:39:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2018 02:39:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1FB9CC76E7 for ; Fri, 7 Dec 2018 02:39:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id rDxK9p_s3S3X for ; Fri, 7 Dec 2018 02:39:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 20889610E1 for ; Fri, 7 Dec 2018 02:39:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EE6B7E1328 for ; Fri, 7 Dec 2018 02:39:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5D34B252C7 for ; Fri, 7 Dec 2018 02:39:00 +0000 (UTC) Date: Fri, 7 Dec 2018 02:39:00 +0000 (UTC) From: "XuQingping (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-10586) Ignite OSGI issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 XuQingping created IGNITE-10586: ----------------------------------- Summary: Ignite OSGI issues Key: IGNITE-10586 URL: https://issues.apache.org/jira/browse/IGNITE-10586 Project: Ignite Issue Type: Bug Components: osgi Affects Versions: 2.7, 2.6 Reporter: XuQingping =C2=A0 =C2=A0 When using the Ignite OSGI feature in Eclipse RCP, there are a lot of Issue= s: 1.Ignite-core=C2=A0 =C2=A0=C2=A0=C2=A01) The cache-api-1.0.0.jar package that is included is no= t fully exported=C2=A0 (for example, no export: javax.cache.configuration), it should be replaced= =C2=A0 with: org.apache.servicemix.bundles.javax-cache-api-1.1.0_1 .jar=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A02) References to unpublished packages such as com.s= un.management, which=C2=A0 need to be added at runtime=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-Dorg.osgi.framework.system.packages.extra=3Dcom= .sun.management,sun.misc,sun.nio.ch=C2=A0 2.ignite-spring=C2=A0 =C2=A0=C2=A0=C2=A01) The spring-xxxxx-4.3.16.RELEASE.jar series that comes = with it is not=C2=A0 an OSGI packaged version and should be replaced with the corresponding=C2= =A0 org.apache.servicemix.bundles version ([http://repo1.maven.org/maven2/org/] Apache/servicemix/bundles/ Download version 4.3.16)=C2=A0 =C2=A0=C2=A0=C2=A02) Even if replaced with the org.apache.servicemix.bundle= s version, since=C2=A0 the org.apache.servicemix.bundles does not reference the ignite-core plugin= ,=C2=A0 it cannot be dynamically created IgniteConfiguration when loading the Ignit= e=C2=A0 configuration from the file(OSGI Bundles can only use Java classes exported= =C2=A0 by other OSGIBundles that they depend on (or import) (and these=C2=A0 servicemix.bundles obviously have neither dependencies nor import any Ignit= e=C2=A0 related types)).=C2=A0 =C2=A0Error message :=C2=A0 =C2=A0 {code:java} class org.apache.ignite.IgniteException: Failed to create Ignite component = (consider adding ignite-spring module to classpath) [component=3DSPRING, cl= s=3Dorg.apache.ignite.internal.util.spring.IgniteSpringHelperImpl] =09at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUt= ils.java:1025) =09at org.apache.ignite.Ignition.start(Ignition.java:401) =09at ignite.examp.IgniteExampBase.startStdClient(IgniteExampBase.java:72) =09at ignite.examp.cluster.IgniteComputeExamp.main(IgniteComputeExamp.java:= 50) =09at ignite.examp.eclipse.IgniteExamp_Application.start(IgniteExamp_Applic= ation.java:23) =09at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl= e.java:196) =09at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli= cation(EclipseAppLauncher.java:134) =09at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec= lipseAppLauncher.java:104) =09at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja= va:388) =09at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja= va:243) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) =09at java.lang.reflect.Method.invoke(Unknown Source) =09at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653) =09at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590) =09at org.eclipse.equinox.launcher.Main.run(Main.java:1499) =09at org.eclipse.equinox.launcher.Main.main(Main.java:1472) Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create= Ignite component (consider adding ignite-spring module to classpath) [comp= onent=3DSPRING, cls=3Dorg.apache.ignite.internal.util.spring.IgniteSpringHe= lperImpl] =09at org.apache.ignite.internal.IgniteComponentType.componentException(Ign= iteComponentType.java:320) =09at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponen= tType.java:296) =09at org.apache.ignite.internal.IgniteComponentType.create(IgniteComponent= Type.java:207) =09at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.j= ava:769) =09at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:1032) =09at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:982) =09at org.apache.ignite.Ignition.start(Ignition.java:398) =09... 16 more Caused by: java.lang.ClassNotFoundException: org.apache.ignite.internal.uti= l.spring.IgniteSpringHelperImpl cannot be found by com.cimstech.xlibs.ignit= e_1.0.0 =09at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl= eLoader.java:484) =09at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.= java:395) =09at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.= java:387) =09at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl= assLoader.java:150) =09at java.lang.ClassLoader.loadClass(Unknown Source) =09at java.lang.Class.forName0(Native Method) =09at java.lang.Class.forName(Unknown Source) =09at org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponen= tType.java:282) =09... 21 more {code} =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)