Forgive me for misspelling your name Ramazan.

Sincerely,
- Ray

On Tue, Aug 7, 2018 at 9:01 AM, Raymond Auge <[email protected]>
wrote:

> Hello Raman,
>
> Since many of the aspects could be related to Liferay specifics, you may
> have better luck asking on the Liferay forums here [1] or even on the
> Liferay community slack group here [2].
>
> Sincerely,
> - Ray
>
> [1] https://community.liferay.com/forums
> [2] https://liferay-community.slack.com
>
> On Mon, Aug 6, 2018 at 10:56 AM, Ramazan Bekrek (Extern) via osgi-dev <
> [email protected]> wrote:
>
>> I would like to know why when I’m running an OSGi compiled JAR Bundle
>> inside of Liferay OSGi environment I get this error:
>>
>>
>>
>> *This is the bnd.bnd file*
>>
>>
>>
>> Bundle-Name: Liferay Portal Portlet Bridge Soy
>>
>> Bundle-SymbolicName: com.liferay.portal.portlet.bridge.soy
>>
>> Bundle-Version: 3.2.0
>>
>> Export-Package: com.liferay.portal.portlet.bridge.soy
>>
>> Liferay-Releng-Module-Group-Description:
>>
>> Liferay-Releng-Module-Group-Title:
>>
>> Web-ContextPath: /portal-portlet-bridge-soy
>>
>>
>>
>> *This ist he build.gradle file*
>>
>>
>>
>> sourceCompatibility = "1.8"
>>
>> targetCompatibility = "1.8"
>>
>>
>>
>> configJSModules {
>>
>>                 include "**/*.js*"
>>
>> }
>>
>>
>>
>> dependencies {
>>
>>                 compileOnly group: "com.liferay", name:
>> "com.liferay.osgi.util", version: "3.2.0"
>>
>>                 compileOnly group: "com.liferay", name:
>> "com.liferay.petra.function", version: "1.0.0"
>>
>>                 compileOnly group: "com.liferay", name:
>> "com.liferay.petra.string", version: "1.0.0"
>>
>>                 compileOnly group: "com.liferay.portal", name:
>> "com.liferay.portal.impl", version: "2.0.0"
>>
>>                 compileOnly group: "com.liferay.portal", name:
>> "com.liferay.portal.kernel", version: "2.13.0"
>>
>>                 compileOnly group: "com.liferay.portal", name:
>> "com.liferay.util.bridges", version: "2.0.0"
>>
>>                 compileOnly group: "javax.portlet", name: "portlet-api",
>> version: "2.0"
>>
>>                 compileOnly group: "javax.servlet", name:
>> "javax.servlet-api", version: "3.0.1"
>>
>>                 compileOnly group: "org.osgi", name: "org.osgi.core",
>> version: "6.0.0"
>>
>>                 // Added this
>>
>>                 compileOnly project(":modules:portal-template-soy-api")
>>
>>                 // commented this provided project(":apps:foundation:port
>> al-template:portal-template-soy-api")
>>
>>
>>
>>                 testCompile group: "com.liferay", name:
>> "com.liferay.petra.lang", version: "1.0.0"
>>
>>                 testCompile group: "com.liferay", name:
>> "com.liferay.registry.api", version: "1.1.0"
>>
>>                 testCompile group: "com.liferay", name: "org.jabsorb",
>> version: "1.3.1.LIFERAY-PATCHED-1"
>>
>>                 testCompile group: "com.redhat.qe", name: "json-java",
>> version: "20110202"
>>
>>                 testCompile group: "org.jodd", name: "jodd-bean",
>> version: "3.6.4"
>>
>>                 testCompile group: "org.jodd", name: "jodd-json",
>> version: "3.6.4"
>>
>>                 testCompile group: "org.slf4j", name: "slf4j-api",
>> version: "1.7.2"
>>
>> }
>>
>>
>>
>> transpileJS {
>>
>>                 srcIncludes = "**/*.js"
>>
>> }
>>
>>
>>
>> *What comes out in the MANIFEST.MF in the compiled JAR is *
>>
>>
>>
>> Manifest-Version: 1.0
>>
>> Bnd-LastModified: 1533564551530
>>
>> Bundle-ManifestVersion: 2
>>
>> Bundle-Name: Liferay Portal Portlet Bridge Soy
>>
>> Bundle-SymbolicName: com.liferay.portal.portlet.bridge.soy
>>
>> Bundle-Version: 3.2.0
>>
>> Created-By: 1.8.0_171 (Oracle Corporation)
>>
>> Export-Package: com.liferay.portal.portlet.bridge.soy;version="2.2.0";
>>
>> uses:="com.liferay.portal.kernel.portlet.bridges.mvc,com.liferay.port
>>
>> al.kernel.template,javax.portlet"
>>
>> Import-Package: com.liferay.osgi.util.service;version="[2.1,3)",com.li
>>
>> feray.petra.function;version="[1.0,2)",com.liferay.portal.kernel.io.u
>>
>> nsync;version="[6.2,7)",com.liferay.portal.kernel.json;version="[7.0,
>>
>> 8)",com.liferay.portal.kernel.log;version="[7.0,8)",com.liferay.porta
>>
>> l.kernel.model;version="[1.0,2)",com.liferay.portal.kernel.portlet;ve
>>
>> rsion="[7.5,8)",com.liferay.portal.kernel.portlet.bridges.mvc;version
>>
>> ="[1.4,2)",com.liferay.portal.kernel.service;version="[1.5,2)",com.li
>>
>> feray.portal.kernel.servlet;version="[7.2,8)",com.liferay.portal.kern
>>
>> el.servlet.taglib.aui;version="[7.0,8)",com.liferay.portal.kernel.tem
>>
>> plate;version="[7.1,8)",com.liferay.portal.kernel.theme;version="[1.1
>>
>> ,2)",com.liferay.portal.kernel.util;version="[7.10,8)",com.liferay.po
>>
>> rtal.template.soy.utils;version="[2.0,3)",com.liferay.portlet;version
>>
>> ="[1.0,2)",javax.portlet;version="[2.0,3)",javax.servlet;version="[3.
>>
>> 0,4)",javax.servlet.http;version="[3.0,4)",org.osgi.framework;version
>>
>> ="[1.8,2)"
>>
>> Javac-Debug: on
>>
>> Javac-Deprecation: off
>>
>> Javac-Encoding: Cp1252
>>
>> Private-Package: com.liferay.portal.portlet.bridge.soy.internal,com.li
>>
>> feray.portal.portlet.bridge.soy.internal.dependencies
>>
>> Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
>>
>> Tool: Bnd-3.2.0.201605172007
>>
>> Web-ContextPath: /portal-portlet-bridge-soy
>>
>>
>>
>> The irregularity is the version from the *com.liferay.kernel* package:
>>
>>
>>
>> com.liferay.portal.kernel.portlet;version="[7.5,8)"
>>
>>
>>
>> When it should be [2.0.0,3) when I do in Gogo Shell diag 996 I get this
>> error :
>>
>>
>>
>> *g! diag 1000*
>>
>> *com.liferay.portal.portlet.bridge.soy [1000]*
>>
>> *  Unresolved requirement: Import-Package:
>> com.liferay.portal.kernel.portlet; version="[7.5.0,8.0.0)"*
>>
>>
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> [email protected]
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>



-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to