连接tomcat时候出现的这个错误怎么处理啊。

问题描述

org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinServletContextresource[/WEB-INF/applicationContext.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.MappingException:Associationreferencesunmappedclass:com.smscenter.model.content.MessageSendatorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4342)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:578)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:org.hibernate.MappingException:Associationreferencesunmappedclass:com.smscenter.model.content.MessageSendatorg.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2370)atorg.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2652)atorg.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)atorg.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)atorg.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)atorg.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:673)atorg.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)...39more2011-3-309:52:22org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sessionFactory'definedinServletContextresource[/WEB-INF/applicationContext.xml]:Invocationofinitmethodfailed;nestedexceptionisorg.hibernate.MappingException:Associationreferencesunmappedclass:com.smscenter.model.content.MessageSendatorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)atorg.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4342)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:578)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

解决方案

解决方案二:
nestedexceptionisorg.hibernate.MappingException:Associationreferencesunmappedclass:com.smscenter.model.content.MessageSend
解决方案三:
可是我有这个配置文件啊
解决方案四:
配置文件贴出来
解决方案五:
<?xmlversion="1.0"encoding="utf-8"?><!DOCTYPEhibernate-mappingPUBLIC"-//Hibernate/HibernateMappingDTD3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><hibernate-mapping><classname="com.sms.model.content.MessageSend"table="SMS_MESSAGE_SEND"><idname="id"type="java.lang.Long"><columnname="ID"/><generatorclass="identity"/></id><propertyname="userPhoneNum"type="java.lang.String"><columnname="USER_PHONE_NUM"length="100"><comment>用户号码</comment></column></property><propertyname="msgContent"type="java.lang.String"><columnname="MSG_CONTENT"length="1000"><comment>短信内容</comment></column></property><propertyname="msgLength"type="java.lang.Integer"><columnname="MSG_LENGTH"><comment>短信长度</comment></column></property><propertyname="smsNum"type="java.lang.Integer"><columnname="SMS_NUM"><comment>短信拆分总条数</comment></column></property><propertyname="checkStatus"type="java.lang.Integer"><columnname="CHECK_STATUS"><comment>状态:0:未审1:已审2:不审3:失败</comment></column></property><propertyname="isSend"type="java.lang.Integer"><columnname="IS_SEND"><comment>发送状态:0:未发送1:已发送</comment></column></property><propertyname="numPart"type="java.lang.Integer"><columnname="NUM_PART"><comment>运营商:1:移动2:电信3:联通4:小灵通</comment></column></property><propertyname="sendDate"type="java.util.Date"><columnname="SEND_DATE"><comment>发送时间</comment></column></property><propertyname="createDate"type="java.util.Date"><columnname="CREATE_DATE"><comment>创建时间</comment></column></property><propertyname="checkDate"type="java.util.Date"><columnname="CHECK_DATE"><comment>审核时间</comment></column></property><!--审核人--><many-to-onename="checker"class="com.sms.model.admin.Manager"column="CHECKER"lazy="false"/><!--客户--><many-to-onename="manager"class="com.sms.model.admin.Manager"column="USER_ID"lazy="false"/></class></hibernate-mapping>
解决方案六:
有哪位好心人帮帮忙啊谢谢你们了哈
解决方案七:
com.smscenter.model.content.MessageSend(报错信息)com.sms.model.content.MessageSend(配置文件)你确定没错?
解决方案八:
没有啊我现在什么也看不出来了。眼晕了
解决方案九:
哪位高手出手相助一下。本人很急。等着急用,谢谢了啊

时间: 2024-12-03 18:00:33

连接tomcat时候出现的这个错误怎么处理啊。的相关文章

手机连接tomcat服务器的问题

问题描述 手机连接tomcat服务器的问题 用的是家里的路由器,手机ip是192.168.1.104,电脑是192.168.1.105,在电脑上面输入http://192.168.1.105:8080是可以的,但是在手机上面就不可以了. 解决方案 已经解决啦-- 防火墙那边的问题 解决方案二: 手机浏览器打不开?换个手机浏览器app呢. 打不开时页面提示什么错误信息,要分析一下. 解决方案三: 因为手机和电脑不一样,或者换个手机浏览器呢,看一下有用没,如果还是这样就要分析一下 解决方案四: 因为

安卓应用开发-关于安卓开发,连接tomcat抛出exception

问题描述 关于安卓开发,连接tomcat抛出exception 初学者,自己写的安卓程序,用json连接tomcat,mysql数据库,结果运行时候抛出异常,求帮助! 下面是抛出的异常, 在控制台打印的结果显示除了方括号以外根本没有信息返回 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956

provider 0x80004005-asp连接oracle Provider (0x80004005) 未指定的错误

问题描述 asp连接oracle Provider (0x80004005) 未指定的错误 各位大神,小妹这次被迫做个asp的东西,是拿的韩国人做的蹩脚程序,数据库要求改成oracle,改了之后一堆问题,逐个解决中,然后就很不幸的卡在这里了,已经在网上百度了一下午了,很多方法都试过了 . 最大的疑惑就是为什么前面打开登录网页没有问题,登录进去就这样了,跪求大神指点. 报错:Provider (0x80004005) 未指定的错误 /index.asp, line 148 连接代码 Set db

myeclipse连接tomcat起不来

问题描述 myeclipse连接tomcat起不来 七月 25, 2015 12:38:13 下午 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.4.8. 七月 25, 2015 12:38:13 下午 org.apache.catalina.core.AprLifecycleListen

拦截器-tomcat启动时出现这种错误

问题描述 tomcat启动时出现这种错误 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/Program%20Files/apache-tomcat-6.0.29/webapps/struts2.myeclipse.bak/WEB-INF/lib/struts2-spring-plugin-2.3.20.jar!/struts-plugin.xml:29:132 at

oledb 连接串的格式-Excel导入数据库的 OleDb 连接串的格式,发生错误:找不到可安装的 ISAM。

问题描述 Excel导入数据库的 OleDb 连接串的格式,发生错误:找不到可安装的 ISAM. Excel导入数据库的 OleDb 连接串的格式,发生错误:找不到可安装的 ISAM. FILEname = "EXCEL" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + up[up.Length - 1]; File1.PostedFile.SaveAs(Server.MapPath(@"/exceltest/

securecrt-secureCRT连接远程服务器总是提示密码错误

问题描述 secureCRT连接远程服务器总是提示密码错误 我刚刚安装破解了secureCRT,相连接远程服务器,修改数据库表空间,但是在连接的时候,明明密码是对的,但是总显示密码错误,password authentication failed. please verify that the username and password are correct.请问我该怎么办啊,我记得我第一次写连接信息时点了一个什么once,然后就没有了,接下来我每次连接就算重新填写也没有那个东西了,我该怎么办

程序-tomcat运行Struts JSP提示错误

问题描述 tomcat运行Struts JSP提示错误 这是JSP 和struts.xml的配置和提示的错误 点击错误以后出现这个页面 程序没有问题 运行同目录下index.jsp也可以 请问是哪里不对? 解决方案 base href=<%=basepath%>中basepath哪定义的,定义了吗 解决方案二: 应该不是你代码的问题,看看tomcat是否配置正确,程序部署有没有问题 解决方案三: 请把错误页面贴出来,详细说明 解决方案四: 已经解决了 就是空格添加不当的问题 删除多余的空格 在

tomcat集群-TOMCAT 集群 socket closed 错误

问题描述 TOMCAT 集群 socket closed 错误 我在用APACHE配置TOMCAT 集群出现下面这个错误. WARNING: Error receiving mcast package. Sleeping 500ms java.net.SocketException: socket closed at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketIm