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

Embedded glassfish JAR doesn't contain JARS/RARS to support JMS #24842

Open
Blavo opened this issue Mar 6, 2024 · 1 comment
Open

Embedded glassfish JAR doesn't contain JARS/RARS to support JMS #24842

Blavo opened this issue Mar 6, 2024 · 1 comment

Comments

@Blavo
Copy link

Blavo commented Mar 6, 2024

Embedded Glassfish JAR doesn't contain the JARs / RARs to support JMS. On attempted use embedded glassfish excepts saying unable to create an active RAR with a cause of ClassNotFoundException naming com.sun.messaging.jms.ra.ResourceAdapter. In standard glassfish this class is in a JAR inside the imqjmsra.rar in the MQ directory. The (contents of) this RAR are not present in the 7.0.12 embedded glassfish JAR.

If, as I understand, the glassfish admin facility uses JMS then this takes out that facility as well.

Environment Details

Glassfish 7.0.12

java version "17.0.7" 2023-04-18 LTS
Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.7+8-LTS-224, mixed mode, sharing)

Mac OS 12.4 (Monterey)

Database not relevant


Problem Description

As above.

Reliably reproducible

StackTrace.txt

Steps to reproduce

  1. Start an instance of glassfish embedded
  2. Note the JMS service port in the domain.xml in the following line:
  3. In a browser enter http://localhost:nnnn where nnnn is the noted port number; this will trigger JMS (it seems to use lazy initialisation)
  4. Glassfish will except as above

Impact of Issue

I don't use JMS so this doesn't affect me directly. But I believe the glassfish admin facility uses JMS; the admin facility does not work for me against an embedded glassfish and this is probably the cause.

@dmatej
Copy link
Contributor

dmatej commented Mar 7, 2024

That is quite good question, because embedded glassfish is quite specific. Years ago it was stripped from GF3. Naturally I don't think embedded glassfish should contain IMQ broker+JMS server, but throwing CNF exceptions is quite ugly. So it should support it OR it should nicely tell the user that JMS is not supported, but then we should document an example how to work with an external JMS with Embedded GlassFish.

That is quite a lot of work, I think ...

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

2 participants