Running thorntail application in Eclipse IDE cause THORN0009: Unable to determine version number from GAV

60 views
Skip to first unread message

deamn

unread,
Jun 18, 2020, 9:00:57 AM6/18/20
to Thorntail
Hello,
how to start in Eclipse IDE a thorntail application that includes resource-adapter (like artemis-rar.rar)?

My application run correctly with
mvn clean package && java -jar target/testapp-thorntail.jar

But when I start in eclipse with org.wildfly.swarm.Swarm as main class, I have this error:
java.lang.RuntimeException: java.lang.RuntimeException: THORN0009: Unable to determine version number from GAV: org.apache.activemq.examples.modules:artemis-rar:rar:*

My environnement:
  • Fedora 32
  • openjdk 11
  • Eclipse 2020-06
  • Thorntail 2.7.0
pom.xml
project-defaults.yml

Ladislav Thon

unread,
Jun 18, 2020, 9:05:45 AM6/18/20
to thor...@googlegroups.com

Running the Swarm class has many known issues and is never a good idea. Can you try the Runner? https://thorntail.io/posts/thorntail-runner/

LT

--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/dc3d7dcc-7dd6-4592-a9e0-22ed77970e8bo%40googlegroups.com.

deamn

unread,
Jun 18, 2020, 10:14:01 AM6/18/20
to Thorntail
Thanks for the anser. It's the same issue.

BTW commons-logging seems to be mandatory with Runner.

There the stacktrace with Runner:
[0m2020-06-18 15:49:42,573 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Thorntail 2.7.0.Final (WildFly Core 10.0.3.Final) started in 1525ms - Started 327 of 513 services (329 services are lazy, passive or on-demand)
[31m2020-06-18 15:49:42,584 ERROR [stderr] (main) java.lang.RuntimeException: java.lang.RuntimeException: THORN0009: Unable to determine version number from GAV: org.apache.activemq.examples.modules:artemis-rar:rar:*
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at org.wildfly.swarm.spi:api@2.7.0.Final//org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at org.wildfly.swarm.container:runtime@2.7.0.Final//org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:113)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at org.wildfly.swarm.container:api@2.7.0.Final//org.wildfly.swarm.Swarm.start(Swarm.java:401)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at org.wildfly.swarm.container:api@2.7.0.Final//org.wildfly.swarm.Swarm.main(Swarm.java:745)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[31m2020-06-18 15:49:42,585 ERROR [stderr] (main)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:57)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at org.wildfly.swarm.bootstrap.Main.run(Main.java:134)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at org.wildfly.swarm.bootstrap.Main.main(Main.java:87)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at org.wildfly.swarm.runner.Runner.callWithClassloader(Runner.java:109)
[31m2020-06-18 15:49:42,586 ERROR [stderr] (main)     at org.wildfly.swarm.runner.Runner.run(Runner.java:94)
[31m2020-06-18 15:49:42,587 ERROR [stderr] (main)     at org.wildfly.swarm.runner.Runner.main(Runner.java:90)



Le jeudi 18 juin 2020 15:05:45 UTC+2, Ladislav Thon a écrit :

Running the Swarm class has many known issues and is never a good idea. Can you try the Runner? https://thorntail.io/posts/thorntail-runner/

LT

On 18. 06. 20 14:55, deamn wrote:
Hello,
how to start in Eclipse IDE a thorntail application that includes resource-adapter (like artemis-rar.rar)?

My application run correctly with
mvn clean package && java -jar target/testapp-thorntail.jar

But when I start in eclipse with org.wildfly.swarm.Swarm as main class, I have this error:
java.lang.RuntimeException: java.lang.RuntimeException: THORN0009: Unable to determine version number from GAV: org.apache.activemq.examples.modules:artemis-rar:rar:*

My environnement:
  • Fedora 32
  • openjdk 11
  • Eclipse 2020-06
  • Thorntail 2.7.0
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Ladislav Thon

unread,
Jun 18, 2020, 10:57:14 AM6/18/20
to thor...@googlegroups.com

I can reproduce the problem. Looking if there's an easy fix.

LT

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/085d0255-8d02-4496-abf6-331c7fcd6d19o%40googlegroups.com.

Ladislav Thon

unread,
Jun 18, 2020, 11:38:14 AM6/18/20
to thor...@googlegroups.com

I can't see an easy fix. At least my IntelliJ IDEA doesn't put the RAR on the classpath when running the Runner, and hence Thorntail doesn't have a way how to figure out the version number.

LT

deamn

unread,
Jun 19, 2020, 3:10:49 AM6/19/20
to Thorntail
Ok, I will fill a bug report.

Thanks
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

deamn

unread,
Jun 19, 2020, 3:48:09 AM6/19/20
to Thorntail
I will fill a bug report thanks for the help
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Ladislav Thon

unread,
Jun 19, 2020, 6:03:12 AM6/19/20
to thor...@googlegroups.com

Thanks, I've seen https://issues.redhat.com/browse/THORN-2578 and submitted a PR.

I've also filed https://issues.redhat.com/browse/THORN-2577 for the Commons Logging issue and submitted a PR as well.

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/ccfc0118-031d-480d-855b-3eb87c3cb7e5o%40googlegroups.com.

Daniel Augusto

unread,
Jun 19, 2020, 9:37:23 AM6/19/20
to Thorntail
Hi Ladislav,

What kind of issues in using Swarm class? Are there any issues or descriptions in doc about the problems for using Swarm class? This class is deprecated?


Em quinta-feira, 18 de junho de 2020 10:05:45 UTC-3, Ladislav Thon escreveu:

Running the Swarm class has many known issues and is never a good idea. Can you try the Runner? https://thorntail.io/posts/thorntail-runner/

LT

On 18. 06. 20 14:55, deamn wrote:
Hello,
how to start in Eclipse IDE a thorntail application that includes resource-adapter (like artemis-rar.rar)?

My application run correctly with
mvn clean package && java -jar target/testapp-thorntail.jar

But when I start in eclipse with org.wildfly.swarm.Swarm as main class, I have this error:
java.lang.RuntimeException: java.lang.RuntimeException: THORN0009: Unable to determine version number from GAV: org.apache.activemq.examples.modules:artemis-rar:rar:*

My environnement:
  • Fedora 32
  • openjdk 11
  • Eclipse 2020-06
  • Thorntail 2.7.0
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thor...@googlegroups.com.

Ladislav Thon

unread,
Jun 19, 2020, 9:42:08 AM6/19/20
to thor...@googlegroups.com

Custom main methods have been deprecated a long time ago. And running the Swarm class from the IDE means basically trying to run Thorntail from classpath, which has always been fragile.

LT

To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/a85dba5a-3937-4b78-b495-43fa842e6bffo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages