[ 
https://issues.apache.org/jira/browse/LANG-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030417#comment-18030417
 ] 

Subrhamanya Hebbar edited comment on LANG-1787 at 10/16/25 5:00 PM:
--------------------------------------------------------------------

[~ggregory] I am also facing the same issue. I am using felix gogo 0.10.0 
version because of our internal things and after removing java.package names 
from import package, I no longer see the OSGI error. I ran on Java 8 and 17 
both and in both places I can see the OSGI issues.

 

I request the team to remove these java.* names from import package of MANIFEST 
file.


was (Author: subbu):
[~ggregory] I am also facing the same issue. I am using felix gogo 0.10.0 
version because of our internal things and after removing java.package names 
from import package, I no longer see the OSGI error. I ran on Java 8 and 17 
both and in both places I can see the OSGI issues.

> Cannot run Lang3 3.18.0 + in osgi environment
> ---------------------------------------------
>
>                 Key: LANG-1787
>                 URL: https://issues.apache.org/jira/browse/LANG-1787
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.18.0
>            Reporter: Tharindu Dharmarathna
>            Priority: Major
>
> lang3 manifest contains java related import packages.
> Due to that equinox related osgi environment not able to use this jar 
> directly as bundle.
> Import-Package: java.beans,java.io,java.lang,java.lang.annotation,java.l
>  ang.invoke,java.lang.reflect,java.math,java.net,java.nio,java.nio.chars
>  et,java.nio.file,java.security,java.text,java.time,java.time.temporal,j
>  ava.util,java.util.concurrent,java.util.concurrent.atomic,java.util.con
>  current.locks,java.util.function,java.util.regex,java.util.stream
> Include-Resource: META-INF/LICENSE.txt=LICENSE.txt,META-INF/NOTICE.txt=N
>  OTICE.txt
> Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
> Tool: Bnd-7.1.0.202411251545
> Multi-Release: true



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to