Not able to download jgroups 4.2.4 version

59 views
Skip to first unread message

tarun

unread,
Jan 19, 2021, 8:19:51 AM1/19/21
to jgroups-dev
Hi Bela,

i add maven dependency of jgroups 4.2.4 version to my maven project its is downloaded from central repo to my local .m2.The same works for other jgroups version..I can see the folder with sources and jar.

But when i run 

mvn pax:clean eclipse:clean pax:eclipse  -DdownloadJavadocs=true -DdownloadSources=true

and then mvn pax:provision -Dexecutor=noop

The  jgroups 4.2.4 jar is not linked with eclipse. Same is the cases for 4.2.5 and 4.2.6 version. But When i do the same with version 4.2.0 or 4.2.10 ,i see the jar is linked with eclipse.


Here is what i get for 4.2.10 in logs 

-> mvn:org.jgroups/jgroups/4.2.10.Final : connecting...
-> mvn:org.jgroups/jgroups/4.2.10.Final : 2391736 bytes @ [ 38576kBps ]

I am just changed version in pom

<dependency>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
<version>4.2.4.Final</version>
</dependency>

<dependency>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
<version>4.2.10.Final</version>
</dependency> 

Is there anything special that i need to do for getting 4.2.4 work for mvn pax:clean eclipse:clean pax:eclipse  -DdownloadJavadocs=true -DdownloadSources=true

and then mvn pax:provision -Dexecutor=noop ?

Thanks & Regards
Tarun

Bela Ban

unread,
Jan 19, 2021, 8:56:28 AM1/19/21
to jgrou...@googlegroups.com


On 19.01.21 2:19 pm, tarun wrote:
> Hi Bela,
>
> i add maven dependency of jgroups 4.2.4 version to my maven project
> its is downloaded from central repo to my local .m2.The same works for
> other jgroups version..I can see the folder with sources and jar.
>
> But when i run
>
> mvn pax:clean eclipse:clean pax:eclipse -DdownloadJavadocs=true
> -DdownloadSources=true
>
> and then mvn pax:provision -Dexecutor=noop
>
> The jgroups 4.2.4 jar is not linked with eclipse. Same is the cases
> for 4.2.5 and 4.2.6 version. But When i do the same with version 4.2.0
> or 4.2.10 ,i see the jar is linked with eclipse.

What do you by 'linked'? I don't know what pax is...

> Here is what i get for 4.2.10 in logs
>
> -> mvn:org.jgroups/jgroups/4.2.10.Final : connecting...
> -> mvn:org.jgroups/jgroups/4.2.10.Final : 2391736 bytes @ [ 38576kBps ]
>
> I am just changed version in pom
>
> <dependency>
> <groupId>org.jgroups</groupId>
> <artifactId>jgroups</artifactId>
> <version>4.2.4.Final</version>
> </dependency>
>
> <dependency>
> <groupId>org.jgroups</groupId>
> <artifactId>jgroups</artifactId>
> <version>4.2.10.Final</version>
> </dependency>
>
> Is there anything special that i need to do for getting 4.2.4 work for
> mvn pax:clean eclipse:clean pax:eclipse -DdownloadJavadocs=true
> -DdownloadSources=true
>
> and then mvn pax:provision -Dexecutor=noop ?
>
> Thanks & Regards
> Tarun
>
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-dev/495d471d-09ea-4ad9-94b7-5421e04fb862n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/495d471d-09ea-4ad9-94b7-5421e04fb862n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Bela Ban, JGroups lead (http://www.jgroups.org)

tarun

unread,
Jan 21, 2021, 2:17:31 AM1/21/21
to jgroups-dev
Hi Bela,

In our project we were are using jgroups 3.4.3 and jgroups 4.0.10 version. In the project we use OSGI and dependency of jgroup is part of osgi bundle. Now we plan to upgrade to jgroups 4.2.4 version.

If i see the jgroups version 3.4.3 and 4.0.10 pom.xml ,they are packaged as bundle. Also the bundle requires apache felix plugin which are included. So both versions are added to osgi bundle. But jgroups 4.2.4 version is packaged as jar and not as bundle so we cannot bundle it as dependency in osgi. I Have attached snapshot of comparisons of 4.2.4 with 3.4.3 and 4.2.4 with 4.0.10.
            
Now if i have to use jgroups 4.2.4 and bundle it as OSGI ,it does not work as the packaging is jar. Is it possible to change the 4.2.4 version to bundle as packaging with the maven felix plugin added so that it works with osgi or any other changes you suggest ?

Thanks & Regards
Tarun
jgroup 4.2.4 vs 4.0.10 pom comparison 1.png
jgroup 4.2.4 vs 4.0.10 pom comparison 2.png
jgroup 4.2.4 vs 3.4.3 pom comparison 2.png
jgroup 4.2.4 vs 3.4.3 pom comparison 1.png

Bela Ban

unread,
Jan 21, 2021, 5:16:15 AM1/21/21
to jgrou...@googlegroups.com
I'm trying to dump osgi (5.x has removed it altogether). In 4.x,
'bundle' is the default starting at 4.2.7.Final.

If you need a bundle, you can always check out the sources and (using
your own POM) generate the JARs yourself.
Cheers,
> <https://groups.google.com/d/msgid/jgroups-dev/495d471d-09ea-4ad9-94b7-5421e04fb862n%40googlegroups.com?utm_medium=email&utm_source=footer
> <http://www.jgroups.org>)
>
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com?utm_medium=email&utm_source=footer>.

tarun

unread,
Jan 22, 2021, 4:11:14 AM1/22/21
to jgroups-dev
Hi Bela,
Thanks for the clarification.I took the source code of 4.2.4 and made changes to it.Changed project packaging to bundle in pom.xml and added apache felix plugin.

As per the Building JGroups from source in link http://www.jgroups.org/manual4/index.html#BuildingJGroups,the steps are
1. run ant
2. ant jar to create jar.

Its working fine but it creats a ant jar.I want to create a maven jar with version like Jgroups4.2.4-E001 and then i can upload that jar to our private repo with following artifacts

<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
<version>4.2.4.Final-E001</version

I tried to do the maven build,it is success but jar does not work,there is error in build.

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found
ERROR StatusLogger Could not register mbeans
 java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:585)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
        at org.apache.logging.log4j.core.jmx.Server.register(Server.java:393)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:168)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:141)
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:629)
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:691)
        at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
        at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
        at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
        at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:618)
        at org.apache.logging.log4j.LogManager.getFormatterLogger(LogManager.java:503)
        at org.jgroups.logging.Log4J2LogImpl.<init>(Log4J2LogImpl.java:26)
        at org.jgroups.logging.LogFactory.getLog(LogFactory.java:98)
        at org.jgroups.auth.AuthToken.<init>(AuthToken.java:16)
        at org.jgroups.auth.SimpleToken.<init>(SimpleToken.java:34)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.jgroups.conf.ClassConfigurator.lambda$init$0(ClassConfigurator.java:227)
        at org.jgroups.conf.ClassConfigurator.init(ClassConfigurator.java:236)
        at org.jgroups.conf.ClassConfigurator.<clinit>(ClassConfigurator.java:53)
        at org.jgroups.protocols.ASYM_ENCRYPT.<clinit>(ASYM_ENCRYPT.java:46)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.jgroups.util.XMLSchemaGenerator.getClasses(XMLSchemaGenerator.java:131)
        at org.jgroups.util.XMLSchemaGenerator.generateProtocolSchema(XMLSchemaGenerator.java:110)
        at org.jgroups.util.XMLSchemaGenerator.main(XMLSchemaGenerator.java:84)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
        at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
        at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
        at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:313)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)


Can you please highlight steps to create a maven jar for same.Also you mentioned create your own pom.I have not made a seperate pom,i have made change in same source code pom.Can you give idea about it ?

Thanks & Regards
Tarun

Bela Ban

unread,
Jan 22, 2021, 4:55:22 AM1/22/21
to jgrou...@googlegroups.com

tarun

unread,
Jan 22, 2021, 5:09:49 AM1/22/21
to Bela Ban, jgrou...@googlegroups.com
Ran - mvn clean install -DskipTests -Dlog4j2.disable.jmx=true


Jar is created.
 ls
antrun/   generated-sources/       jgroups-4.2.4.Final-E001.jar          maven-archiver/  schema/
classes/  generated-test-sources/  jgroups-4.2.4.Final-E001-sources.jar  maven-status/    test-classes/




But running with : java -cp jgroups-4.2.4.Final-E001.jar org.jgroups.demos.Draw

Following error is coming:

java.io.IOException: JGRP000004: parsing failure; the XML document is not correct: failed parsing version '${version}': java.lang.IllegalStateException: No match found
        at org.jgroups.conf.XmlConfigurator.parse(XmlConfigurator.java:142)
        at org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:45)
        at org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:41)
        at org.jgroups.conf.ConfiguratorFactory.getXmlConfigurator(ConfiguratorFactory.java:174)
        at org.jgroups.conf.ConfiguratorFactory.getStackConfigurator(ConfiguratorFactory.java:63)
        at org.jgroups.JChannel.<init>(JChannel.java:108)
        at org.jgroups.demos.Draw.<init>(Draw.java:57)
        at org.jgroups.demos.Draw.main(Draw.java:152)

To unsubscribe from this group and stop receiving emails from it, send an email to jgroups-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org.


--
Thanks & Regards
Tarun

Bela Ban

unread,
Jan 22, 2021, 5:17:20 AM1/22/21
to jgrou...@googlegroups.com
This is probably because you're creating a bundle, not a JAR. The
JGROUPS_VERSION.properties file needs to be copied into the JAR, and
this is done (in mvn) via filtering, line 151 in pom.xml. You need to do
the same for 'bundle'.
Cheers,
> <jgrou...@googlegroups.com <mailto:jgrou...@googlegroups.com>>
> >     > > <mailto:jgroups-dev...@googlegroups.com
> >     > <mailto:jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev...@googlegroups.com>>.
> >     > To view this discussion on the web visit
> >     >
> >
> https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com>>
> >
> >     >
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com?utm_medium=email&utm_source=footer>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/073fd542-769c-471f-96fe-2b52cd8d4d14n%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
> >
> >
> >     --
> >     Bela Ban, JGroups lead (http://www.jgroups.org
> <http://www.jgroups.org>
> >     <http://www.jgroups.org <http://www.jgroups.org>>)
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "jgroups-dev" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send
> > an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> > <mailto:jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>>.
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> Bela Ban, JGroups lead (http://www.jgroups.org
> <http://www.jgroups.org>)
>
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org
> <https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org>.
>
>
>
> --
> Thanks & Regards
> Tarun
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

tarun

unread,
Jan 22, 2021, 5:50:03 AM1/22/21
to Bela Ban, jgrou...@googlegroups.com
Yes i have changed project packaging to "bundle".Line 151 in pom.xml ,i assume you are talking about JGROUPS_VERSION.properties in conf folder ?

I have kept the version name same as the version in pom.xml.Attached snapshot of it.If that is the case,then it is already part of the built jar.Attached snapshot of pom ,jar and version properties in built and in source code.

But still i am getting error for the version.

downloadedSrc/JGroups-JGroups-4.2.4.Final/target
$ java -cp jgroups-4.2.4.Final-E001.jar org.jgroups.demos.Draw

java.io.IOException: JGRP000004: parsing failure; the XML document is not correct: failed parsing version '${version}': java.lang.IllegalStateException: No match found
        at org.jgroups.conf.XmlConfigurator.parse(XmlConfigurator.java:142)
        at org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:45)
        at org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:41)
        at org.jgroups.conf.ConfiguratorFactory.getXmlConfigurator(ConfiguratorFactory.java:174)
        at org.jgroups.conf.ConfiguratorFactory.getStackConfigurator(ConfiguratorFactory.java:63)
        at org.jgroups.JChannel.<init>(JChannel.java:108)
        at org.jgroups.demos.Draw.<init>(Draw.java:57)
        at org.jgroups.demos.Draw.main(Draw.java:152)
To unsubscribe from this group and stop receiving emails from it, send an email to jgroups-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jgroups-dev/02968ec1-fbdf-599c-971d-748637b8f9dc%40mailbox.org.
1 - pom.png
2 - pom properties.png
4- properites in e001 jar.png
3 - jgroup properties.png

Bela Ban

unread,
Jan 22, 2021, 5:52:20 AM1/22/21
to tarun, jgrou...@googlegroups.com


On 22.01.21 11:49 am, tarun wrote:
> Yes i have changed project packaging to "bundle".Line 151 in
> pom.xml ,i assume you are talking about JGROUPS_VERSION.properties in
> conf folder ?

No, the result of filtering JGROUPS_VERSION.properties in target/classes

>
> I have kept the version name same as the version in pom.xml.Attached
> snapshot of it.If that is the case,then it is already part of the
> built jar.Attached snapshot of pom ,jar and version properties in
> built and in source code.
>
> But still i am getting error for the version.
>
> downloadedSrc/JGroups-JGroups-4.2.4.Final/target
> $ java -cp jgroups-4.2.4.Final-E001.jar org.jgroups.demos.Draw
> java.io.IOException: JGRP000004: parsing failure; the XML document is
> not correct: failed parsing version '${version}':
> java.lang.IllegalStateException: No match found
>         at
> org.jgroups.conf.XmlConfigurator.parse(XmlConfigurator.java:142)
>         at
> org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:45)
>         at
> org.jgroups.conf.XmlConfigurator.getInstance(XmlConfigurator.java:41)
>         at
> org.jgroups.conf.ConfiguratorFactory.getXmlConfigurator(ConfiguratorFactory.java:174)
>         at
> org.jgroups.conf.ConfiguratorFactory.getStackConfigurator(ConfiguratorFactory.java:63)
>         at org.jgroups.JChannel.<init>(JChannel.java:108)
>         at org.jgroups.demos.Draw.<init>(Draw.java:57)
>         at org.jgroups.demos.Draw.main(Draw.java:152)
>
>
> On Fri, Jan 22, 2021 at 3:47 PM 'Bela Ban' via jgroups-dev
> <jgrou...@googlegroups.com <mailto:jgrou...@googlegroups.com>>
> <mailto:jgrou...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>
> >     > <mailto:jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>>.
> >     <http://www.jgroups.org <http://www.jgroups.org>>)
> >
> >     --
> >     You received this message because you are subscribed to the
> Google
> >     Groups "jgroups-dev" group.
> >     To unsubscribe from this group and stop receiving emails
> from it,
> >     send an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>.
> >     To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org
> <https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org
> <https://groups.google.com/d/msgid/jgroups-dev/b7d0b37d-0ab2-4cb4-8f49-87d0ef0985cd%40mailbox.org>>.
> >
> >
> >
> > --
> > Thanks & Regards
> > Tarun
> > --
> > You received this message because you are subscribed to the Google
> > Groups "jgroups-dev" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send
> > an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> > <mailto:jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com>
>
> >
> <https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
> --
> Bela Ban, JGroups lead (http://www.jgroups.org
> <http://www.jgroups.org>)
>
> --
> You received this message because you are subscribed to the Google
> Groups "jgroups-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jgroups-dev/02968ec1-fbdf-599c-971d-748637b8f9dc%40mailbox.org
> <https://groups.google.com/d/msgid/jgroups-dev/02968ec1-fbdf-599c-971d-748637b8f9dc%40mailbox.org>.
>
>
>
> --
> Thanks & Regards
> Tarun

--

tarun

unread,
Jan 22, 2021, 6:24:08 AM1/22/21
to Bela Ban, jgrou...@googlegroups.com
Ok,
So in source code ,pom.xml in project i have changed to <version>4.2.4.Final-E001</version>
In JGROUPS_VERSION.properties do i need to change the jgroups.version=4.2.4.Final-E001 or keep it as is jgroups.version=4.2.4.Final ?

In pom.xml for bundle line 151 has 

<resource>
                <directory>conf</directory>
                <includes>
                    <include>*.xml</include>
                    <include>jg-messages*.properties</include>
                    <include>JGROUPS_VERSION.properties</include>
                </includes>
                <filtering>true</filtering>
                <excludes>
                    <exclude>*-service.xml</exclude>
                    <exclude>log4*.xml</exclude>
                </excludes>
            </resource>

Exactly what i need to i am not getting.

tarun

unread,
Jan 22, 2021, 9:16:34 AM1/22/21
to Bela Ban, jgrou...@googlegroups.com
Hi Bela,

I have added  maven-assembly-plugin ,wth it its working.

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>

With the fat jar ,its working with jgroups-4.2.4.Final-E001-jar-with-dependencies.jar.

java -cp jgroups-4.2.4.Final-E001-jar-with-dependencies.jar org.jgroups.demos.Draw

Thank you for all your help.
Cheers


tarun

unread,
Jan 23, 2021, 10:56:24 PM1/23/21
to Bela Ban, jgrou...@googlegroups.com
Hi Bela,

I tried with a fat jar,but it does not reflect in pom.After going through jira https://issues.redhat.com/browse/JGRP-2467
i made the change in udp.xml with version="4.2.4.Final".WIth this i made build and it worked

java -cp jgroups-4.2.4.Final-E001.jar org.jgroups.demos.Draw

-------------------------------------------------------------------
GMS: address=IN-00210981-23353, cluster=draw, physical address=192.168.43.48:58449
-------------------------------------------------------------------
Jan 24, 2021 8:51:16 AM org.jgroups.protocols.pbcast.ClientGmsImpl joinInternal
INFO: IN-00210981-23353: no members discovered after 2005 ms: creating cluster as coordinator
** View=[IN-00210981-23353|0] (1) [IN-00210981-23353]

Is this the right approach ? Or in pom.xml i need to change something ?

I have attached pom.xml for reference.Please let me know if any changes need to be done there.

Thanks & Regards
Tarun



pom.xml

Bela Ban

unread,
Jan 25, 2021, 3:50:07 AM1/25/21
to tarun, jgrou...@googlegroups.com
Yes, this is ok as a workaround, but note that in more recent versions,
"${version}" has been removed from the POM again, because it caused too
many problems

On 24.01.21 4:56 am, tarun wrote:
> Hi Bela,
>
> I tried with a fat jar,but it does not reflect in pom.After going
> through jira https://issues.redhat.com/browse/JGRP-2467
> <https://issues.redhat.com/browse/JGRP-2467>
> i made the change in udp.xml with version="4.2.4.Final".WIth this i
> made build and it worked
>
> java -cp jgroups-4.2.4.Final-E001.jar org.jgroups.demos.Draw
>
> -------------------------------------------------------------------
> GMS: address=IN-00210981-23353, cluster=draw, physical
> address=192.168.43.48:58449 <http://192.168.43.48:58449>
>  <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>
> >     <mailto:jgroups-dev%252Buns...@googlegroups.com
> <mailto:jgroups-dev%25252Bun...@googlegroups.com>>>
> >     <mailto:jgroups-dev%252Buns...@googlegroups.com
> <mailto:jgroups-dev%25252Bun...@googlegroups.com>>>>.
> >     >     > To view this discussion on the web visit
> >     >     >
> >     >
> >
> https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com>>
> >     >
> >   
>   <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com>>>
> >     >
> >     >     >
> >     >
> >   
>   <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer>>
> >     >
> >   
>   <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer>
> >   
>  <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/jgroups-dev/d390be4c-1998-49da-9911-6409adca8145n%40googlegroups.com?utm_medium=email&utm_source=footer>>>>.
> >     >
> >     >     --
> >     >     Bela Ban, JGroups lead (http://www.jgroups.org
> <http://www.jgroups.org>
> >     <http://www.jgroups.org <http://www.jgroups.org>>
> >     >     <http://www.jgroups.org
> <http://www.jgroups.org> <http://www.jgroups.org
> <http://www.jgroups.org>>>)
> >     >
> >     >     --
> >     >     You received this message because you are
> subscribed to the
> >     Google
> >     >     Groups "jgroups-dev" group.
> >     >     To unsubscribe from this group and stop
> receiving emails
> >     from it,
> >     >     send an email to
> jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>
> >     >   
>  <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>
> >     <mailto:jgroups-dev%252Buns...@googlegroups.com
> <mailto:jgroups-dev%25252Bun...@googlegroups.com>>>.
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>
> >     > <mailto:jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>>.
> >     > To view this discussion on the web visit
> >     >
> >
> https://groups.google.com/d/msgid/jgroups-dev/CAORiDT_khRH46Kkte8B%2B%3DAwNwvnASMA4Vjc8eedDKnFDkYPxSg%40mail.gmail.com
> >     <http://www.jgroups.org <http://www.jgroups.org>>)
> >
> >     --
> >     You received this message because you are subscribed
> to the Google
> >     Groups "jgroups-dev" group.
> >     To unsubscribe from this group and stop receiving
> emails from it,
> >     send an email to
> jgroups-dev...@googlegroups.com
> <mailto:jgroups-dev%2Bunsu...@googlegroups.com>
> >     <mailto:jgroups-dev%2Bunsu...@googlegroups.com
> <mailto:jgroups-dev%252Buns...@googlegroups.com>>.
> >     To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/jgroups-dev/02968ec1-fbdf-599c-971d-748637b8f9dc%40mailbox.org
> <https://groups.google.com/d/msgid/jgroups-dev/02968ec1-fbdf-599c-971d-748637b8f9dc%40mailbox.org>
> Bela Ban, JGroups lead (http://www.jgroups.org
> <http://www.jgroups.org>)
>
>
>
> --
> Thanks & Regards
> Tarun
>
>
>
> --
> Thanks & Regards
> Tarun
>
>
>
> --
> Thanks & Regards
> Tarun

Reply all
Reply to author
Forward
0 new messages