Bug 1289580

Summary: CLI can't connect to JDG in library mode
Product: [JBoss] JBoss Data Grid 6 Reporter: Roman Macor <rmacor>
Component: LibraryAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: jdg-bugs
Target Milestone: ER4   
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:
Attachments:
Description Flags
Debug logs from cli.sh, traces from EAP server, extracted part from server logs and the application that is being deployed to EAP none

Description Roman Macor 2015-12-08 13:34:44 UTC
Description of problem:

Connecting to JDG via cli.sh results in:

javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:
   DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Cannot perform callback to acquire realm, authentication ID or password [Caused by javax.security.auth.callback.UnsupportedCallbackException]

How reproducible:

1. Deploy application in EAP 
(application needs to have infinispan-cli-server dependency)

2. jboss-datagrid-6.6.0-library/bin/cli.sh

3. connect remoting://localhost:9999/

Comment 3 Martin Gencur 2015-12-09 16:14:47 UTC
The stack trace above is all that we get when connecting via CLI. Nothing else is written on the console.

Comment 4 Tristan Tarrant 2015-12-09 16:17:50 UTC
Some debug logging would  be useful. I guess the error above is from the CLI side of things and not the server

Comment 5 Roman Macor 2015-12-10 10:56:34 UTC
Created attachment 1104300 [details]
Debug logs from cli.sh, traces from EAP server,  extracted part from server logs and  the application that is being deployed to EAP

I've added debug logs from cli.sh, traces from EAP server and extracted part from server logs that seems to be related to CLI. I've also attached the application that is being deployed to EAP, which is just a cartmart-tx quickstart with added infinispan-cli-server dependency.