Hi,
I am trying to use Hibernate 2 with Weblogic 7 and am facing a strange problem, I have kept my hibernate2.jar in \WEB-INF\lib and the hibernate.cfg.xml in the \WEB-INF\Classes folder and when I try to build a session factory using the following line
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
I get the following error.
<Mar 21, 2005 8:25:51 PM IST> <Error> <HTTP> <101017> <[ServletContext(id=1721585,name=TestAPP,context-path=/TestAPP)] Root cause of ServletException
org.hibernate.MappingException: Error reading resource: com/test/TestTable.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:447)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1381)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1353)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1335)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1302)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1230)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1216)
at jsp_servlet.__getdata._jspService(__getdata.java:118))
Also i am having the "TestTable.hbm.xml" and TestTable.class under web-inf/classes/com/test
Any thoughts would be really helpful.
Thanks,
Jack
|