由于提到的错误,我无法运行我的项目。请告知我如何解决我的错误,我已经在项目中包含了所有依赖项jar,但是当我尝试在Apache tomcat 7服务器上运行项目时仍然低于错误。
enter image description here MQ版本是“ com.ibm.mq.version 7.5.0.2”,相关性附加在附件中。
Jan 08, 2019 12:19:15 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consumer' defined in file [C:\test\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\new2.3.169.1\WEB-INF\classes\META-INF\applicationContext-jms.xml]: Cannot create inner bean 'com.ibm.mq.jms.MQQueueConnectionFactory#61f90a1c' of type [com.ibm.mq.jms.MQQueueConnectionFactory] while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ibm.mq.jms.MQQueueConnectionFactory#61f90a1c' defined in file [C:\test\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\new2.3.169.1\WEB-INF\classes\META-INF\applicationContext-jms.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/ibm/mq/jmqi/JmqiException
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ibm.mq.jms.MQQueueConnectionFactory#61f90a1c' defined in file [C:\test\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\new2.3.169.1\WEB-INF\classes\META-INF\applicationContext-jms.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/ibm/mq/jmqi/JmqiException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
... 24 more
Caused by: java.lang.NoClassDefFoundError: com/ibm/mq/jmqi/JmqiException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager$3.run(ComponentManager.java:1241)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.dynamicLoadClass(ComponentManager.java:1219)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.locateComponents(ComponentManager.java:330)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.findComponent(ComponentManager.java:249)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.access$000(ComponentManager.java:65)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager$2.run(ComponentManager.java:824)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.init(ComponentManager.java:820)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.init(ComponentManager.java:775)
at com.ibm.msg.client.commonservices.componentmanager.ComponentManager.getInstance(ComponentManager.java:1042)
at com.ibm.msg.client.commonservices.CommonServices.<clinit>(CommonServices.java:80)
at com.ibm.msg.client.commonservices.propertystore.PropertyStore.initialize(PropertyStore.java:497)
at com.ibm.msg.client.commonservices.propertystore.PropertyStore.<clinit>(PropertyStore.java:227)
at com.ibm.msg.client.commonservices.trace.Trace.<clinit>(Trace.java:329)
at com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl.<clinit>(JmsReadablePropertyContextImpl.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
... 28 more
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.jmqi.JmqiException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771)
... 53 more