java.lang.NoClassDefFoundError: [Lorg/hibernate/eng

解决办法:

原先:<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">

改成:<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">

时间: 2024-10-21 20:35:52

java.lang.NoClassDefFoundError: [Lorg/hibernate/eng的相关文章

java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition

解决办法: 原先:<bean id="sessionFactory"class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> 改成:<bean id="sessionFactory"class="org.springframework.orm.hibernate4.LocalSessionFactoryBean

java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration解决方法

Autowiring of fields failed; nested exception is...........Error creating bean with name 'siteOperaterFactory': Autowiring of fields fa ...........java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuratio 看开头是以为是创建siteOperaterFactory实例出的错,再看后面,原

java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;

如果你出现类似如下错误 1. Install tomcat7 in my home directory and set up `CATALINA_HOME` environment variable in `.bashrc` 2. Install oracle-java and setup JAVA_HOME in `.bashrc` 3. Install Netbeans 7 and import the project in it. 4. Since, the Netbeans came w

Maven项目java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger报错

本文转载自:http://www.javaweb1024.com/info/894.jspx maven管理的项目,里面已经引入了log4j的包 maven引入如下: <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> <scope>compile</scope>

Caused by: java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

1.错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 14:46:04 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.29 using

java.lang.NoClassDefFoundError: org/hibernate/QueryTimeoutException

在做ssh整合的时候报错:java.lang.NoClassDefFoundError: org/hibernate/QueryTimeoutException org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:644) org.springframework.orm.hibernate3.HibernateAccessor

java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration.setXXXX解决方法

字面上看是 找不到类,我用是Spring版本是3.0.1.导入了Hibernate3.jar,这个包里整合了较早版本的entitymanager, annotation等jar包内容.这个jar包也是spring3.x企业开发实战这本书的extralib里带的,网上搜一下一大把,我反编译了一下这个jar包里的class文件发现是有这个类的,于是网上下载了一个Hibernate3.5-final.jar包含到项目里,问题解决. 版权声明:本文为博主原创文章,未经博主允许不得转载.

sparksql 提交到yarn出现 java.lang.NoClassDefFoundError: Lorg/apache/hadoop/hive/ql/plan/TableDesc

出现这个问题,是因为spark的excutor执行的时候,缺少hive的依赖包,添加依赖包的参数是: --conf "spark.executor.extraClassPath=/opt/cloudera/parcels/CDH-5.3.1-1.cdh5.3.1.p0.5/lib/hive/lib/*" 下面是是一个例子: spark-submit --class com.simple.spark.Test \    --master yarn-client \    --num-ex

Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition

1.错误描述 java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getDeclaredMethods(Class.java:1855)