Advertisement
Guest User

Untitled

a guest
Apr 8th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Error on line 16 of document : The element type "session-factory" must be terminated by the matching end-tag "</session-factory>".
  2. Nested exception: The element type "session-factory" must be terminated by the matching end-tag "</session-factory>".
  3. at org.dom4j.io.SAXReader.read(SAXReader.java:482)
  4.  
  5. <session-factory>
  6.  
  7.  
  8.  
  9. <!-- Database connection settings -->
  10. <property name="connection.driver_class">org.postgresql.Driver</property>
  11. <property name="connection.url">jdbc:postgresql://localhost:5432/hibernatedb</property>
  12. <property name="connection.username">postgres</property>
  13. <property name="connection.password"/>shaher</property>
  14.  
  15. <!-- JDBC connection pool (use the built-in) -->
  16. <property name="connection.pool_size">1</property>
  17.  
  18. <!-- SQL dialect -->
  19. <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  20.  
  21. <!-- Disable the second-level cache -->
  22. <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
  23.  
  24. <!-- Echo all executed SQL to stdout -->
  25. <property name="show_sql">true</property>
  26.  
  27. <!-- Drop and re-create the database schema on startup -->
  28. <property name="hbm2ddl.auto">create</property>
  29.  
  30. <mapping class="org.shaher.hiber.dto.UserDetails"/>
  31.  
  32. <session-factory>
  33. ...
  34. </session-factory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement