[
https://issues.apache.org/jira/browse/KARAF-7366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17486878#comment-17486878
]
Anbarasan edited comment on KARAF-7366 at 2/4/22, 9:07 AM:
-----------------------------------------------------------
This error log is observed especially in java 11.0.13. Until 11.0.12 it was
working fine.
I believe OpenJDK removed the sun.rmi.registry package from JDK. From the karaf
end, you might need to add the package or handle the class differently.
Please find the following build task below.
{code:java}
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>install-kar</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>
<configuration>
<config>
<karaf.framework>equinox</karaf.framework>
</config>
<installedBundles>
<installedBundle>mvn:com.***.jettyservice/fragment</installedBundle>
</installedBundles>
<bootFeatures>
<feature>wrap</feature>
<feature>shell</feature>
<feature>war</feature>
<feature>feature</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>deployer</feature>
<feature>diagnostic</feature>
<feature>instance</feature>
<feature>log</feature>
<feature>package</feature>
<feature>service</feature>
<feature>system</feature>
</bootFeatures>
<startupFeatures>
<feature>eventadmin</feature>
<feature>scr</feature>
<feature>http</feature>
<feature>kubernetes-client</feature>
<feature>fabric8-karaf-core</feature>
<feature>fabric8-karaf-checks</feature>
<feature>fabric8-karaf-cm</feature>
<feature>3ppmodules</feature>
<feature>servicemodules</feature>
<feature>implementationmodules</feature>
</startupFeatures>
<blacklistedBundles>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-logback/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-api/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-log4j2/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
</blacklistedBundles>
<libraries>
</libraries>
<javase>11</javase>
<generateConsistencyReport>${project.build.directory}</generateConsistencyReport>
<consistencyReportProjectName>Apache Karaf
(full)</consistencyReportProjectName>
</configuration>
</plugin> {code}
was (Author: JIRAUSER284520):
{code:java}
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>install-kar</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
</execution>
</executions>
<configuration>
<config>
<karaf.framework>equinox</karaf.framework>
</config>
<installedBundles>
<installedBundle>mvn:com.***.jettyservice/fragment</installedBundle>
</installedBundles>
<bootFeatures>
<feature>wrap</feature>
<feature>shell</feature>
<feature>war</feature>
<feature>feature</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>deployer</feature>
<feature>diagnostic</feature>
<feature>instance</feature>
<feature>log</feature>
<feature>package</feature>
<feature>service</feature>
<feature>system</feature>
</bootFeatures>
<startupFeatures>
<feature>eventadmin</feature>
<feature>scr</feature>
<feature>http</feature>
<feature>kubernetes-client</feature>
<feature>fabric8-karaf-core</feature>
<feature>fabric8-karaf-checks</feature>
<feature>fabric8-karaf-cm</feature>
<feature>3ppmodules</feature>
<feature>servicemodules</feature>
<feature>implementationmodules</feature>
</startupFeatures>
<blacklistedBundles>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-logback/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-api/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
<blacklistedBundle>mvn:org.ops4j.pax.logging/pax-logging-log4j2/${org.ops4j.pax.logging.version.excluded}</blacklistedBundle>
</blacklistedBundles>
<libraries>
</libraries>
<javase>11</javase>
<generateConsistencyReport>${project.build.directory}</generateConsistencyReport>
<consistencyReportProjectName>Apache Karaf
(full)</consistencyReportProjectName>
</configuration>
</plugin> {code}
> Can't init JMXConnectorServer
> -----------------------------
>
> Key: KARAF-7366
> URL: https://issues.apache.org/jira/browse/KARAF-7366
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.3.6
> Reporter: Anbarasan
> Assignee: Jean-Baptiste Onofré
> Priority: Critical
>
> o.a.k.management.internal.Activator.doStart 195 - Can't init
> JMXConnectorServer: sun/rmi/registry/RegistryImpl
>
> The above error log comes at the start of the karaf container.
> karaf version - 4.3.5 and 4.3.6
> java version - openjdk 11.0.13 - (2021-10-19)
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)