Bug 1289537 - Cache-api is needed when using uberjars even if CDI isn't used
Summary: Cache-api is needed when using uberjars even if CDI isn't used
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Build
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR3
: 6.6.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1292720
TreeView+ depends on / blocked
 
Reported: 2015-12-08 12:05 UTC by Jiri Holusa
Modified: 2025-02-10 03:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:48:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jiri Holusa 2015-12-08 12:05:11 UTC
During migration of quickstarts to uber-jars, I ran into this usability issue. See: https://github.com/jboss-developer/jboss-jdg-quickstarts/pull/114

The thing is that (e.g. in helloworld-jdg quickstart), there is absolutely no need for javax.cache.cache-api. However, if this dependency is not present, the deployment will fail with java.lang.ClassNotFoundException: javax.cache.annotation.CacheResult

The workaround is simple - add the dependency and everything works fine. However, it's a little strange to add dependency that is not needed at all.

Comment 5 Martin Gencur 2015-12-18 09:24:46 UTC
All quickstarts now (ER4) work correctly without the cache-api dependency.

Comment 6 Martin Gencur 2016-01-22 12:54:58 UTC
This issues was probably not fully fixed as appeared during verification of https://bugzilla.redhat.com/show_bug.cgi?id=1292720

This problem was fixed for infinispan-embedded but there's still a problem with infinispan-remote which requires cache-api dependency in order to be deployed to EAP.

Looks like the carmart quickstart in its "remote" profile was blocked by a different issue in ER4 and it did not help reveal this bug during ER4 testing :(

I have to re-open it now.

Comment 9 Martin Gencur 2016-01-25 09:39:46 UTC
All of the following tests passed:
* all quickstarts, including the remote profile of carmart quickstart
* func. tests for HotRod client in EAP and OSGi
* func. tests for embedded cache in OSGi
* func. tests for CDI extension in both embedded and remote mode

Marking this BZ as verified.

Comment 13 Red Hat Bugzilla 2025-02-10 03:48:36 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.