-
Notifications
You must be signed in to change notification settings - Fork 304
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
Error: Injection of remote EJB into a MDB in clustered mode #2763
Comments
Can you build a test case that demonstrates the issue. Perhaps as a simple maven project on GitHub? |
Also, what is "clustered mode" you are referring to? This statement is too broad / generic. |
OK, I'll try to provide an example for you |
Also, have you tried this on .181 version? Please do that as a first step as well |
So I digged into this a bit more. I've created a test case for this: link In order to reproduce:
By default 10 messages will be sent to the jms queue. The bug occurs on .174 and .181. I have not tested any other release |
Thanks for the test case we will try to reproduce |
Any progress on this? |
Description
I have a MDB, which uses a remote EJB. The remote EJB can easily be injected when running as standalone, however in clustered mode, an Exception occurs.
Expected Outcome
The remote EJB gets in injected.
Current Outcome
An IllegalStateException is thrown, as result of a LinkageError.
Here is the full stack trace.
However I think this is the important part:
java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "com/sun/ejb/codegen/GenericEJBHome_Generated"
or
java.lang.LinkageError: loader (instance of org/glassfish/web/loader/WebappClassLoader): attempted duplicate class definition for name: "fmg/stp/backendservices/push/api/_PushServiceRemote_Remote"
where
PushServiceRemote
is the remote interface.Both Exceptions occur multiple times, and I can't really say how they connect.
Samples
I've included the classes.
RequiredClasses.zip
Environment
The text was updated successfully, but these errors were encountered: