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) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 开远市| 盐池县| 朝阳区| 衡南县| 宜城市| 扎赉特旗| 宽城| 海盐县| 澎湖县| 奉贤区| 夏邑县| 海丰县| 尼木县| 新营市| 房产| 鄂托克前旗| 民县| 博白县| 鹤峰县| 海门市| 晋中市| 庆城县| 金塔县| 宁乡县| 灯塔市| 石河子市| 于田县| 泾阳县| 饶阳县| 通海县| 太和县| 普格县| 隆林| 文昌市| 卓尼县| 南皮县| 鄂伦春自治旗| 普定县| 新营市| 外汇| 太原市|