MyEclipse 各种报错原因

1.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor 
缺少asm-3.3.jar 
2.java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor 
缺少asm-commons-3.3.jar 
3.java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener 
缺少spring-web-3.2.3.RELEASE.jar 
4.java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 
缺少spring-web-3.2.3.RELEASE.jar 
5.java.lang.ClassNotFoundException: org.springframework.web.context.request.RequestContextListener 
缺少spring-web-3.2.3.RELEASE.jar 
6.java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener 
缺少spring-web-3.2.3.RELEASE.jar 
7.java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext 
缺少spring-context-3.2.3.RELEASE.jar 
8.Caused by: java.lang.ClassNotFoundException: org.springframework.beans.FatalBeanException 
缺少spring-beans-3.2.3.RELEASE.jar 
9.Caused by: java.lang.ClassNotFoundException: org.springframework.core.NestedRuntimeException 
缺少spring-core-3.2.3.RELEASE.jar 
10.java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator 
缺少log4j-1.2.16.jar 
11. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx] 
缺少spring-tx-3.2.3.RELEASE.jar 
12.org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [resource/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor 
缺少aopalliance-1.0.jar 
13.   org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop] 
缺少spring-aop-3.2.3.RELEASE.jar 
14.java.lang.NoClassDefFoundError: org/springframework/expression/PropertyAccessor 
缺少spring-expression-3.2.3.RELEASE.jar 
15. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource‘ defined in class path resource [resource/applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0‘: Cannot resolve reference to bean ‘pointcut‘ while setting bean property ‘pointcut‘; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pointcut‘: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException 
缺少spring-aspects-3.2.3.RELEASE.jar、aspectjweaver.jar、aspectjrt.jar 
16. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate4.LocalSessionFactoryBean] for bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean 
缺少spring-orm-3.2.3.RELEASE.jar 
17. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
缺少hibernate-commons-annotations-4.0.2.Final.jar 
18. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException 
缺少dom4j-1.6.1.jar 
19.org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/jboss/logging/BasicLogger 
缺少jboss-logging-3.1.1.GA.jar 
20.   org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/SystemException 
缺少jboss-transaction-api_1.1_spec-1.0.1.Final.jar 
21.   org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/persistence/Entity 
缺少hibernate-jpa-2.0-api-1.0.1.Final.jar 
22. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, please either disable second level cache or set correct region factory class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, is available in the classpath). 
hibernate.cfg.xml配置中需添加: 
<property name="hibernate.cache.use_second_level_cache">true</property> 
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</property> 
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
23. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory 
缺少slf4j-api-1.6.1.jar 
24. org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionManager‘ defined in class path resource [resource/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy 
缺少spring-jdbc-3.2.3.RELEASE.jar 
25. org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.cjjt.dao.impl.BaseDaoImpl] for bean with name ‘baseDao‘ defined in class path resource [resource/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.cjjt.dao.impl.BaseDaoImpl 
26.Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location] 
缺少struts2-spring-plugin-2.3.15.jar 
27.org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 
28.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 
问题及解决办法:缺少commons-logging.jar,需要在lib中添加。 
29.NoClassDefFoundError: org/logicalcobwebs/cglib/core/NamingPolicy 
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jar和proxool-cglib.jar 
30.org.logicalcobwebs.proxool.ShutdownHook - Problem calling "get cause" on IllegalStateException. 
问题及解决办法:默认hibernate4下连接池jar包为较老的proxool-0.8.3.jar。需要换成proxool-0.9.1.jar和proxool-cglib.jar

时间: 2024-10-22 10:50:45

MyEclipse 各种报错原因的相关文章

Myeclipse项目报错,但不影响结果ERROR: JDWP Unable to get JNI 1.2 environment, jvm-&gt;GetEnv() return code = -2

§∩﹏∩ ╭ ︿︿ ╮╭─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─╮ ╰──╯ <注明:转载请注明来自 ?:冷希尔 ColdHill   http://blog.csdn.net/mini0520│ ╰○○╯  ╰─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─☆─★─╯ 错误等级:5(10级制). 错误提示:Myeclipse项目报错,但不影响结果ERROR: JDWP Unable to get JNI 1.2 env

empty(trim($str))报错原因

最近写程序的时候发现一个这样的问题,一个if判断如下: [php] if (!empty(trim($ch_url))) { ... } [/php] 执行程序报出如下错误: [code] Fatal error: Can't use function return value in write context in ... [/code] 调整为如下形式则不报错误 [php] $ch_url = trim($ch_url); if (!empty($ch_url)) { ... } [/php

Oracle EBS-SQL (MRP-7):检查MRP计划运行报错原因之超大数据查询2.sql

The following scripts can be used to check for huge line numbers: -- PO Requisitions select * from PO_REQUISITION_LINES_ALL where LINE_NUM > 1000000000; -- PO Lines select * from PO_LINES_ALL where LINE_NUM > 1000000000; -- Receiving Supply SELECT *

Apache重启报错原因

#Apache重启报错原因 [[email protected] /]# service httpd restart Stopping httpd:                                            [  OK  ] Starting httpd: httpd: apr_sockaddr_info_get() failed for www.example.com httpd: Could not reliably determine the server's 

VMware报错“原因: 未能锁定文件”,打开失败

原文:http://jingyan.baidu.com/article/425e69e6bf64dbbe15fc16fe.html VMware打开复制的虚拟机,报错"原因: 未能锁定文件",打开失败,可能的原因是复制虚拟机时,被复制的虚拟机未关机或未挂起或未正常关闭,磁盘锁文件未自动删除,下次启动虚拟机时就会弹出上面的那个错误. Vmware为了防止有多虚拟机共用一个虚拟磁盘造成数据的丢失和性能的削弱,每次启动Vmware时会给虚拟磁盘加一个磁盘锁(后缀为.lck的那个文件),对虚拟

Myeclipse启动报错: Invalid &#39;log4jConfigLocation&#39; parameter

java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist 解决办法:勾选Enable project specific settings: 在Libraries 中: Myeclipse启动报错: Invalid 'log

今天我的jupyter notebook打不开了,报错原因&#39;No module named &#39;zmq.eventloop&#39;

今天我的jupyter notebook打不开了,就是那种一打开出现黑色界面就退出的那种,惊恐爬上了我的面颊. 找了一个小时,试了好几种办法(包括别人说的什么把属性里面后面的%%的去掉)终究无果 打开anaconda prompt,输入jupyter notebook 立即报错 Traceback (most recent call last): File "e:\anaconda\anaconda2\lib\runpy.py", line 193, in _run_module_as

eclipse robovm插件报错原因及解决方法

在eclipse上安装robovm插件经常会报错. 大多数时候是由于没有使用JDK7的原因,很多时候由于mac os中自带的jdk6干扰,即使在mac中设置了JAVA_HOME为JDK7的路径robovm插件也不好用,这时候就需要在eclipse启动时指定jdk7的java.exe来启动eclipse本身.操作过程如下: 1:切换到eclipse路径下. 2:执行命令:./eclipse -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/

myeclipse js报错

Myeclipse 版本10.1 加载的js报错,解决方法: window -> preferences -> myeclipse -> validation,在右边下拉框找到 JavaScript validation for js files 将其勾选取消,然后 apply, 然后保存 . 这样项目中js就不会报错了.(此方法已验证可行!)