Bug 1289537

Summary: Cache-api is needed when using uberjars even if CDI isn't used
Product: [JBoss] JBoss Data Grid 6 Reporter: Jiri Holusa <jholusa>
Component: BuildAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: jdg-bugs, wfink
Target Milestone: CR3   
Target Release: 6.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1292720    

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.