`
easonfans
  • 浏览: 251333 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Could not parse configuration: /hibernate.cfg.xml

阅读更多

Could not parse configuration: /hibernate.cfg.xml
 悬赏分:0 - 解决时间:2008-12-25 09:36
对这个问题烦了好几天,终于解决了,原来版本问题。
1.如果是无法读取的话,则会直接报错,cannot find.
2.can not parse cofiguration:是因为你的jar包和你写的配置xml不对应,所以无法解析。
    可能有人就问了你怎么看我的Hibernate.jar的版本啊:
    你新建一个hibernate1.cfg.xml,内容随便写,然后你在里面的
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
    上面的3.0就是版本号
3.解决问题
   1.将hibernate.cfg.xml如上,版本该过来
   2.将XXX.hbm.xml(映射表文件),版本也改过来(如上) 

分享到:
评论

相关推荐

    annotations.zip

    Android Build 时报错: java.io.IOException: Could not parse XML from android/accounts/annotati...Android构建时报错: app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” ...

    Error:in ./node-modules/axios/lib/platform/index.js

    Error:in ./node-modules/axios/lib/platform/index.js

    java.text.ParseException: Unparseable date: 2/10/2010 15:20:05

    NULL 博文链接:https://speed-guo.iteye.com/blog/903163

    AndroidSDK下/platform-tools/api/annotations.zip

    编译时遇到以下报错:app:...java.io.IOException: Could not parse XML from annotations/android/widget/annotations.xml 请将本文件替换SDK目录下的/platform-tools/api/annotations.zip文件,建议替换前备份原文件

    UE(官方下载)

    Multiple configuration environments of Ultraedit/UEstudio How to set up your separate environments for UltraEdit/UEStudio Java compiler Create a custom user tool to compile Java code, using the ...

    Compiler_mean3tmp.rar

    通过跑parse.java 得到两张表的合集和规约过程。 gui.JtableParse3.java 把上面的两张表合在一起图形化了。 我鼓励你发现我的bug *0*虽然我仔细检察过并没有bug 但你可以发布修复bug的最新版本。注意标明原转载网址...

    解决dbf Failed to parse Number: For input string: "-.---"

    附件解决dbf读取文件时遇到乱码问题,下载下来可以直接使用,无需使用dbf的jar包了,可以直接使用.

    Downloads.zip

    Could not read /Users/panxin/Library/Android/sdk/platform-tools/api/annotations.zip java.io.IOException: Could not parse XML from annotations/android/widget/annotations.xml 请将本文件解压后的...

    AppInstall.rar

    Uri packageURI = Uri.parse("package:" + mContext.getPackageName()); Intent intent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES, packageURI); startActivityForResult(intent, 401); ...

    jspsmartupload

    List fileItems = upload.parseRequest(request); //开始读取上传信息 Iterator iter = fileItems.iterator(); // 依次处理每个上传的文件 while(iter.hasNext()) { FileItem item = (FileItem) iter.next(); // ...

    Android端zip压缩与解压.zip

    Android端zip压缩与解压,目前暂时只做zip格式支持,基于Zip4j (http://www.lingala.net/zip4j/)进行扩展成工具类,支持对单个文件,多个文件以及文件夹进行压缩,对压缩文件解压到到指定目录,支持压缩解压使用密码...

    Python库 | parse-1.1.6.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:parse-1.1.6.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    ApkIDE3.3.0.0作者原版,解决常见apk打包安装问题.rar

    adb: failed to install SystemActivities.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer...

    Amazon

    You could also extend the PEAR's XMLParser object to parse Amazon results. The reason I did not choose these directions is because they require additional extensions installed with PHP. What I ...

    lunch_cb5801_r58_20160907.7z

    ./configs/media_profiles.xml: not perform any checks at all. 不用修改 ./vendorsetup.sh:add_lunch_combo octopus_perf-eng ./vendorsetup.sh:add_lunch_combo octopus_perf-user 直接用cb5801搜索替换perf...

    lunch_r58_20160906.7z

    ./configs/media_profiles.xml: not perform any checks at all. 不用修改 ./vendorsetup.sh:add_lunch_combo octopus_perf-eng ./vendorsetup.sh:add_lunch_combo octopus_perf-user 直接用cb5801搜索替换perf...

    asm5.0.jar

    nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis- config.xml]; nested exception is org.apache.ibatis.builder....

    nodejs_express_mongodb_webApp:利用Node.js结合Express,mongodb实现一个web管理系统

    #NodeJS项目##用到的模块有: - 1、express 用来实现项目的web服务,路由功能,静态模块 地址: ...- 5、body-parse:一个解析请求报文体数据的Node.js库 https://github.com/expressjs/body-parser - 6、formidabl

    京东商城Open API通用接口源码及开发实例(轻开版20151121)

    public void parseJson(String json) 作用:解析京东JOS平台接口返回的JSON格式的字符串,并根据内容生成N个对应的书包 参数:String json,京东JOS平台接口返回的JSON格式的字符串 根据JSON文本的内容在系统中生成N...

    AndroidSDK下/platform-tools/api/annotations.zip资源api.rar

    编译时如果遇到以下报错:app:lintVitalRelease[Fatal Error] :43:...java.io.IOException: Could not parse XML from annotations/android/widget/annotations.xml 请将本文件替换SDK目录下的/platform-tools/api资源

Global site tag (gtag.js) - Google Analytics