Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过hibernate解析DTD_Hibernate_Dtd - Fatal编程技术网

无法通过hibernate解析DTD

无法通过hibernate解析DTD,hibernate,dtd,Hibernate,Dtd,我的应用程序有很多cfg和hbm文件。我在加载它们时出错。 确定的问题与DTD有关 原始文档类型如下 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3

我的应用程序有很多
cfg
hbm
文件。我在加载它们时出错。 确定的问题与DTD有关

原始文档类型如下

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
在谷歌搜索之后,我下载了这个
dtd
,并像

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration SYSTEM "file:///C://hibernate-configuration-3.0.dtd">

现在,它正在处理完成此操作的文件

但是我不能改变每一个文件,因为数字太大了

在网上的帖子中,我发现一些用户在离线时会遇到这个问题。 但我有稳定的互联网连接,仍然面临这个问题

我怀疑问题在于所使用的jar文件。我正在使用
hibernate3.jar版本3.2.5


请帮忙。

问题确实出在jar上。文件是正确的,但其位置导致了问题

在eclipse项目类路径中,在我的例子中,将jar从引导转移到用户实体是有效的


非常感谢您的帮助。

****无法解析配置文件****请发布确切的错误或异常!!我认为这只是jar的问题,或者是定义中给出的链接>你能发布配置文件的代码吗?
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration SYSTEM "file:///C://hibernate-configuration-3.0.dtd">