-
-
Save grossws/9514944 to your computer and use it in GitHub Desktop.
spring-boot with start-class in default package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> % java -jar build/libs/spring-boot-sample-simple-1.0.0.jar | |
. ____ _ __ _ _ | |
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
\\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
' |____| .__|_| |_|_| |_\__, | / / / / | |
=========|_|==============|___/=/_/_/_/ | |
:: Spring Boot :: (v1.0.0.BUILD-SNAPSHOT) | |
2014-03-12 23:50:24.576 INFO 18088 --- [ main] SampleSimpleApplication : Starting SampleSimpleApplication on unterwelt with PID 18088 (/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar started by gross) | |
2014-03-12 23:50:24.663 INFO 18088 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@444c05c1: startup date [Wed Mar 12 23:50:24 MSK 2014]; root of context hierarchy | |
2014-03-12 23:50:25.097 INFO 18088 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-boot-starter-1.0.0.BUILD-SNAPSHOT.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-boot-1.0.0.BUILD-SNAPSHOT.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-boot-autoconfigure-1.0.0.BUILD-SNAPSHOT.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-boot-starter-logging-1.0.0.BUILD-SNAPSHOT.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/snakeyaml-1.13.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-core-4.0.2.RELEASE.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-context-4.0.2.RELEASE.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/jcl-over-slf4j-1.7.6.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/jul-to-slf4j-1.7.6.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/log4j-over-slf4j-1.7.6.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/logback-classic-1.1.1.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/commons-logging-1.1.3.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-aop-4.0.2.RELEASE.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-beans-4.0.2.RELEASE.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-expression-4.0.2.RELEASE.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/slf4j-api-1.7.6.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/logback-core-1.1.1.jar!/, jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/aopalliance-1.0.jar!/] | |
java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) | |
at java.lang.Thread.run(Thread.java:744) | |
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/home/gross/thirdparty/spring-boot/spring-boot-samples/spring-boot-sample-simple/build/libs/spring-boot-sample-simple-1.0.0.jar!/lib/spring-boot-autoconfigure-1.0.0.BUILD-SNAPSHOT.jar!/org/springframework/boot/autoconfigure/web/DispatcherServletAutoConfiguration$DispatcherServletConfiguration.class]; nested exception is java.lang.NoClassDefFoundError: org/springframework/web/servlet/DispatcherServlet | |
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:301) | |
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242) | |
at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:134) | |
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:236) | |
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:205) | |
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:182) | |
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:152) | |
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:299) | |
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:243) | |
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254) | |
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94) | |
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:609) | |
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) | |
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:639) | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:900) | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:889) | |
at SampleSimpleApplication.main(SampleSimpleApplication.java:44) | |
... 6 more | |
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/servlet/DispatcherServlet | |
at org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DefaultDispatcherServletCondition.getMatchOutcome(DispatcherServletAutoConfiguration.java:100) | |
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:43) | |
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:92) | |
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:79) | |
at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:62) | |
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isConditionMatch(ClassPathScanningCandidateComponentProvider.java:361) | |
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent(ClassPathScanningCandidateComponentProvider.java:345) | |
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:278) | |
... 23 more | |
Caused by: java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) | |
at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:157) | |
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:127) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) | |
... 31 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment