Skip to content

Fix NoClassDefFoundError (com.sleepycat.je.DatabaseException) in sample LDAP server - #565

Merged
coudot merged 5 commits into
lsc-project:masterfrom
Kcchouette:fix-LSC_quickstart_not_working
Aug 31, 2026
Merged

coudot merged 5 commits into
lsc-project:masterfrom
Kcchouette:fix-LSC_quickstart_not_working

Conversation

@Kcchouette

@Kcchouette Kcchouette commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes java.lang.NoClassDefFoundError: com/sleepycat/je/DatabaseException when starting the embedded OpenDJ LDAP server using bin/lsc-sample --start-ldap-server.

Root Cause

  • OpenDJ 2.6.4 relies on Berkeley DB Java Edition (org.opends.server.backends.jeb.BackendImpl) for its userRoot local storage backend.
  • The opendj-server:2.6.4 Maven artifact was published without transitive runtime dependencies, omitting com.sleepycat:je.
  • Consequently, the Sleepycat JE library was missing from both the runtime classpath and the distribution archive sample/lib directory.

Changes

  1. pom.xml: Added explicit dependency com.sleepycat:je:5.0.73 under Sleepycat License (BSD-compatible).
  2. src/main/assembly/dist.xml: Fixed OpenDJ groupId to org.forgerock.ce.opendj and routed com.sleepycat:je to sample/lib.
  3. sample/*/bin/lsc-sample:
    • Added sample/lib/*.jar to the sample script classpath (LDAPCP).
    • Added required JVM --add-opens flags for Java 17/21 compatibility.
    • Fixed a bash syntax typo in sample/ldap2hsqldb/bin/lsc-sample.

Related to #560

@coudot coudot added this to the 2.4 milestone Aug 28, 2026
@coudot
coudot changed the base branch from master to 2.3 August 31, 2026 10:25
@coudot coudot modified the milestones: 2.4, 2.3.2 Aug 31, 2026
@coudot
coudot changed the base branch from 2.3 to master August 31, 2026 10:27
@coudot coudot added the dependencies Pull requests that update a dependency file label Aug 31, 2026
@coudot
coudot merged commit 02faa63 into lsc-project:master Aug 31, 2026
2 checks passed
@coudot

coudot commented Aug 31, 2026

Copy link
Copy Markdown
Member

Thanks, the quickstart is working now!

@coudot coudot modified the milestones: 2.3.2, 2.4 Aug 31, 2026
@Kcchouette
Kcchouette deleted the fix-LSC_quickstart_not_working branch August 31, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LSC quickstart not working in 2.3: Exception in thread "main" java.lang.NoClassDefFoundError: com/sleepycat/je/DatabaseException

2 participants