Closed
Description
Search before asking
- I searched in the issues and found nothing similar.
Read release policy
- I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
Version
any released version
Minimal reproduce step
build broker
mvn -pl pulsar-broker package -DskipTests
// verify ok
bin/pulsar standalone
rename or move pulsar software package
cd ../;mv pulsar-4.0.1 pulsar;cd pulsar;
// verify failed
bin/pulsar standalone
What did you expect to see?
broker started success
What did you see instead?
Error: Could not find or load main class org.apache.pulsar.PulsarStandaloneStarter
Caused by: java.lang.ClassNotFoundException: org.apache.pulsar.PulsarStandaloneStarter
Anything else?
When compiling, Pulsar caches the absolute path of the JAR package into the classpath.txt.
like:
/home/xxx/pulsar-4.0.1/pulsar-broker/target/pulsar-broker.jar:
When starting the service, Pulsar reads the file that contains the cached absolute paths of the JAR packages:
Lines 199 to 223 in e5bd774
Are you willing to submit a PR?
- I'm willing to submit a PR!