|
|
|
hibernate.properties not found / JBoss AS 7
|
|||
|---|---|---|---|
|
#18+
Создал мавен web проект. Нужно использовать с JPA2/Hibernate для взаимодействия с БД. Добавил persistence.xml файл, NetBeans положила его в src/main/resources/META-INF/persistence.xml, Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. DataSource рабочий, могу получить из него соед с БД, таблица на основании entity (MyEntity) создается, но EntityManager -> null. При страте JBoss вижу в логе: INFO [org.hibernate.annotations.common.Version] (MSC service thread 1-5) HCANN000001: Hibernate Commons Annotations {4.0.1.Final} INFO [org.hibernate.Version] (MSC service thread 1-5) HHH000412: Hibernate Core {4.0.1.Final} INFO [org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000206: hibernate.properties not found org.hibernate.cfg.Environment] (MSC service thread 1-5) HHH000021: Bytecode provider name : javassist [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-5) HHH000204: Processing PersistenceUnitInfo [ name: persistenceUnit ..] ................................................... Код: java 1. 2. 3. 4. 5. 6. 7. 8. Что я делаю не так? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.07.2013, 15:52:15 |
|
||
|
|

start [/forum/topic.php?fid=59&tid=2128992]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
46ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
2ms |
| others: | 325ms |
| total: | 477ms |

| 0 / 0 |
