daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1、The resource is not on the build path of a Java project

  然后把相应的依赖加入构建路径

2、Type mismatch: cannot convert from Class<SpringJUnit4ClassRunner> to Class<? extends Runner>

  版本过低,spring不支持junit4.5以下的。

3、No grammar constraints (DTD or XML schema) detected for the document
  警告,没关系
4、java.lang.IllegalStateException: Failed to load ApplicationContext
          ested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'
 
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
          schema写成了scheme
5、java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
     因为缺少aopaliance.jar包
6、java.lang.ClassNotFoundException: org.aspectj.weaver.BCException
     aspectjweaver.jar
7、org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
          缺少jar包 cglib-2.1.3.jar 导入cglib-nodep-2.1_3.jar包,或者导入asm-2.2.3.jar和cglib-2.2.jar 
 
 
缺少的包下载:下载
(junit-4.5.jar,cglib-nodep-2.1_3.jar,aopalliance.jar,aspectjweaver.jar)
 
posted on 2014-12-09 09:49  daixinet.com  阅读(7573)  评论(0编辑  收藏  举报