- 浏览: 1524886 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (525)
- SEO (16)
- JAVA-EE-Hibernate (6)
- JAVA-EE-Struts (29)
- JAVA-EE-Spring (15)
- Linux (37)
- JAVA-SE (29)
- NetWork (1)
- CMS (14)
- Semantic Research (3)
- RIA-Flex (0)
- Ajax-Extjs (4)
- Ajax-Jquery (1)
- www.godaddy.com (0)
- SSH (34)
- JavaScript (6)
- SoftwareEngineer (9)
- CMMI (0)
- IDE-Myeclipse (3)
- PHP (1)
- Algorithm (3)
- C/C++ (18)
- Concept&Items (2)
- Useful WebSite (1)
- ApacheServer (2)
- CodeReading (1)
- Socket (2)
- UML (10)
- PowerDesigner (1)
- Repository (19)
- MySQL (3)
- SqlServer (0)
- Society (1)
- Tomcat (7)
- WebService (5)
- JBoss (1)
- FCKeditor (1)
- PS/DW/CD/FW (0)
- DesignPattern (11)
- WebSite_Security (1)
- WordPress (5)
- WebConstruction (3)
- XML|XSD (7)
- Android (0)
- Project-In-Action (9)
- DatabaseDesign (3)
- taglib (7)
- DIV+CSS (10)
- Silverlight (52)
- JSON (7)
- VC++ (8)
- C# (8)
- LINQ (1)
- WCF&SOA (5)
- .NET (20)
- SOA (1)
- Mashup (2)
- RegEx (6)
- Psychology (5)
- Stock (1)
- Google (2)
- Interview (4)
- HTML5 (1)
- Marketing (4)
- Vaadin (2)
- Agile (2)
- Apache-common (6)
- ANTLR (0)
- REST (1)
- HtmlAnalysis (18)
- csv-export (3)
- Nucth (3)
- Xpath (1)
- Velocity (6)
- ASP.NET (9)
- Product (2)
- CSS (1)
最新评论
-
lt26w:
理解成门面模式应该比较容易明白吧
FacadePattern-Java代码实例讲解 -
lt26w:
看下面的例子比较明白.
FacadePattern-Java代码实例讲解 -
javaloverkehui:
这也叫文档,别逗我行吗,也就自己看看。
HtmlCleaner API -
SE_XiaoFeng:
至少也应该写个注释吧。
HtmlCleaner API -
jfzshandong:
...
org.springframework.web.filter.CharacterEncodingFilter 配置
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTup
- 博客分类:
- SSH
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionfactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
缺少 javassist.jar
下载地址:http://jboss.org/javassist/downloads/
最近一直在看java的三大开源框架(Struts、Spring、Hibernate)其中遇到点问题,在下费了好大劲才找到原因,所以把我的错误贴出来供大家分享,以至有同样错误的网友有个参考。
好,下面则是开篇:
我在做Spring和Hibernate整合的时候报了以下的错误:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in file […….xml]: Invocation of
init method failed; nested exception is
org.hibernate.HibernateException: Unable to instantiate default
tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
在百度、Google上都没找到解决方法。可能运气不好,百度只有几条结果。其中只有一条有个解决方法:
缺少 javassist.jar。索性下载它并添加进lib,结果还是不行。其它的根本就是只有提问没有回答。Google搜索的结果到挻多但中文的大多跟百度的结果差不多,有些英文的看不太懂。后来索性自己找问题。
我逐步的缩减项目把项目精减到最小,最后终于发现hibernate.cfg.xml里的mapping项目中有一条.hbm.xml文件配置写错了,暂时把它删除了,调试程序。问题解决。
这篇文章写得有点长,解决方法技术含量并不高,主要强调的是自己解决问题的思路及步骤,希望能给有同样问题的朋友一点帮助。
评论
请问有别的解决方法吗?
发表评论
-
java.lang.ClassCastException: java.lang.Integer
2010-01-09 12:55 1387java.lang.ClassCastException: j ... -
Error:org.springframework.web.context.ContextLoaderListener
2010-01-06 21:17 8688Error con ... -
Error configuring application listener of class org.springframework.web.context.
2010-01-06 21:11 20119急!!tomcat启动报错:Error configuring ... -
Cannot find bean org.apache.struts.taglib.html.BEAN
2009-12-29 14:29 1305Cannot find bean org.apache.str ... -
attempt to create delete event with null entity
2009-12-29 11:07 4688attempt to create delete event ... -
懒加载异常org.hibernate.LazyInitializationException: could not initialize proxy - no
2009-12-28 20:44 20208错误页面提示 could n ... -
getHibernateTemplate.load() 和get()之间的区别
2009-12-28 20:16 18741. getHibernateTemplate.load() ... -
getSession()与getHibernateTemplate()区别
2009-12-28 20:13 2566getSession()与getHibernateTempla ... -
使用Hibernate持久层 --- 2 出现的问题与解决方法总结
2009-12-28 15:04 1208使用Hibernate持久层 --- 2 出现的问题与解决方法 ... -
java.lang.NullPointerException DAO
2009-12-28 15:02 1857~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... -
JSTL1.1中要用的jar--standard.jar jstl.jar
2009-12-09 00:35 4077gg -
Jsessionid
2009-12-07 16:22 1288(1) 这是一个 ... -
spring有三种启动方式,
2009-12-07 15:21 2472spring有三种启动方式,使用 ... -
ContextLoaderListener VS. ContextLoaderServlet
2009-12-07 15:20 3555一旦ContextLoaderServlet或Cont ... -
ERRORcheck whether you have multiple ContextLoader* definitions in your web.xml!
2009-12-07 15:17 6273ERROR:check whether you have mu ... -
从tomcat 迁移到 WebSphere 经验总结(修改)
2009-12-07 15:08 2456从tomcat 迁移到 WebSphere ... -
CGlib & asm
2009-12-07 15:01 2722缺少包出现的错误信息:cglib-2.1.3.jar CGL ... -
asm.jar的冲突问题
2009-12-07 14:53 1493No configuration found. Confi ... -
异常:ERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed..
2009-12-07 14:25 1814用MyEclipse6.0写了一个spri ... -
ssh 整合时报错java.lang.reflect.InvocationTargetException... 但是能运行起[
2009-12-07 14:17 11851内容太长(多次发): [Tomcat]2007-09-0 ...
相关推荐
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 通过控制台的...
然而,在使用 Hibernate 进行数据库操作时,经常会遇到 "No Hibernate Session bound to thread" 的错误信息。本文将详细介绍该错误的解决方案。 错误原因 "No Hibernate Session bound to thread" 错误信息通常是...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] at org.hibernate.service.internal....
解决目前memcached不支持hibernate4的缺陷,hibernate配置<property name="hibernate.cache.region.factory_class">com.googlecode.hibernate.memcached.MemcachedRegionFactory</property>
WebService是一种网络服务技术,允许在不同操作系统和编程语言之间实现应用程序的通信。Axis2是一个高效、模块化的Web服务引擎,用于构建和部署Web服务和客户端。Axis2不仅支持SOAP协议,还支持REST风格的服务,同时...
org.springframework.orm.hibernate3.HibernateQueryException:ClassNotFoundException:org.hibernate.hql.ast.HqlToken [SELECT ztId,ztCname FROM AzyZtEntity WHERE ztEflg=0]; nested exception is org....
在软件开发领域,XML(Extensible Markup Language)作为一种数据交换格式,被广泛应用于配置文件、数据存储和网络通信等领域。Eclipse作为一款强大的开源集成开发环境(IDE),提供了丰富的插件支持,以增强其功能...
<br> 测试代码完成测试 <br> 报错:Cannot instantiate class: org.jnp.interfaces.NamingContextFactory <br> 添加 引用 <br>继续报错是因为JNDI访问名称错误,也是用了原来的那个了。哈哈。...
在Android系统中,BroadcastReceiver(广播接收者)是一种重要的组件,用于监听系统或应用程序发出的各种广播事件,并在接收到广播时执行相应的操作。... ...这种模式适合那些只在特定组件运行时需要接收广播的情况,能够...
在本篇文章中,我们将深入探讨如何解决在MyEclipse环境下开发Struts应用时遇到的一个常见问题:“org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.core.Queue]: Factory method 'clientQueue' threw exception; nested exception is org....
错误表现:在初始化SessionFactory时,可能出现“org.hibernate.HibernateException: Could not instantiate dialect class”等异常,这通常是因为Hibernate配置文件中的dialect设置不正确或对应的JDBC驱动未引入。...
dpoll ... 最初创建于 安装 $ python3 -m venv dpoll-env $ tmp source dpoll-env/bin/activate ...$ cd dpoll.xyz $ pip install -r requirements.txt $ touch dpoll/base/settings.py dpoll/base/local_settings.py ...
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 解决方法 ...
一、hive版本验证,FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata....解决方法 ...
上手 <!-- maven导入 --> <groupId>cloud.tianai.captcha <artifactId>tianai-captcha-springboot-starter <version>1.4.1 注解版风格 package cloud.tianai.captcha....import org.springframework.web.bind.ann
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop] Offending resource: class path resource [beans.xml] at org....
<bean id="axisConfig" class="org.apache.axis2.context.ConfigurationContextFactory" factory-method="createConfigurationContextFromLocation"> <constructor-arg value="file:/path/to/axis2.xml"/> ``` ...
stdin, stdout, stderr = ssh.exec_command('command_to_execute') output = stdout.read().decode() error = stderr.read().decode() ssh.close() ``` 在这个例子中,我们创建了一个`SSHClient`实例,但只...