eclipse-ee4j / eclipse-ee4j/jakartaee-examples

mainClass settings in pom.xml of child modules in tutorial/jms module do not match with correct main class name

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
164
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I would like to suggest correcting the values of mainClass in pom.xml files in tutorial/jms module which have this element.

java.lang.ClassNotFoundException occured when I executed jar files generated after building simple module in tutorial/jms module following the tutorial. (I used appclient command of GlassFish)

This was resolved by modifying the value of mainClass element. For example,
jakartaee-examples/tutorial/jms/simple/asynchconsumer/pom.xml contains the following:
jakarta.examples.tutorial.asynchconsumer.AsynchConsumer

The correct class name would be jakarta.tutorial.asynchconsumer.AsynchConsumer.

Other child modules than simple in tutorial/jms, too, seem to have incorrect mainClass value which does not match with the name of corresponding main class. An extra "examples" part as a fully-qualified class name for mainClass element if any.

Thank you,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.