Skip to content

[BUG] Java Admin Client CLI doesn't connect #5855

@cmarchand

Description

@cmarchand

I'm trying to use command-line interactive Java admin client.

Starting like this, I have an Exception:

./bin/client.sh --no-gui
eXist version 6.4.0 (2e4182841b38317324877c0b2e1febcaa26ed83a), Copyright (C) 2001-2025 The eXist-db Project
eXist-db comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; for details read the license file.

Connecting to database...
Connection to database failed; message: HTTP server returned unexpected status: Unauthorized
org.xmldb.api.base.XMLDBException: HTTP server returned unexpected status: Unauthorized
	at org.exist.xmldb.RemoteCollection.instance(RemoteCollection.java:111)
	...

Adding -u and -p doesn't change anything

./bin/client.sh --no-gui -u admin -p xxxx
eXist version 6.4.0 (2e4182841b38317324877c0b2e1febcaa26ed83a), Copyright (C) 2001-2025 The eXist-db Project
eXist-db comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; for details read the license file.

Connecting to database...
Connection to database failed; message: HTTP server returned unexpected status: Unauthorized
org.xmldb.api.base.XMLDBException: HTTP server returned unexpected status: Unauthorized
	at org.exist.xmldb.RemoteCollection.instance(RemoteCollection.java:111)
	...

Describe the bug

According to documentation, I'd expect client asking me login informations, and then displaying a shell.

Launching client without any parameter starts correctly GUI, and I can connect with same login informations.

Do I miss something ?

To Reproduce

  • Build: [eXist-6.4.0]
  • Java: [openjdk version "11.0.4" 2019-07-16]
  • OS: [Mac OS X 15.5]

Additional context

  • How is eXist-db installed? [JAR installer]
  • No custom changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions