|
|
|
Hibernate не инициализируется
|
|||
|---|---|---|---|
|
#18+
Вот это: Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. Выдает ошибку. 28.07.2007 20:49:48 org.hibernate.cfg.Environment <clinit> INFO: Hibernate 3.2.4.sp1 28.07.2007 20:49:49 org.hibernate.cfg.Environment <clinit> INFO: hibernate.properties not found 28.07.2007 20:49:49 org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib 28.07.2007 20:49:49 org.hibernate.cfg.Environment <clinit> INFO: using JDK 1.4 java.sql.Timestamp handling 28.07.2007 20:49:49 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : c:\Event.hbm.xml Exception in thread "main" org.hibernate.MappingNotFoundException: resource: c:\Event.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:563) at hello.test.<init>(test.java:17) at hello.test.main(test.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Process finished with exit code 1 Файл Event.hbm.xml cуществует и путь правильный. Что делать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.07.2007, 22:01:37 |
|
||
|
Hibernate не инициализируется
|
|||
|---|---|---|---|
|
#18+
Вроде победил. Шас новый глюк. Вроде всё верно сделал. Как в документации. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 29.07.2007 11:47:42 org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled 29.07.2007 11:47:42 org.hibernate.impl.SessionFactoryImpl <init> INFO: building session factory 29.07.2007 11:47:43 org.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: Not binding factory to JNDI, no JNDI name configured Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:542) at hello.test.<init>(test.java:64) at hello.test.main(test.java:88) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.07.2007, 12:55:08 |
|
||
|
Hibernate не инициализируется
|
|||
|---|---|---|---|
|
#18+
где? ошибка? там же INFO ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.07.2007, 13:16:26 |
|
||
|
Hibernate не инициализируется
|
|||
|---|---|---|---|
|
#18+
ненавижу хибернейтгде? ошибка? там же INFO там же написано Новичёк JavaException in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! чтобы вызывать SessFact1.getCurrentSession(), CurrentSessionContext надо тоже конфигурить Код: plaintext ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.07.2007, 06:31:44 |
|
||
|
|

start [/forum/topic.php?fid=59&gotonew=1&tid=2145044]: |
0ms |
get settings: |
12ms |
get forum list: |
23ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
68ms |
get topic data: |
17ms |
get first new msg: |
11ms |
get forum data: |
4ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 300ms |
| total: | 492ms |

| 0 / 0 |
