1

我的应用程序不允许我在离线模式下运行。Error Filter Start在离线模式下运行 Tomcat 时会抛出Tomcat。

我在想的是由于 dtd 出现在struts.xml, hibernate.cfg, xml,hbm.xml. 我试图SYSTEM通过查看 Eclipse 缓存部分中的缓存条目来将标头位置更改为,但结果是相同的。

4

1 回答 1

2

这是一个技巧。您仍然可以使用 PUBLIC,并下载 DTD 文件,将其放入您的应用程序并将您的休眠配置文件指向 DTD。

例子

原来的:

<!DOCTYPE hibernate-configuration PUBLIC
          “-//Hibernate/Hibernate Configuration DTD 3.0//EN”
          “http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”&gt;

更正:

<!DOCTYPE hibernate-configuration PUBLIC
          “-//Hibernate/Hibernate Configuration DTD 3.0//EN”
          “http://localhost/your/app/path/to/the/dtd/hibernate-configuration-3.0.dtd”&gt;
于 2012-07-11T07:33:04.513 回答