Discuss / Java / 项目运行出现”Error creating bean“

项目运行出现”Error creating bean“

Topic source

https://gitee.com/myproject_ee/spring-web_-jms/

2020-11-14 16:33:26 [main] ERROR o.s.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'messagingService': Unsatisfied dependency expressed through field 'jmsTemplate'; 
nested exception is org.springframework.beans.factory.Unsatisfied
DependencyException: Error creating bean with name 'createJmsTemplate' defined in com.itranswarp.learnjava.AppConfig: Unsatisfied dependency expressed through method 'createJmsTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; 
nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; 
nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	...
	at com.itranswarp.learnjava.AppConfig.main(AppConfig.java:72)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createJmsTemplate' defined in com.itranswarp.learnjava.AppConfig:     Unsatisfied dependency expressed through method 'createJmsTemplate' parameter 0; 
    nested exception is org.springframework.beans.factory.BeanCreation
    Exception: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; nested exception is   org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
    ... 47 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 60 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 74 common frames omitted
Caused by: java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 75 common frames omitted
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 88 common frames omitted
11月 14, 2020 4:33:26 下午 org.apache.catalina.core.ApplicationContext log
严重: Servlet.init() for servlet [dispatcher] threw exception
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'messagingService': Unsatisfied dependency expressed through field 'jmsTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createJmsTemplate' defined in com.itranswarp.learnjava.AppConfig: Unsatisfied dependency expressed through method 'createJmsTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	at org.apache.catalina.startup.Tomcat.start(Tomcat.java:459)
	at com.itranswarp.learnjava.AppConfig.main(AppConfig.java:72)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createJmsTemplate' defined in com.itranswarp.learnjava.AppConfig: Unsatisfied dependency expressed through method 'createJmsTemplate' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 47 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createConnectionFactory' defined in com.itranswarp.learnjava.AppConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
	... 60 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'createConnectionFactory' threw exception; nested exception is java.lang.IllegalStateException: java.lang.RuntimeException: java.lang.NullPointerException: Schema http not found
    ... 75 more

11月 14, 2020 4:33:26 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet [dispatcher] in web application [] threw load() exception
java.lang.NullPointerException: Schema http not found
	at com.itranswarp.learnjava.AppConfig.main(AppConfig.java:72)

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]
java.lang.NullPointerException: Schema http not found
	at com.itranswarp.learnjava.AppConfig.main(AppConfig.java:72)

我还是没找到tomcat启动失败的解决方法?


  • 1

Reply