Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shinsnakky opened this issue Nov 6, 2023 · 0 comments

Comments

@shinsnakky
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant