在单个Tomcat服务器上部署多个Spring Boot应用程序意味着显示异常如何解决呢?

如何解决在单个Tomcat服务器上部署多个Spring Boot应用程序意味着显示异常如何解决呢?

我认为,当您部署多个Spring Boot应用程序时,这些应用程序尝试使用相同的名称在同一jvm上注册到jmx。

  1. 检查此问题以获取解决方案https://github.com/spring-cloud/spring-cloud-config/issues/118

  2. 从DavidBiesack解决方案中复制粘贴(关于application.propertiesapplication.yaml

我可以通过在我的下面定义以下内容来解决此问题 application.properties

spring.application.name=my-app-name
spring.jmx.default-domain=my-app-name

application.yaml

spring:
  application:
    name: my-app-name
  jmx:
    default-domain: my-app-name

解决方法

我在Java应用程序中使用Spring Boot,并使用Tomcat 7进行部署。我试图在显示异常的同一台服务器中部署多个Spring
Boot项目。但是部署一个Spring Boot应用程序,再部署一个Spring应用程序意味着它可以正常工作。

例外是:

2016-01-22 08:05:18.301  INFO 16021 --- [ost-startStop-1] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure

2016-01-22 08:05:18.303  INFO 16021 --- [ost-startStop-1] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]

2016-01-22 08:05:18.312  INFO 16021 --- [ost-startStop-1] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/classes/,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/activation-1.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/antlr-2.7.7.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aopalliance-1.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aopalliance-repackaged-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/apns-0.1.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/asm-all-repackaged-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aspectjrt-1.8.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aspectjweaver-1.8.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bcpkix-jdk15on-1.47.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bcprov-jdk15on-1.47.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bean-validator-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/class-model-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/classmate-1.0.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/com.ibm.jbatch-tck-spi-1.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-beanutils-1.9.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-codec-1.9.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-collections-3.2.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-digester-2.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-fileupload-1.3.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-io-2.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-lang-2.4.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-logging-1.0.4.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-validator-1.3.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/config-types-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/core-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/dom4j-1.6.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hamcrest-core-1.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-commons-annotations-4.0.5.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-core-4.3.10.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-entitymanager-4.3.10.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-jpamodelgen-4.3.10.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-validator-5.1.3.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-api-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-config-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-locator-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-runlevel-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-utils-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-commons-2.4.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-core-client-2.4.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-jms-client-2.4.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-journal-2.4.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-native-2.4.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hsqldb-2.3.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/httpclient-4.5.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/httpcore-4.4.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/imgscalr-lib-4.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-annotations-2.4.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-core-2.4.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-core-asl-1.4.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-databind-2.4.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-jaxrs-base-2.3.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-jaxrs-json-provider-2.3.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-mapper-asl-1.4.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-module-jaxb-annotations-2.3.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jandex-1.1.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javassist-3.18.1-GA.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.annotation-api-1.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.batch-api-1.0.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.inject-1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.inject-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.transaction-api-1.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.ws.rs-api-2.0.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-jms-api_2.0_spec-1.0.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-logging-3.1.3.GA.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-logging-annotations-1.2.0.Beta1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-websocket-api_1.1_spec-1.1.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jcl-over-slf4j-1.7.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-bean-validation-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-client-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-common-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-container-servlet-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-container-servlet-core-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-guava-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-media-json-jackson-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-media-multipart-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-server-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-spring3-2.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jettison-1.2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jgroups-3.3.4.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/json-simple-1.1.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jul-to-slf4j-1.7.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/junit-4.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/log4j-over-slf4j-1.7.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/logback-classic-1.1.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/logback-core-1.1.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mail-1.4.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mimepull-1.9.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mysql-connector-java-5.1.35.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/neo4j-cypher-compiler-2.1-2.1.5.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/netty-all-4.0.13.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/opencsv-2.3.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/osgi-resource-locator-1.0.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/parboiled-core-1.1.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/parboiled-scala_2.10-1.1.6.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/scala-library-2.10.4.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/slf4j-api-1.7.12.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/snakeyaml-1.14.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-aop-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-aspects-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-batch-core-3.0.4.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-batch-infrastructure-3.0.4.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-beans-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-actuator-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-autoconfigure-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-actuator-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-aop-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-batch-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-data-jpa-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-hornetq-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-jdbc-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-jersey-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-logging-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-security-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-undertow-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-web-1.2.5.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-bridge-2.3.0-b10.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-commons-1.0.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-context-1.0.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-security-1.0.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-1.0.3.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-oauth2-1.0.3.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-security-1.0.3.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-core-4.1.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-data-commons-1.9.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-data-jpa-1.7.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-jms-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-messaging-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-orm-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-retry-1.1.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-config-3.2.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-core-3.2.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-crypto-3.2.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-jwt-1.0.3.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-oauth2-2.0.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-web-3.2.7.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-social-core-1.1.2.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tiger-types-1.4.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tomcat-jdbc-8.0.23.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tomcat-juli-8.0.23.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-core-1.1.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-servlet-1.1.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-websockets-jsr-1.1.7.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/validation-api-1.1.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xml-apis-1.0.b2.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xmlpull-1.1.3.1.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xnio-api-3.3.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xnio-nio-3.3.0.Final.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xpp3_min-1.1.4c.jar,file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xstream-1.4.2.jar]

2016-01-22 08:05:18.317  INFO 16021 --- [ost-startStop-1] utoConfigurationReportLoggingInitializer :



Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)





2016-01-22 08:05:18.324 ERROR 16021 --- [ost-startStop-1] o.s.boot.SpringApplication               : Application startup failed



org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager@5edb3f8d] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager

    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:119)

    at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:110)

    at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:69)

    at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5274)

    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:633)

    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)

    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

    at java.util.concurrent.FutureTask.run(FutureTask.java:166)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:724)

Caused by: javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager

    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:678)

    at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)

    ... 25 common frames omitted

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-