Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

java - disableRegistry() doesn't exist (org.apache.tomcat.util.modeler.Registry)

I updated my project from Spring Boot 1.5.6.RELEASE to 2.2.5.RELEASE and now I get an error claiming that the web server cannot be started because org.apache.tomcat.util.modeler.Registry.disableRegistry() cannot be found. This is a call made by Spring and it's not under my control. I have as dependencies org.apache.tomcat tomcat-servlet-api and org.apache.tomcat tomcat-catalina version 9.0.33, which are pretty new.

The error message itself seems very verbose but I don't really understand what am I supposed to do. I don't think it's my job to tamper with the class path.

"C:Program FilesJetBrainsIntelliJ IDEA 2020.3.1jbrinjava.exe" 

-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:61285,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:UsersTMitk.IntelliJIdea2019.3systemcaptureAgentdebugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:UsersTMitkMEGAhomeEDCccbusseagullsreuseargetclasses;C:UsersTMitk.m2
epositoryiojsonwebtokenjjwt.6.0jjwt-0.6.0.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-data-jpa1.5.6.RELEASEspring-boot-starter-data-jpa-1.5.6.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter2.2.5.RELEASEspring-boot-starter-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot2.2.5.RELEASEspring-boot-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-autoconfigure2.2.5.RELEASEspring-boot-autoconfigure-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-logging2.2.5.RELEASEspring-boot-starter-logging-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositorychqoslogbacklogback-classic1.2.3logback-classic-1.2.3.jar;C:UsersTMitk.m2
epositoryorgapachelogginglog4jlog4j-to-slf4j2.12.1log4j-to-slf4j-2.12.1.jar;C:UsersTMitk.m2
epositoryorgapachelogginglog4jlog4j-api2.12.1log4j-api-2.12.1.jar;C:UsersTMitk.m2
epositoryorgslf4jjul-to-slf4j1.7.30jul-to-slf4j-1.7.30.jar;C:UsersTMitk.m2
epositoryorgyamlsnakeyaml1.25snakeyaml-1.25.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-aop2.2.5.RELEASEspring-boot-starter-aop-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgaspectjaspectjweaver1.9.5aspectjweaver-1.9.5.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-jdbc2.2.5.RELEASEspring-boot-starter-jdbc-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositorycomzaxxerHikariCP3.4.2HikariCP-3.4.2.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-jdbc5.2.4.RELEASEspring-jdbc-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorghibernatehibernate-core5.4.12.Finalhibernate-core-5.4.12.Final.jar;C:UsersTMitk.m2
epositoryorgjbossloggingjboss-logging3.4.1.Finaljboss-logging-3.4.1.Final.jar;C:UsersTMitk.m2
epositoryjavaxpersistencejavax.persistence-api2.2javax.persistence-api-2.2.jar;C:UsersTMitk.m2
epositoryorgjavassistjavassist3.24.0-GAjavassist-3.24.0-GA.jar;C:UsersTMitk.m2
epository
etytebuddyyte-buddy1.10.8yte-buddy-1.10.8.jar;C:UsersTMitk.m2
epositoryantlrantlr2.7.7antlr-2.7.7.jar;C:UsersTMitk.m2
epositoryorgjbossspecjavaxransactionjboss-transaction-api_1.2_spec1.1.1.Finaljboss-transaction-api_1.2_spec-1.1.1.Final.jar;C:UsersTMitk.m2
epositoryorgjbossjandex2.1.1.Finaljandex-2.1.1.Final.jar;C:UsersTMitk.m2
epositorycomfasterxmlclassmate1.5.1classmate-1.5.1.jar;C:UsersTMitk.m2
epositoryorgdom4jdom4j2.1.1dom4j-2.1.1.jar;C:UsersTMitk.m2
epositoryorghibernatecommonhibernate-commons-annotations5.1.0.Finalhibernate-commons-annotations-5.1.0.Final.jar;C:UsersTMitk.m2
epositoryorgglassfishjaxbjaxb-runtime2.3.2jaxb-runtime-2.3.2.jar;C:UsersTMitk.m2
epositoryorgglassfishjaxbxw22.3.2xw2-2.3.2.jar;C:UsersTMitk.m2
epositorycomsunistackistack-commons-runtime3.0.8istack-commons-runtime-3.0.8.jar;C:UsersTMitk.m2
epositoryorgjvnetstaxexstax-ex1.8.1stax-ex-1.8.1.jar;C:UsersTMitk.m2
epositorycomsunxmlfastinfosetFastInfoset1.2.16FastInfoset-1.2.16.jar;C:UsersTMitk.m2
epositoryorghibernatehibernate-entitymanager5.4.12.Finalhibernate-entitymanager-5.4.12.Final.jar;C:UsersTMitk.m2
epositoryjavaxransactionjavax.transaction-api1.3javax.transaction-api-1.3.jar;C:UsersTMitk.m2
epositoryorgspringframeworkdataspring-data-jpa2.2.5.RELEASEspring-data-jpa-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkdataspring-data-commons2.2.5.RELEASEspring-data-commons-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-orm5.2.4.RELEASEspring-orm-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-aspects5.2.4.RELEASEspring-aspects-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-web2.2.5.RELEASEspring-boot-starter-web-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-json2.2.5.RELEASEspring-boot-starter-json-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositorycomfasterxmljacksondatatypejackson-datatype-jdk82.10.2jackson-datatype-jdk8-2.10.2.jar;C:UsersTMitk.m2
epositorycomfasterxmljacksondatatypejackson-datatype-jsr3102.10.2jackson-datatype-jsr310-2.10.2.jar;C:UsersTMitk.m2
epositorycomfasterxmljacksonmodulejackson-module-parameter-names2.10.2jackson-module-parameter-names-2.10.2.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-validation2.2.5.RELEASEspring-boot-starter-validation-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryjakartavalidationjakarta.validation-api2.0.2jakarta.validation-api-2.0.2.jar;C:UsersTMitk.m2
epositoryorghibernatevalidatorhibernate-validator6.0.18.Finalhibernate-validator-6.0.18.Final.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-web5.2.4.RELEASEspring-web-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositorymysqlmysql-connector-java8.0.19mysql-connector-java-8.0.19.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-tomcat2.2.5.RELEASEspring-boot-starter-tomcat-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryjakartaannotationjakarta.annotation-api1.3.5jakarta.annotation-api-1.3.5.jar;C:UsersTMitk.m2
epositoryorgapacheomcatembedomcat-embed-core8.5.37omcat-embed-core-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatembedomcat-embed-el8.5.37omcat-embed-el-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatembedomcat-embed-websocket8.5.37omcat-embed-websocket-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-catalina9.0.22omcat-catalina-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-jsp-api8.5.37omcat-jsp-api-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-el-api8.5.37omcat-el-api-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-juli9.0.22omcat-juli-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-annotations-api8.5.37omcat-annotations-api-8.5.37.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-api9.0.22omcat-api-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-jni9.0.22omcat-jni-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-coyote9.0.22omcat-coyote-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-util9.0.22omcat-util-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-util-scan9.0.22omcat-util-scan-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-jaspic-api9.0.22omcat-jaspic-api-9.0.22.jar;C:UsersTMitk.m2
epositoryorgapacheomcatomcat-servlet-api9.0.33omcat-servlet-api-9.0.33.jar;C:UsersTMitk.m2
epositoryjakartaxmlindjakarta.xml.bind-api2.3.2jakarta.xml.bind-api-2.3.2.jar;C:UsersTMitk.m2
epositoryjakartaactivationjakarta.activation-api1.2.2jakarta.activation-api-1.2.2.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-core5.2.4.RELEASEspring-core-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-jcl5.2.4.RELEASEspring-jcl-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgwebjarswebjars-locator.32webjars-locator-0.32.jar;C:UsersTMitk.m2
epositoryorgwebjarswebjars-locator-core.41webjars-locator-core-0.41.jar;C:UsersTMitk.m2
epositoryiogithubclassgraphclassgraph4.8.44classgraph-4.8.44.jar;C:UsersTMitk.m2
epositoryorgwebjars
pmangular__http2.4.10angular__http-2.4.10.jar;C:UsersTMitk.m2
epositoryorgwebjarssockjs-client1.0.2sockjs-client-1.0.2.jar;C:UsersTMitk.m2
epositoryorgwebjarsstomp-websocket2.3.3stomp-websocket-2.3.3.jar;C:UsersTMitk.m2
epositoryorgwebjarsootstrap3.3.7ootstrap-3.3.7.jar;C:UsersTMitk.m2
epositoryorgwebjarsjquery3.1.0jquery-3.1.0.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-websocket2.2.5.RELEASEspring-boot-starter-websocket-2.2.5.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-messaging5.2.4.RELEASEspring-messaging-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-websocket5.2.4.RELEASEspring-websocket-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgjxlsjxls-poi1.0.11jxls-poi-1.0.11.jar;C:UsersTMitk.m2
epositoryorgjxlsjxls2.8.0jxls-2.8.0.jar;C:UsersTMitk.m2
epositoryorgapachecommonscommons-jexl33.1commons-jexl3-3.1.jar;C:UsersTMitk.m2
epositorycommons-beanutilscommons-beanutils1.9.3commons-beanutils-1.9.3.jar;C:UsersTMitk.m2
epositorycommons-collectionscommons-collections3.2.2commons-collections-3.2.2.jar;C:UsersTMitk.m2
epositorychqoslogbacklogback-core1.2.3logback-core-1.2.3.jar;C:UsersTMitk.m2
epositoryorgapachepoipoi3.14poi-3.14.jar;C:UsersTMitk.m2
epositorycommons-codeccommons-codec1.13commons-codec-1.13.jar;C:UsersTMitk.m2
epositoryorgapachepoipoi-ooxml3.14poi-ooxml-3.14.jar;C:UsersTMitk.m2
epositoryorgapachepoipoi-ooxml-schemas3.14poi-ooxml-schemas-3.14.jar;C:UsersTMitk.m2
epositoryorgapachexmlbeansxmlbeans2.6.0xmlbeans-2.6.0.jar;C:UsersTMitk.m2
epositorystaxstax-api1.0.1stax-api-1.0.1.jar;C:UsersTMitk.m2
epositorycomgithubvirtualdcurvesapi1.03curvesapi-1.03.jar;C:UsersTMitk.m2
epositoryorgapachecommonscommons-jexl2.1.1commons-jexl-2.1.1.jar;C:UsersTMitk.m2
epositoryorgslf4jslf4j-api1.7.30slf4j-api-1.7.30.jar;C:UsersTMitk.m2
epositoryorgslf4jjcl-over-slf4j1.7.30jcl-over-slf4j-1.7.30.jar;C:UsersTMitk.m2
epositoryorgspringframeworkdataspring-data-redis1.6.4.RELEASEspring-data-redis-1.6.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-tx5.2.4.RELEASEspring-tx-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-oxm5.2.4.RELEASEspring-oxm-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-aop5.2.4.RELEASEspring-aop-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-context-support5.2.4.RELEASEspring-context-support-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositorycomitextpdfitextpdf5.5.12itextpdf-5.5.12.jar;C:UsersTMitk.m2
epositoryorgapachepdfboxpdfbox2.0.7pdfbox-2.0.7.jar;C:UsersTMitk.m2
epositoryorgapachepdfboxfontbox2.0.7fontbox-2.0.7.jar;C:UsersTMitk.m2
epositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;C:UsersTMitk.m2
epositorycomlowagieitext2.1.7itext-2.1.7.jar;C:UsersTMitk.m2
epositoryouncycastlecmail-jdk14138cmail-jdk14-138.jar;C:UsersTMitk.m2
epositoryouncycastlecprov-jdk14138cprov-jdk14-138.jar;C:UsersTMitk.m2
epositoryorgouncycastlectsp-jdk141.38ctsp-jdk14-1.38.jar;C:UsersTMitk.m2
epositoryorgouncycastlecprov-jdk141.38cprov-jdk14-1.38.jar;C:UsersTMitk.m2
epositoryorgouncycastlecmail-jdk141.38cmail-jdk14-1.38.jar;C:UsersTMitk.m2
epositoryjoda-timejoda-time2.10.5joda-time-2.10.5.jar;C:UsersTMitk.m2
epositoryorgspringframeworkootspring-boot-starter-mail1.4.3.RELEASEspring-boot-starter-mail-1.4.3.RELEASE.jar;C:UsersTMitk.m2
epositoryorgspringframeworkspring-context5.2.4.RELEASEspring-context-5.2.4.RELEASE.jar;C:UsersTMitk.m2
epositorycomsunmailjavax.mail1.5.6javax.mail-1.5.6.jar;C:UsersTMitk.m2
epositoryjavaxactivationactivation1.1activation-1.1.jar;C:UsersTMitk.m2
epositoryjavaxservletjavax.servlet-api4.0.1javax.servlet-api-4.0.1.jar;C:UsersTMitk.m2
epositoryjavaxser

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Ok, I manage to fix the problem. I manually deleted the org/apache/tomcat/embed directory inside .m2/repository. Then I added as separate dependencies

org.apache.tomcat.embed tomcat-embed-core
org.apache.tomcat.embed tomcat-embed-el
org.apache.tomcat.embed tomcat-embed-jasper
org.apache.tomcat.embed tomcat-embed-websocket

All in version 9.0.33


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...