<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay Workspace with java 11:  osgi.ee=UNKNOWN</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113065361" />
  <subtitle>Liferay Workspace with java 11:  osgi.ee=UNKNOWN</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113065361</id>
  <updated>2026-04-06T09:05:35Z</updated>
  <dc:date>2026-04-06T09:05:35Z</dc:date>
  <entry>
    <title>RE: Liferay Workspace with java 11:  osgi.ee=UNKNOWN</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113104994" />
    <author>
      <name>Philippe Thibault</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113104994</id>
    <updated>2019-04-09T19:03:14Z</updated>
    <published>2019-04-09T19:03:14Z</published>
    <summary type="html">Thanks for the workaround with it I can build and deploy with jdk11! I will wait for a new workspace release with updated bnd.</summary>
    <dc:creator>Philippe Thibault</dc:creator>
    <dc:date>2019-04-09T19:03:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Workspace with java 11:  osgi.ee=UNKNOWN</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113097392" />
    <author>
      <name>Greg Amerson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113097392</id>
    <updated>2019-04-09T16:05:48Z</updated>
    <published>2019-04-09T16:05:48Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Looks like there is a workaround if you are willing to remove some of the protections created by bnd when building the bundle.&lt;br&gt;&lt;br&gt;In your bnd.bnd you can tell bnd to not emit a requirement for your execution environment with &lt;pre&gt;&lt;code&gt;-noee: true&lt;/code&gt;&lt;/pre&gt;Then there will not be any osgi.ee filter placed in the require-capability header.&amp;nbsp; In the future, we will update our gradle plugins to include a newer version of bndlib (currently we are using 3.5)&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Greg Amerson</dc:creator>
    <dc:date>2019-04-09T16:05:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Workspace with java 11:  osgi.ee=UNKNOWN</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113097030" />
    <author>
      <name>Greg Amerson</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113097030</id>
    <updated>2019-04-09T15:57:42Z</updated>
    <published>2019-04-09T15:57:42Z</published>
    <summary type="html">Thanks for your report.  I&amp;#39;ve replicated your issue and created a ticket here:  &lt;a href="https://issues.liferay.com/browse/LPS-93643"&gt;https://issues.liferay.com/browse/LPS-93643&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;My first guess is that its because our bndlib version is too old in our gradle plugin, but I&amp;#39;m not for sure.  It will require more investigation.</summary>
    <dc:creator>Greg Amerson</dc:creator>
    <dc:date>2019-04-09T15:57:42Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Workspace with java 11:  osgi.ee=UNKNOWN</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113065360" />
    <author>
      <name>Philippe Thibault</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113065360</id>
    <updated>2019-04-08T14:23:06Z</updated>
    <published>2019-04-08T14:23:06Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I am trying to develop modules in Liferay Workspace for latest liferay portal liferay-ce-portal-7.1.2-ga3 using java 11.0.2 . Well I had to try with java 12 because there was ssl errors when fetching gradle dependencies with java 11 ... Anyway my problem here is that when I build my module the jar MANIFEST.MF gets created with an unknown java version in osgi.ee in Require-Capability:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;osgi.ee;filter:="(osgi.ee=UNKNOWN)"&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Deploying in liferay-ce-portal-7.1.2-ga3 I get this error : &lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;org.osgi.framework.BundleException: Could not resolve module: blade_module [1011]_  
Unresolved requirement: Require-Capability: osgi.ee; filter:="(osgi.ee=UNKNOWN)"&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Here is the complete MANIFEST.MF file :&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: blade_module
Bundle-SymbolicName: blade_module
Bundle-Version: 1.0.0
Created-By: 11.0.2 (Oracle Corporation)
Export-Package: blade_module.constants;version="1.0.0"
Import-Package: com.liferay.portal.kernel.portlet.bridges.mvc;version=
 "[1.6,2)",javax.portlet,javax.servlet;version="[3.0,4)",javax.servlet
 .http;version="[3.0,4)"
Javac-Debug: on
Javac-Deprecation: off
Javac-Encoding: UTF-8
Private-Package: blade_module.portlet,content
Provide-Capability: osgi.service;objectClass:List&amp;lt;string&amp;gt;="javax.portl
 et.Portlet",liferay.resource.bundle;bundle.symbolic.name=blade_module
 ;resource.bundle.base.name="content.Language"
Require-Capability: osgi.extender;filter:="(&amp;amp;amp;(osgi.extender=jsp.taglib
 )(uri=http://java.sun.com/portlet_2_0))",osgi.extender;filter:="(&amp;amp;amp;(os
 gi.extender=jsp.taglib)(uri=http://liferay.com/tld/aui))",osgi.extend
 er;filter:="(&amp;amp;amp;(osgi.extender=jsp.taglib)(uri=http://liferay.com/tld/p
 ortlet))",osgi.extender;filter:="(&amp;amp;amp;(osgi.extender=jsp.taglib)(uri=htt
 p://liferay.com/tld/theme))",osgi.extender;filter:="(&amp;amp;amp;(osgi.extender=
 jsp.taglib)(uri=http://liferay.com/tld/ui))",osgi.extender;filter:="(
 &amp;amp;amp;(osgi.extender=osgi.component)(version&amp;amp;gt;=1.3.0)(!(version&amp;amp;gt;=2.0.0)))",
 osgi.contract;osgi.contract=JavaPortlet;filter:="(&amp;amp;amp;(osgi.contract=Jav
 aPortlet)(version=3.0.0))",osgi.ee;filter:="(osgi.ee=UNKNOWN)"
Service-Component: OSGI-INF/blade_module.portlet.Blade_modulePortlet.x
 ml
Tool: Bnd-3.5.0.201709291849&amp;lt;/string&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;thanks for your help!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Philippe Thibault</dc:creator>
    <dc:date>2019-04-08T14:23:06Z</dc:date>
  </entry>
</feed>
