watfgzs
2015-05-17 17:27:48
等
spring boot在jdk1.8+tomcat下启动为什么报错?
环境:jdk1.8 + tomcat7.0 + spring boot
一共两个项目,当tomcat下单独放其中任何一个项目的时候都没有问题,但是把两个项目都放到tomcat webapps文件夹下后启动的时候就会出现错误。
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.2.3.RELEASE) 2015-05-17 17:16:29,[localhost-startStop-1] INFO org.springframework.boot.SpringApplication - Starting application on Sc-201504251535 with PID 1348 (D:\apache-tomcat-7.0.53\webapps\SMSService\WEB-INF\lib\spring-boot-1.2.3.RELEASE.jar started by Administrator in D:\apache-tomcat-7.0.53\bin) 2015-05-17 17:16:29,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2aa71c4a: startup date [Sun May 17 17:16:29 CST 2015]; root of context hierarchy 2015-05-17 17:16:30,[localhost-startStop-1] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Overriding bean definition for bean 'beanNameViewResolver': replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]] 2015-05-17 17:16:30,[localhost-startStop-1] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.3.Final 2015-05-17 17:16:31,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'jdbcConnectionSettings' of type [class com.vjifen118.sms.configure.JdbcConnectionSettings$$EnhancerBySpringCGLIB$$12361169] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:31,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'databaseConfig' of type [class com.vjifen118.sms.configure.DatabaseConfig$$EnhancerBySpringCGLIB$$86b8ef8a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:31,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'dataSource' of type [class com.alibaba.druid.pool.DruidDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'sqlSessionFactory' of type [class org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'SMSTypeMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'SMSMessageMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'SMSCodeMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'baseDao' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$cca5bbae] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'transactionAttributeSource' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'transactionInterceptor' of type [class org.springframework.transaction.interceptor.TransactionInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SMSService] - Initializing Spring embedded WebApplicationContext 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 2948 ms 2015-05-17 17:16:32,[localhost-startStop-1] INFO org.springframework.boot.autoconfigure.websocket.TomcatWebSocketContainerCustomizer - NonEmbeddedServletContainerFactory detected. Websockets support should be native so this normally is not a problem. 2015-05-17 17:16:33,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/] 2015-05-17 17:16:33,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.FilterRegistrationBean - Mapping filter: 'errorPageFilter' to: [/*] 2015-05-17 17:16:33,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*] 2015-05-17 17:16:33,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2aa71c4a: startup date [Sun May 17 17:16:29 CST 2015]; root of context hierarchy 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/sms/verifySMSCode],methods=[POST],params=[],headers=[],consumes=[application/json],produces=[application/json],custom=[]}" onto public com.vjifen118.sms.vo.CommonResponse com.vjifen118.sms.web.SMSManager.verifySMSCode(com.vjifen118.sms.vo.CommonRequest<com.vjifen118.sms.domain.SMSCode>) throws java.lang.Exception 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/sms/sendMessage],methods=[POST],params=[],headers=[],consumes=[application/json],produces=[application/json],custom=[]}" onto public com.vjifen118.sms.vo.CommonResponse com.vjifen118.sms.web.SMSManager.sendMessage(com.vjifen118.sms.vo.CommonRequest<com.vjifen118.sms.domain.SMSMessage>) throws java.lang.Exception 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/sms/getSMSType],methods=[POST],params=[],headers=[],consumes=[application/json],produces=[application/json],custom=[]}" onto public com.vjifen118.sms.vo.response.SMSTypeResponse com.vjifen118.sms.web.SMSManager.getSMSType(com.vjifen118.sms.vo.CommonRequest<java.lang.Integer>) throws java.lang.Exception 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/sms/createCode],methods=[POST],params=[],headers=[],consumes=[application/json],produces=[application/json],custom=[]}" onto public com.vjifen118.sms.vo.CommonResponse com.vjifen118.sms.web.SMSManager.createCode(com.vjifen118.sms.vo.CommonRequest<com.vjifen118.sms.domain.SMSCode>) throws java.lang.Exception 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/error],methods=[],params=[],headers=[],consumes=[],produces=[text/html],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest) 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2015-05-17 17:16:34,[localhost-startStop-1] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Registering beans for JMX exposure on startup 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'dataSource' has been autodetected for JMX exposure 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource] 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.boot.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/classes/, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/aopalliance-1.0.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/aspectjrt-1.8.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/aspectjweaver-1.8.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/classmate-1.0.0.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-beanutils-1.9.2.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-codec-1.2.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-collections-3.2.1.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-dbutils-1.6.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-httpclient-3.1.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-io-2.4.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-lang-2.6.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/commons-logging-1.0.4.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/druid-1.0.9.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/fastjson-1.1.26.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/hibernate-validator-5.1.3.Final.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jackson-annotations-2.4.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jackson-core-2.4.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jackson-databind-2.4.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jboss-logging-3.1.3.GA.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jcl-over-slf4j-1.7.11.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/joda-time-2.5.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jodd-3.3.8.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/jul-to-slf4j-1.7.11.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/log4j-1.2.17.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/mybatis-3.2.3.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/mybatis-spring-1.2.2.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/mysql-connector-java-5.1.34.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/nutz-1.b.50.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/persistence-api-1.0.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/slf4j-api-1.7.11.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/slf4j-log4j12-1.7.11.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/snakeyaml-1.14.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-aop-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-beans-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-autoconfigure-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-starter-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-starter-aop-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-starter-jdbc-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-starter-log4j-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-boot-starter-web-1.2.3.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-core-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/tomcat-jdbc-8.0.20.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/tomcat-juli-8.0.20.jar, file:/D:/apache-tomcat-7.0.53/webapps/SMSService/WEB-INF/lib/validation-api-1.1.0.Final.jar] 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer - Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug) 2015-05-17 17:16:35,[localhost-startStop-1] ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [{ CreateTime:"2015-05-17 17:16:31", ActiveCount:0, PoolingCount:0, CreateCount:0, DestroyCount:0, CloseCount:0, ConnectCount:0, Connections:[ ] } [ ]] with key 'dataSource'; nested exception is javax.management.InstanceAlreadyExistsException: com.alibaba.druid.pool:name=dataSource,type=DruidDataSource at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550) at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) at org.springframework.boot.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:117) at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:108) at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:68) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5456) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: javax.management.InstanceAlreadyExistsException: com.alibaba.druid.pool:name=dataSource,type=DruidDataSource at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:195) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:670) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ... 24 more 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2aa71c4a: startup date [Sun May 17 17:16:29 CST 2015]; root of context hierarchy 2015-05-17 17:16:35,[localhost-startStop-1] WARN org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Exception thrown from LifecycleProcessor on context close java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2aa71c4a: startup date [Sun May 17 17:16:29 CST 2015]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:877) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.doClose(EmbeddedWebApplicationContext.java:150) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:836) at org.springframework.boot.SpringApplication.run(SpringApplication.java:342) at org.springframework.boot.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:117) at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:108) at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:68) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5456) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2015-05-17 17:16:35,[localhost-startStop-1] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown
评论
所有回答列表(2)
- 等 最代码怎么获取牛币啊?
- 完 谁来告诉我最代码上线的时间,答对者给5牛币,先来先得
- 等 牛友们,大家好,你们做程序员多久了?现在还好吗?
- 完 在微信打开的页面里进行app下载
- 等 最代码2014年欢乐聚声会
- 完 mysql如何查询表数据并且对3个字段降序的SQL?
- 完 最代码牛币机制改革
- 完 成功的在bae上使用了自定义运行环境 jetty+nginx的组合,大家对jetty+nginx优化有哪些心得?
- 完 进来分享一下各位牛牛是如何加入最代码大家庭的?
- 等 为什么java BufferedImage类处理大图直接抛出内存溢出的异常?
- 等 最代码是否开发手机app客户端?
- 完 java程序员学习哪些java的技术?java有哪些框架?都能做哪方面的开发?
- 等 php格式网页文件怎么运行?
- 等 Java volatile值获取的问题
- 等 前端vue,拦截了登录后台后,返回的token,requests拦截token,但是发送请求的时候,就出现跨越异常
- 等 大专本科计算机科班怎么找到Java工作?
- 等 eclipse怎么把三个java swing游戏项目合成一个项目?
- 完 伙伴们,大家都有什么好的解压方式么,分享一下~
- 完 三四线城市,6、7k,运维工作,索然无味,想去辞职上培训,各位牛牛有什么建议嘛
- 等 jsp页面输入中文变成问号
- 等 JPA在线上运行一段时间后报错Caused by: java.lang.IncompatibleClassChangeError: null
- 等 PHP 这个规则用preg_match_all怎么写
- 等 大佬们,有没有知道Alfresco如何配置LDAP登录呢?
- 等 php的install目录是框架带的吗?
相关问答
最近浏览
是数据库 LV3
2021年2月6日
CSS199669 LV25
2020年7月23日
zsh1994721
2019年9月20日
暂无贡献等级
3306907224 LV1
2019年9月16日
PanJeesite LV5
2019年9月7日
白某某dd LV11
2019年8月15日
小浩浩 LV1
2019年8月7日
骄傲嘚少年 LV1
2019年7月21日
guanlihui LV1
2019年7月11日
sky丶小十 LV7
2019年7月3日