hibernate 哪里错了 版主指点
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.
<hibernate-mapping>
<class name="model.Authority" table="Authority">
<id name="authority_id" column="authority_id" type="int">
<generator class="increment"></generator>
</id>
<property name="authority_name" column="authority_name" type="string"></property>
</class>
</hibernate-mapping>
aadd2013-12-8 1:57:06 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.3.2.GA
2013-12-8 1:57:06 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2013-12-8 1:57:06 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : javassist
2013-12-8 1:57:06 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
2013-12-8 1:57:06 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2013-12-8 1:57:06 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2013-12-8 1:57:06 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : Authority.hbm.xml
org.hibernate.InvalidMappingException: Could not parse mapping document from resource Authority.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:616)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
at util.HibernateUtil.<clinit>(HibernateUtil.java:14)
at impl.AuthorityImpl.listAllAuthorities(AuthorityImpl.java:45)
at simpl.AuthoritySimpl.listAllAuthorities(AuthoritySimpl.java:24)
at test.Test.main(Test.java:23)
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:555)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:613)
... 10 more
Caused by: org.dom4j.DocumentException: Nested exception:
at org.(SAXReader.java:484)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:546)
... 11 more
Exception in thread "main" java.lang.NullPointerException
at util.HibernateUtil.openSession(HibernateUtil.java:25)
at impl.AuthorityImpl.listAllAuthorities(AuthorityImpl.java:45)
at simpl.AuthoritySimpl.listAllAuthorities(AuthoritySimpl.java:24)
at test.Test.main(Test.java:23)