liaodn commented on issue #206: URL: https://github.com/apache/bifromq/issues/206#issuecomment-3668044026
> 一、 bifromq-3.3.5-windows-standalone.zip 版本 > > 1、第三步 我有按照这个来,最终的打包 文件为: [bifromq-auth-plugin-1.0.0.zip](https://github.com/user-attachments/files/24214923/bifromq-auth-plugin-1.0.0.zip) 能否帮忙验证我的文件是否正常 > > 2、我采用的 bifromq 是 bifromq-3.3.5-windows-standalone.zip 版本运行的 > > 3、我发现 如果我配置的 安装包 plugin 自带的 demo-plugin-3.3.5.jar ,日志也提示 找不到 这个 authProvider authProviderFQN: "org.apache.bifromq.demo.plugin.DemoAuthProvider" ,是否是我下载的版本,或者哪里 配置 有问题 > > plugin.log 日志: 2025-12-17 00:04:15.534 INFO [plugin.manager] Event collector loaded: com.baidu.demo.plugin.EventLogger 2025-12-17 00:04:15.537 WARN [plugin.manager] Resource throttler type class are not specified, use DEV ONLY one instead 2025-12-17 00:04:15.540 WARN [plugin.manager] Setting provider plugin type are not specified, use DEV ONLY one instead 2025-12-17 00:04:15.544 WARN [plugin.manager] **Auth provider plugin type 'org.apache.bifromq.demo.plugin.DemoAuthProvider' not found, use DEV ONLY one instead** > > 4、jdk 版本为:java -version `java version "17.0.15" 2025-04-15 LTS Java(TM) SE Runtime Environment (build 17.0.15+9-LTS-241) Java HotSpot(TM) 64-Bit Server VM (build 17.0.15+9-LTS-241, mixed mode, sharing)` > > 二、 bifromq-3.3.3-windows-standalone.zip 版本 > > 我尝试了 bifromq-3.3.3-windows-standalone.zip ,也是类型情况,步骤如下 > > step 1 修改 conf\standalone.yml authProviderFQN: "org.apache.bifromq.demo.plugin.DemoAuthProvider" > > step 2 bifromq-3.3.3\bin>.\standalone.bat start "Using Java Version 17.0.15 locating at "D:\jdk\jdk-17.0.15\bin\java"" "Total Memory: 33359028 KB" > > step 3 logs\plugin.log > > 2025-12-17 22:26:33.421 INFO [plugin.manager] Event collector loaded: com.baidu.demo.plugin.EventLogger 2025-12-17 22:26:33.424 WARN [plugin.manager] Resource throttler type class are not specified, use DEV ONLY one instead 2025-12-17 22:26:33.427 WARN [plugin.manager] Setting provider plugin type are not specified, use DEV ONLY one instead 2025-12-17 22:26:33.430 WARN [plugin.manager] Auth provider plugin type 'org.apache.bifromq.demo.plugin.DemoAuthProvider' not found, use DEV ONLY one instead Your plugin package bifromq-auth-plugin-1.0.0.zip didn't work either. However, after the startup failure, I manually modified the auto-extracted classes/META-INF/MANIFEST.MF file, added a newline at the end of the third line, and then it worked. So let's go back to Step 3 above ``` Plugin-Class: bifromq.auth.plugin.AuthPlugin Plugin-Id: bifromq-plugin Plugin-Version: 1.0.0 ``` <img width="1114" height="340" alt="Image" src="https://github.com/user-attachments/assets/45a56ffb-66e6-427f-93c1-732e70aef776" /> —make sure there is a newline at the end. Try adding it and repackaging, or you can test with my package. [bifromq-auth-plugin-1.0.0.zip](https://github.com/user-attachments/files/24225708/bifromq-auth-plugin-1.0.0.zip) -- 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]
