orangeCatDeveloper opened a new pull request, #4190: URL: https://github.com/apache/hertzbeat/pull/4190
## Summary - The JVM collector and server are packaged as a thin jar plus a separate `lib/` directory of dependencies (`maven-jar-plugin` `classpathPrefix=lib/`, assembly `dependencySet` `outputDirectory=lib`) - `entrypoint.sh` launches with `java -cp $CLASSPATH $MAIN_CLASS`, which ignores the jar's manifest `Class-Path` entirely (that's only honored with `java -jar`) — so `lib/*` was never actually on the classpath - Every real deployment via the Docker image or `bin/entrypoint.sh` crashes on startup with `NoClassDefFoundError: org/springframework/boot/SpringApplication` - Add `$DEPLOY_DIR/lib/*` to `CLASSPATH` in both `script/assembly/collector/bin/entrypoint.sh` and `script/assembly/server/bin/entrypoint.sh` ## Test plan - [x] Built the collector Docker image from a real `mvn -Prelease` artifact and ran it with the unmodified `entrypoint.sh` — reproduced `NoClassDefFoundError: SpringApplication`, matching the trace reported in #3296 - [x] Swapped in the patched `entrypoint.sh` in the same image — Spring Boot starts cleanly, Tomcat binds, all 38 collect strategies register, and it proceeds to (expectedly) retry connecting to the configured manager host Fixes #3296 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01C5cCEyVcXDfVDSjRjwsSoA -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
