win10 nacos ERROR Error starting Tomcat context. Exception

created at 06-19-2022 views: 3

error

ERROR Error starting Tomcat context. Exception: 
org.springframework.beans.factory.BeanCreationException. Message: 
Error creating bean with name 'trafficReviseFilterRegistration' 
defined in class path resource [com/alibaba/nacos/naming/web/NamingConfig.class]: 
Bean instantiation via factory method failed; 
nested exception is org.springframework.beans.BeanInstantiationException

I switched to the F:\nacos\bin directory, opened the cmd window, and executed the command startup.cmd -m standalone, this is a stand-alone startup, no need to manually change the configuration file, but still an error is reported.

  • case1: Many people say to change the configuration of that cluster, maybe they just double-click startup.cmd.
  • case2: the path has a non-English name, or the path is too deep.
  • case3: The environment variable is not configured correctly.
  • case4: the JDK version is wrong, you need to use the jdk 64 bit version. I switched the jdk version and it worked.
created at:06-19-2022
edited at: 06-19-2022: