Mrhs121 opened a new issue, #17488: URL: https://github.com/apache/dolphinscheduler/issues/17488
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened 1. download 3.3.1 released package 2. run install-pulgin.sh 3. run ./bin/dolphinscheduler-daemon.sh start master-server then get the error `Caused by: java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/SQLServerException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380) ... 31 common frames omitted Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerException at java.net.URLClassLoader.findClass(URLClassLoader.java:387) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 36 common frames omitted` ### What you expected to happen The root cause is that after version 3.3.x the plugin was switched to shade mode; however, the JAR downloaded by install-plugin.sh is not the shaded jar, so several dependencies are missing from the classpath. In the above error, for example, mssql-jdbc.jar is absent. When dolphinscheduler-datasource-azure-sql.jar is placed under plugins/datasource-plugins, the Azure datasource needs the SQLServerDataSource and SQLServerException classes, but because mssql-jdbc.jar is still not on the classpath, an exception is thrown. ### How to reproduce For details, please refer to this discussion [https://github.com/apache/dolphinscheduler/discussions/17487](https://github.com/apache/dolphinscheduler/discussions/17487) ### Anything else _No response_ ### Version dev ### 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]
