88fantasy opened a new issue, #4490: URL: https://github.com/apache/streampark/issues/4490
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues referencing `FlinkTableInitializerV2` / `streampark-flink-shims-base-v2`. ### Java Version Temurin 21.0.11 (console), built with Microsoft OpenJDK 11.0.28 ### Scala Version 2.12.x ### StreamPark Version 3.0.0-SNAPSHOT (`dev` branch, commit `9ddda84c9`) ### Flink Version 2.2.1 (official binary distribution, standalone/remote cluster) ### Deploy mode remote ### What happened Every Flink **2.x** SQL application fails while the client builds the JobGraph: ``` NoClassDefFoundError: org/apache/streampark/flink/core/FlinkTableInitializerV2 ``` thrown from `SqlClient.main()` -> `TableContext.<init>()`. Flink 1.x SQL jobs are unaffected. `FlinkTableInitializerV2` lives in `streampark-flink-shims-base-v2`. `streampark-console-service/pom.xml` declares a normal compile dependency on the v1 module, `streampark-flink-shims-base` — so v1 ends up in the console's own `lib/` — but declares **no** equivalent dependency on `streampark-flink-shims-base-v2`. The only references to v2 are the `provided` dependencies on `streampark-flink-shims_flink-2.0/2.1/2.2/2.3`, which exist to order the reactor for `-am` builds and do not put anything into the distribution. The result is that `TableContext` (in each `shims_flink-2.x` module) can never resolve the v2 base class it depends on at runtime. Most likely a line missed when 2.x support was added in `e770d2e8e`. ### Error Exception ```log java.lang.NoClassDefFoundError: org/apache/streampark/flink/core/FlinkTableInitializerV2 at org.apache.streampark.flink.core.TableContext.<init>(...) at org.apache.streampark.flink.cli.SqlClient$.main(...) ``` ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
