Bug 1080485
| Summary: | CDI cache injection fails due to incompatible types | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Vojtech Juranek <vjuranek> | ||||
| Component: | EAP modules | Assignee: | Tristan Tarrant <ttarrant> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Martin Gencur <mgencur> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.3.0 | CC: | afield, dereed, dmehra, mgencur, mmarkus | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-03-26 16:27:05 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Vojtech Juranek
2014-03-25 14:21:23 UTC
That's expected behavior. The Infinispan subsystem in EAP is separate from JDG. When I bundle JDG libs in deployed war, it work without any problem. As the cache is defined in EAP config file (i.e. handled by ISPN subsystem), it should IMHO work or fail equally in both cases. Such inconsistent behavior is IMHO a bug. It shouldn't work in that case either, since EAP's org.infinispan.Cache is different than JDG's org.infinispan.Cache visible to the war. (EAP's caches can never be used by an application using JDG because of basic classloading rules) The only way that would work is if it's importing EAP's ISPN modules, which would override the packaged JDG. Note that using EAP's ISPN caches in an application is a completely unsupported use case. @dereed thanks for clarification, I re-checked with Martin Genrur that using EAP's ISPN caches in an application is really unsupported, so closing as not a bug. |