引用的文件包含错误(http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd) oracle.jdbc.OracleDriver jdbc:oracle:thin:@localhost:1521:xe 人力资源 基兰 10 org.hibernate.dialen.oraclealent 创造 真的

引用的文件包含错误(http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd) oracle.jdbc.OracleDriver jdbc:oracle:thin:@localhost:1521:xe 人力资源 基兰 10 org.hibernate.dialen.oraclealent 创造 真的,hibernate,Hibernate,我在web应用程序(动态web项目)中的hibernate配置和映射文件的第一行中遇到错误。我在独立应用程序(java项目)中没有遇到错误 你能分享你的完整配置吗?我正在使用apache-tomcat-7.0.26服务器和hibernate-release-4.3.8。最后请编辑问题并将代码放在问题上。我已经编辑了问题并发布了代码。 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration

我在web应用程序(动态web项目)中的hibernate配置和映射文件的第一行中遇到错误。我在独立应用程序(java项目)中没有遇到错误

你能分享你的完整配置吗?我正在使用apache-tomcat-7.0.26服务器和hibernate-release-4.3.8。最后请编辑问题并将代码放在问题上。我已经编辑了问题并发布了代码。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC 
  "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name = "connection.driver_class">oracle.jdbc.OracleDriver</property> 
<property name = "connection.url">jdbc:oracle:thin:@localhost:1521:xe</property> 
<property name = "connection.username">hr</property> 
<property name = "connection.password">kiran</property> 
<property name = "connection.pool_size">10</property> 
<property name = "dialect">org.hibernate.dialect.OracleDialect</property>
<property name = "hbm2ddl.auto">create</property>
<property name = "show_sql">true</property>
<mapping resource = "resources/student.hbm.xml"/>
</session-factory>
</hibernate-configuration>