zzeng

          zzeng

          hibernate.cfg.xml not found

          hibernate.cfg.xml not found - WebSphere PortalServer

          Posted by: Bernd Zimmermann on November 23, 2004 in response to Message #92850 0 replies in this thread
          We had the 'hibernate.cfg.xml not found' problem when developing
          IBM WebSphere Portalserver portlets with struts and hibernate.

          The solution was to have the hibernate.cfg.xml in WebSphere
          Application Developer in ./JavaSources and get the hibernate
          configuration at runtime this way:

          File f=new File(servlet.getServletContext()
          .getRealPath("/WEB-INF/classes/hibernate.cfg.xml"));

          Configuration c = new Configuration().configure(f);

          This is portable from WSAD to WPS

          posted on 2005-09-28 13:42 zzeng 閱讀(1723) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 谷城县| 阿坝| 五大连池市| 读书| 利川市| 绥中县| 若尔盖县| 白山市| 大新县| 略阳县| 高安市| 芦溪县| 贺州市| 营山县| 赤峰市| 通州市| 彩票| 交城县| 那曲县| 香港| 盈江县| 马关县| 章丘市| 绥棱县| 西贡区| 安塞县| 桂阳县| 虎林市| 荃湾区| 泰兴市| 重庆市| 松阳县| 泽库县| 洞头县| 嵩明县| 镇原县| 温泉县| 张家港市| 耒阳市| 岚皋县| 都兰县|