首页 新闻 会员 周边

maven不能加载对应的class

0
[待解决问题]

我添加了activemq的依赖,而且配置文件写的也没问题,但是已启动项目,就不能加载对应的类.

类似于这种:

Caused by: java.lang.ClassNotFoundException: org.springframework.jms.connection.SingleConnectionFactory

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jms.connection.SingleConnectionFactory] for bean with name 'connectionFactory' defined in file [D:\taotao\taotao-parent\taotao-item-web\target\classes\spring\applicationContext-activemq.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jms.connection.SingleConnectionFactory

问题补充:

尝试了maven updateproject 不好使

little_sun的主页 little_sun | 菜鸟二级 | 园豆:208
提问于:2017-03-06 17:02
< >
分享
所有回答(2)
1

额,少依赖的spring的jms包 哎............

little_sun | 园豆:208 (菜鸟二级) | 2017-03-06 17:23
0

你先看你maven dependencies到底有没有加载进来这个包org.springframework.jms.connection.SingleConnectionFactory
我遇到org.springframework.web.context.ContextLoaderListener这个包找不到的问题,但是明明是有这个包的

我知道可能是jar包冲突,或者少了些别的包之类的原因,但是到现在还没解决呢……

让我发会呆 | 园豆:2929 (老鸟四级) | 2017-03-06 17:29
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册