项目是一个maven整合jetty的项目.到了linux上就不通了 5C

项目是一个maven整合jetty的项目.运行需要启动/main/ServerStart.java的main方法启动.win下好用.到了linux上就不通了

5个回答

start_service:
[java] 2017-05-15 18:03:45 [org.springframework.context.annotation.AnnotationConfigApplicationContext prepareRefresh 512] INFO - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@66b309a1: startup date [Mon May 15 18:03:45 CST 2017]; root of context hierarchy
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 316] INFO - Loading XML bean definitions from class path resource [comm_params_ctx.xml]
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/comm_params.properties]
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/comm_variable.properties]
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/passwordParams.properties]
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/jetty_start.properties]
[java] 2017-05-15 18:03:45 [org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 603] INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fa5a709: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,serverStart.ServerConfig,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,serverStart,propertyConfigurer]; root of factory hierarchy
[java] 2017-05-15 18:03:45 [com.gstd.main.ServerStart run 169] INFO - *** stop server thread started, port: 5901 ***
[java] 2017-05-15 18:03:45 [org.eclipse.jetty.server.Server doStart 253] INFO - jetty-8.0.3.v20111011
[java] 2017-05-15 18:03:46 [org.eclipse.jetty.server.handler.ContextHandler callContextInitialized 673] INFO - started o.e.j.w.WebAppContext{/vvcmanage,file:/root/sp/smsmanage_1.0.3/webapp/},./webapp
[java] 2017-05-15 18:03:46 [org.eclipse.jetty.server.handler.ContextHandler callContextInitialized 673] INFO - started o.e.j.w.WebAppContext{/vvcmanage,file:/root/sp/smsmanage_1.0.3/webapp/},./webapp
[java] 2017-05-15 18:03:46 [/vvcmanage log 1830] INFO - Initializing Spring root WebApplicationContext
[java] 2017-05-15 18:03:46 [org.springframework.web.context.ContextLoader initWebApplicationContext 285] INFO - Root WebApplicationContext: initialization started
[java] 2017-05-15 18:03:46 [org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh 512] INFO - Refreshing Root WebApplicationContext: startup date [Mon May 15 18:03:46 CST 2017]; root of context hierarchy
[java] 2017-05-15 18:03:46 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 316] INFO - Loading XML bean definitions from class path resource [comm_ser_ctx.xml]
[java] 2017-05-15 18:03:46 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 316] INFO - Loading XML bean definitions from class path resource [comm_params_ctx.xml]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions 316] INFO - Loading XML bean definitions from class path resource [comm_params_ctx.xml]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition 675] INFO - Overriding bean definition for bean 'propertyConfigurer': replacing [Generic bean: class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [comm_params_ctx.xml]] with [Generic bean: class [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [comm_params_ctx.xml]]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/comm_params.properties]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/comm_variable.properties]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/passwordParams.properties]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties 172] INFO - Loading properties file from class path resource [properties/jetty_start.properties]
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 603] INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@127fe494: defining beans [propertyConfigurer,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,serverStart.ServerConfig,uploadfileController,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.context.annotation.internalScheduledAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,serverStart]; root of factory hierarchy
[java] SLF4J: Class path contains multiple SLF4J bindings.
[java] SLF4J: Found binding in [jar:file:/root/sp/smsmanage_1.0.3/webapp/WEB-INF/lib/logback-classic-0.9.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[java] SLF4J: Found binding in [jar:file:/root/sp/smsmanage_1.0.3/webapp/WEB-INF/lib/logback-classic-0.9.28.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[java] 18:03:47,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
[java] 18:03:47,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
[java] 18:03:47,319 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/root/sp/smsmanage_1.0.3/webapp/WEB-INF/classes/logback.xml]
[java] 18:03:47,320 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
[java] 18:03:47,320 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/root/sp/smsmanage_1.0.3/webapp/WEB-INF/classes/logback.xml]
[java] 18:03:47,320 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/root/sp/smsmanage_1.0.3/webapp/WEB-INF/classes/logback.xml]
[java] 18:03:47,358 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
[java] 18:03:47,359 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 30 seconds
[java] 18:03:47,359 |-INFO in ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter@46aecc14 - Will scan for changes in [[/root/sp/smsmanage_1.0.3/webapp/WEB-INF/classes/logback.xml]] every 30 seconds.
[java] 18:03:47,359 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter
[java] 18:03:47,361 |-INFO in ch.qos.logback.core.joran.action.TimestampAction - Using current interpretation time, i.e. now, as time reference.
[java] 18:03:47,361 |-INFO in ch.qos.logback.core.joran.action.TimestampAction - Adding property to the context with key="bySecond" and value="2017-05-15" to the context
[java] 18:03:47,361 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
[java] 18:03:47,365 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [COMM-DEBUG]
[java] 18:03:47,414 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
[java] 18:03:47,416 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/debug/debug.%d{yyyy-MM-dd}.log for the active file
[java] 18:03:47,419 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/debug/debug.%d{yyyy-MM-dd}.log'.
[java] 18:03:47,419 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
[java] 18:03:47,419 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon May 15 18:03:47 CST 2017
[java] 18:03:47,421 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
[java] 18:03:47,441 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-DEBUG] - Active log file name: logs/debug/debug.2017-05-15.log
[java] 18:03:47,441 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-DEBUG] - File property is set to [null]
[java] 18:03:47,442 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
[java] 18:03:47,442 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [COMM-INFO]
[java] 18:03:47,444 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
[java] 18:03:47,444 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/info/info.%d{yyyy-MM-dd}.log for the active file
[java] 18:03:47,445 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/info/info.%d{yyyy-MM-dd}.log'.
[java] 18:03:47,445 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
[java] 18:03:47,446 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon May 15 18:03:47 CST 2017
[java] 18:03:47,446 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
[java] 18:03:47,447 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-INFO] - Active log file name: logs/info/info.2017-05-15.log
[java] 18:03:47,447 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-INFO] - File property is set to [null]
[java] 18:03:47,447 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
[java] 18:03:47,447 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [COMM-ERROR]
[java] 18:03:47,449 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
[java] 18:03:47,449 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern logs/error/error.%d{yyyy-MM-dd}.log for the active file
[java] 18:03:47,450 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern 'logs/error/error.%d{yyyy-MM-dd}.log'.
[java] 18:03:47,450 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
[java] 18:03:47,450 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Mon May 15 18:03:47 CST 2017
[java] 18:03:47,450 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
[java] 18:03:47,451 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-ERROR] - Active log file name: logs/error/error.2017-05-15.log
[java] 18:03:47,451 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[COMM-ERROR] - File property is set to [null]
[java] 18:03:47,452 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
[java] 18:03:47,453 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
[java] 18:03:47,456 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
[java] 18:03:47,457 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.comm.service] to DEBUG
[java] 18:03:47,457 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [com.comm.service] to true
[java] 18:03:47,457 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [COMM-DEBUG] to Logger[com.comm.service]
[java] 18:03:47,458 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
[java] 18:03:47,458 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
[java] 18:03:47,458 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [COMM-INFO] to Logger[ROOT]
[java] 18:03:47,458 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [COMM-ERROR] to Logger[ROOT]
[java]
[java] 2017-05-15 18:03:47 [org.springframework.web.context.support.XmlWebApplicationContext refresh 486] WARN - Exception encountered during context initialization - cancelling refresh attempt
[java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverStart' defined in class path resource [com/gstd/main/ServerStart$ServerConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:603) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) [spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) [spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:672) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:403) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:664) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:239) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1212) [jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:610) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453) [jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.Server.doStart(Server.java:262) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at com.gstd.main.ServerStart.main(ServerStart.java:123) [classes/:na]
[java] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 26 common frames omitted
[java] Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at com.gstd.main.ServerStart$ServerConfig.serverStart(ServerStart.java:245) ~[classes/:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.CGLIB$serverStart$0() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed$$FastClassBySpringCGLIB$$a5a784b5.invoke() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:292) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.serverStart() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_131]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_131]
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_131]
[java] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_131]
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 27 common frames omitted
[java] Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:359) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:348) ~[na:1.7.0_131]
[java] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:347) ~[na:1.7.0_131]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] ... 38 common frames omitted
[java] 2017-05-15 18:03:47 [org.springframework.beans.factory.support.DefaultListableBeanFactory destroySingletons 444] INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@127fe494: defining beans [propertyConfigurer,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,serverStart.ServerConfig,uploadfileController,org.springframework.context.annotation.internalAsyncAnnotationProcessor,org.springframework.context.annotation.internalScheduledAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,serverStart]; root of factory hierarchy
[java] 2017-05-15 18:03:47 [org.springframework.web.context.ContextLoader initWebApplicationContext 331] ERROR - Context initialization failed
[java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverStart' defined in class path resource [com/gstd/main/ServerStart$ServerConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:603) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) ~[spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:672) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:403) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:664) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:239) [jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1212) [jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:610) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453) [jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.Server.doStart(Server.java:262) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at com.gstd.main.ServerStart.main(ServerStart.java:123) [classes/:na]
[java] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 26 common frames omitted
[java] Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at com.gstd.main.ServerStart$ServerConfig.serverStart(ServerStart.java:245) ~[classes/:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.CGLIB$serverStart$0() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed$$FastClassBySpringCGLIB$$a5a784b5.invoke() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:292) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.serverStart() ~[spring-core-3.2.13.RELEASE.jar:na]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_131]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_131]
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_131]
[java] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_131]
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 27 common frames omitted
[java] Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:359) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:348) ~[na:1.7.0_131]
[java] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:347) ~[na:1.7.0_131]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] ... 38 common frames omitted
[java] 2017-05-15 18:03:47 [org.eclipse.jetty.webapp.WebAppContext doStart 462] WARN - Failed startup of context o.e.j.w.WebAppContext{/vvcmanage,file:/root/sp/smsmanage_1.0.3/webapp/},./webapp
[java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverStart' defined in class path resource [com/gstd/main/ServerStart$ServerConfig.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:603) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1057) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) ~[spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) ~[spring-web-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:672) ~[jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:403) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:664) ~[jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:239) ~[jetty-servlet-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1212) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:610) ~[jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:453) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.server.Server.doStart(Server.java:262) [jetty-server-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) [jetty-util-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at com.gstd.main.ServerStart.main(ServerStart.java:123) [classes/:na]
[java] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 26 common frames omitted
[java] Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool
[java] at com.gstd.main.ServerStart$ServerConfig.serverStart(ServerStart.java:245) ~[classes/:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.CGLIB$serverStart$0() ~[na:na]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed$$FastClassBySpringCGLIB$$a5a784b5.invoke() ~[na:na]
[java] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:292) ~[spring-context-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] at com.gstd.main.ServerStart$ServerConfig$$EnhancerBySpringCGLIB$$4019b5ed.serverStart() ~[na:na]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_131]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_131]
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_131]
[java] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_131]
[java] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) ~[spring-beans-3.2.13.RELEASE.jar:3.2.13.RELEASE]
[java] ... 27 common frames omitted
[java] Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.thread.ThreadPool
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:359) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:348) ~[na:1.7.0_131]
[java] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_131]
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:347) ~[na:1.7.0_131]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:415) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:377) ~[jetty-webapp-8.0.3.v20111011.jar:8.0.3.v20111011]
[java] ... 38 common frames omitted
[java] 2017-05-15 18:03:47 [org.eclipse.jetty.server.AbstractConnector doStart 320] INFO - Started SelectChannelConnector@0.0.0.0:5900 STARTING

抱歉各位大佬.报错确实有点多.对不起

jetty-util版本不匹配?找下你的jetty相关的包匹配不

[java] Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.gstd.main.ServerStart com.gstd.main.ServerStart$ServerConfig.serverStart()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/ThreadPool

most_rabbitfishes
抓瓦工 全部jar都在下面附上了.大佬看看是不是少jar包啊.....
2 年多之前 回复

看的真的眼花,是不是linux上面下载的jetty版本不一样。

most_rabbitfishes
抓瓦工 不应该啊.另一个项目就能通.maven就是有小许改动.没有改jetty的引用
2 年多之前 回复

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!