首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

求解决啊 郁闷死了 一下午都没弄好 急

2013-09-11 
求解决啊 郁闷死了 一下午都没弄好 在线等 急!!!!Java code15:44:02,718 ERROR ContextLoader:215 - Conte

求解决啊 郁闷死了 一下午都没弄好 在线等 急!!!!

Java code
15:44:02,718 ERROR ContextLoader:215 - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\TDDOWNLOAD\apache-tomcat-6.0.30\apache-tomcat-6.0.30\webapps\dayDate\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.component.PojoComponentTuplizer]    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)    at org.apache.catalina.core.StandardService.start(StandardService.java:525)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)    at org.apache.catalina.startup.Catalina.start(Catalina.java:585)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer  



[解决办法]
看一下你的applicationContext.xml
[解决办法]
请将error全部贴全。
[解决办法]
几个问题。
1。LZ的tomcat Home是D:\TDDOWNLOAD\apache-tomcat-6.0.30\apache-tomcat-6.0.30,?
2。Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer  后面的错误能提供一下吗?
3。试试下面的方法
 在用到的映射文件中找到 根标签hibernate-mapping,加入auto-import="true",如下:
<hibernate-mapping auto-import="true" package="com.liferay.portlet.tracking.bean"> 

[解决办法]
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory'
省略。。
Caused by: XXX
省略。。
Caused by: XXX

最主要是Caused by的内容。

[解决办法]
hibernate.cfg.xml
[解决办法]
Caused by: java.lang.ClassNotFoundException: ItemId
这是个什么东西/

[解决办法]
hibernate反射生成的有问题吧
[解决办法]
我感觉你这个表之间应该有关系吧
[解决办法]
mapping resource="com/cps/hs/manage/Item.hbm.xml" 里面有问题吧。是不是有ItemId个这属性的。
[解决办法]
http://stackoverflow.com/questions/921239/hibernate-propertynotfoundexception-could-not-find-a-getter-for


Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for fkpicode in class com.cps.hs.action.manage.Item

Item.java
有没有setFkpicode方法 

热点排行