摘要: 在使用eclipse + maven + jboss开发过程中,碰到ClassNotFoundException, 原因应该是deployed包中未包含maven的依赖jar。可以通过如下方法把依赖jar包括在war包中。1. 选择项目,右击选择Properties2. 选择Deployment Assembly, 查看Source有没有包括Maven dependency。,如果没有,则点击 Add...3. 选择Java Build Path Entries > Maven Denpendencies4. 最后添加保存。再通过Server运行该项目的时候,exception就不会再出 阅读全文
posted @ 2014-01-20 16:36 Enix 阅读(865) 评论(0) 推荐(0) 编辑