java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnectionSocketFactory 5
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'hdw...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hdw561' defined in class path resource [applicationContext-Wu-hdw.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnectionSocketFactory
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1011)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:314)
用main方法调用就不抛异常 展开
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1011)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:314)
用main方法调用就不抛异常 展开
1个回答
2017-09-17
展开全部
com.ibm.itim.apps.InitialPlatformContext这个类没有找到是在访问引用到项目的jar出的异常。说明这个jar包有问题,你可以看下这个jar包里有没有这个类,如果没有,那说明这个jar包打包的时候有错,重新检查下jar包的打包过程。
追问
org/apache/http/conn/socket/LayeredConnectionSocketFactory
不是这个类没有找到吗?
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询