0
我們用Axis2框架(遺留系統)開發Web服務。使用jdbc它工作正常,但我需要使用它與休眠。 我試圖2點的方法: Axis2與Hibernate的集成(不包括Spring)
- (外AAR)我把冬眠* .jar文件到EARContent/lib和的hibernate.cfg.xml到WEB-ING /類.XML到AAR/META-INF /,並添加到service.xml的參數
<parameter name="ServiceTCCL">composite</parameter>
在第一種情況下我不能在我失去了第二種情況的hibernate.cfg.xml達到 java.lang.RuntimeException: java.lang.RuntimeException: org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
訪問JNDII似乎失去了容器寬(jboss)jndi上下文。
java.lang.RuntimeException: javax.naming.NameNotFoundException: UserTransaction not bound
感謝