Open ZhuBicen opened 4 years ago
I have the same problem. Any update on this?
same issue here
I'm seeing this issue as well...
Facing same issues
E:\Code\Microservices>java -jar spring-boot-cli-2.2.0.RELEASE-full.jar cloud
. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.2.1.RELEASE)
2022-06-16 10:50:58.135 INFO 6040 --- [ main] o.s.c.l.deployer.DeployerApplication : Starting DeployerApplication v2.2.0.BUILD-SNAPSHOT on Lenovo-PC with PID 6040 (C:\Users\NAVEEN.m2\repository\org\springframework\cloud\launcher\spring-cloud-launcher-deployer\2.2.0.BUILD-SNAPSHOT\spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar started by NAVEEN in E:\Code\Microservices) 2022-06-16 10:50:58.139 INFO 6040 --- [ main] o.s.c.l.deployer.DeployerApplication : No active profile set, falling back to default profiles: default 2022-06-16 10:50:59.213 INFO 6040 --- [ main] o.s.c.l.deployer.DeployerApplication : Started DeployerApplication in 2.273 seconds (JVM running for 9.456) 2022-06-16 10:51:08.997 INFO 6040 --- [ main] o.s.boot.loader.thin.PathResolver : Extracting dependencies from: file:/C:/Users/NAVEEN/.m2/repository/org/springframework/cloud/launcher/spring-cloud-launcher-configserver/2.2.0.BUILD-SNAPSHOT/spring-cloud-launcher-configserver-2.2.0.BUILD-SNAPSHOT.jar, with profiles [] 2022-06-16 10:51:08.999 INFO 6040 --- [ main] o.s.boot.loader.thin.PathResolver : Searching for properties in: file:/C:/Users/NAVEEN/.m2/repository/org/springframework/cloud/launcher/spring-cloud-launcher-configserver/2.2.0.BUILD-SNAPSHOT/spring-cloud-launcher-configserver-2.2.0.BUILD-SNAPSHOT.jar 2022-06-16 10:51:09.009 INFO 6040 --- [ main] o.s.boot.loader.thin.PathResolver : Extracting dependencies from: class path resource [META-INF/thin/empty-pom.xml], with profiles [] 2022-06-16 10:51:10.286 INFO 6040 --- [ main] o.s.b.loader.thin.MavenSettingsReader : No settings found at: C:\Users\NAVEEN.m2\settings.xml 2022-06-16 10:51:10.317 INFO 6040 --- [ main] o.s.boot.loader.thin.DependencyResolver : Computing dependencies from pom and properties 2022-06-16 10:51:10.647 ERROR 6040 --- [ main] o.s.c.deployer.thin.ThinJarAppWrapper : Cannot deploy org.springframework.cloud.launcher:spring-cloud-launcher-configserver:jar:2.2.0.BUILD-SNAPSHOT
java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.deployer.thin.ContextRunner] from ClassLoader [java.net.URLClassLoader@2f2e4bde] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:477) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.util.ReflectionUtils.findMethod(ReflectionUtils.java:240) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.runContext(ThinJarAppWrapper.java:132) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.run(ThinJarAppWrapper.java:90) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.thin.AbstractThinJarSupport.deploy(AbstractThinJarSupport.java:60) [spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.thin.ThinJarAppDeployer.deploy(ThinJarAppDeployer.java:63) [spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.launcher.deployer.Deployer.deployInternal(Deployer.java:203) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.Deployer.deploy(Deployer.java:108) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.launch(DeployerApplication.java:121) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.run(DeployerApplication.java:64) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.main(DeployerApplication.java:54) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:193) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:140) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:140) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107) [spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.cloud.launcher.cli.LauncherCommand$LauncherOptionHandler.run(LauncherCommand.java:115) [spring-cloud-launcher-cli-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.boot.cli.command.options.OptionHandler.run(OptionHandler.java:85) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.OptionParsingCommand.run(OptionParsingCommand.java:54) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.CommandRunner.run(CommandRunner.java:219) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.CommandRunner.runAndHandleErrors(CommandRunner.java:171) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.SpringCli.main(SpringCli.java:64) [classes!/:2.2.0.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [spring-boot-thin-launcher-1.0.22.RELEASE-exec.jar:1.0.22.RELEASE] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_202] at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:1.8.0_202] at java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:1.8.0_202] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:459) ~[spring-core-5.2.1.RELEASE.jar:5.2.1.RELEASE] ... 43 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_202] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_202] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_202] ... 47 common frames omitted
2022-06-16 10:51:10.673 ERROR 6040 --- [ main] o.s.cloud.launcher.cli.LauncherCommand : Error running spring cloud
java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.cloud.launcher.cli.LauncherCommand$LauncherOptionHandler.run(LauncherCommand.java:115) ~[na:na] at org.springframework.boot.cli.command.options.OptionHandler.run(OptionHandler.java:85) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.OptionParsingCommand.run(OptionParsingCommand.java:54) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.CommandRunner.run(CommandRunner.java:219) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.command.CommandRunner.runAndHandleErrors(CommandRunner.java:171) [classes!/:2.2.0.RELEASE] at org.springframework.boot.cli.SpringCli.main(SpringCli.java:64) [classes!/:2.2.0.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:140) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] ... 18 common frames omitted Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_202] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_202] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [spring-boot-cli-2.2.0.RELEASE-full.jar:2.2.0.RELEASE] at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:193) ~[spring-boot-thin-launcher-1.0.22.RELEASE.jar:1.0.22.RELEASE] at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:140) ~[spring-boot-thin-launcher-1.0.22.RELEASE.jar:1.0.22.RELEASE] ... 24 common frames omitted Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.deployer.thin.ContextRunner] from ClassLoader [java.net.URLClassLoader@2f2e4bde] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:477) ~[spring-core-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.util.ReflectionUtils.findMethod(ReflectionUtils.java:240) ~[spring-core-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.util.ReflectionUtils.findMethod(ReflectionUtils.java:219) ~[spring-core-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.isRunning(ThinJarAppWrapper.java:118) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.thin.ThinJarAppWrapper.getState(ThinJarAppWrapper.java:218) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.thin.InMemoryAppInstanceStatus.getState(ThinJarAppDeployer.java:206) ~[spring-cloud-deployer-thin-1.0.22.RELEASE.jar:na] at org.springframework.cloud.deployer.spi.app.AppStatus.getState(AppStatus.java:92) ~[spring-cloud-deployer-spi-1.1.4.RELEASE.jar:1.1.4.RELEASE] at org.springframework.cloud.launcher.deployer.Deployer.getAppStatus(Deployer.java:251) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.Deployer.deployInternal(Deployer.java:204) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.Deployer.deploy(Deployer.java:108) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.launch(DeployerApplication.java:121) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.run(DeployerApplication.java:64) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] at org.springframework.cloud.launcher.deployer.DeployerApplication.main(DeployerApplication.java:54) ~[spring-cloud-launcher-deployer-2.2.0.BUILD-SNAPSHOT.jar:2.2.0.BUILD-SNAPSHOT] ... 33 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_202] at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:1.8.0_202] at java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:1.8.0_202] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:459) ~[spring-core-5.2.0.RELEASE.jar!/:5.2.0.RELEASE] ... 45 common frames omitted Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_202] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_202] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_202] ... 49 common frames omitted
I followed instructions here installed
spring-boot-cli
:and followed instructions here to install
spring-cloud-cli
:But it is not working when
spring cloud eureka