Commit 799b436
The docker build context only copied the thin jar (tika-grpc-X.jar) but
not the lib/ directory containing all runtime dependencies. The jar's
MANIFEST.MF Class-Path references lib/*.jar relative to the jar location,
so without that directory Java throws:
NoClassDefFoundError: io/grpc/BindableService
Fix: unzip the Maven assembly zip (which bundles the jar + lib/) and copy
both into the build context. The Dockerfile COPY libs/ -> /tika/libs/ then
places them at:
/tika/libs/tika-grpc-X.jar (the main jar)
/tika/libs/lib/*.jar (runtime deps, per MANIFEST Class-Path)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cb20b84 commit 799b436
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments