Bug 1264329

Summary: CNFE exception when using infinispan-remote in EAP7
Product: [JBoss] JBoss Data Grid 6 Reporter: Vitalii Chepeliuk <vchepeli>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: ASSIGNED --- QA Contact: Martin Gencur <mgencur>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5.1CC: jdg-bugs
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: 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:

Description Vitalii Chepeliuk 2015-09-18 08:29:11 UTC
Description of problem:
There is CNFE exception thrown when infinispan-remote uber jar is used in EAP container.
Caused by: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".WeldStartService: Failed to start service
      Caused by: org.jboss.weld.exceptions.DeploymentException: com/sun/jdi/request/EventRequest
      Caused by: java.lang.NoClassDefFoundError: com/sun/jdi/request/EventRequest
      Caused by: java.lang.ClassNotFoundException: com.sun.jdi.request.EventRequest from [Module \"deployment.test.war:main\" from Service Module Loader]"}}

Version-Release number of selected component (if applicable): EAP7.0.0.DR9, JDG6.5.1.CR1


protostream.javassist.util.HotSwapper is using class(MethodEntryRequest) which implements EventRequest.

Possible sollution are:
1. remove HotSwapper
2. set in beans.xml discovery mode to ANNOTATED
3. find out if some used component did not change dependency on jdi

Comment 4 Tristan Tarrant 2015-10-23 09:46:51 UTC
We need to add a dependency on the sun.jdk module to jboss-deployment-strucutre.xml