-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: /hibernate.cfg.xml not found
PostPosted: Fri Nov 21, 2008 12:31 pm 
Newbie

Joined: Fri Nov 21, 2008 11:57 am
Posts: 1
Hibernate version: 3
Name and version of the database you are using : Oracle 10g
OS : Linux

We have configured new weblogic 9.2 domain and I am trying to deploy my existing ear file on this new domain. After I deploy my ear file
server throws error
"org.hibernate.HibernateException: /hibernate.cfg.xml not found"

This error does not happen in my old weblogic 9.2 domain.It is the same ear file which worked earlier in old domain but does not work with new domain.

my Ear file has hibernate framework inside. Can anybody help why this error will appear?

The difference between old and new domain is that old domain was setup as only Admin server using its own binary weblogic 9.2 installation on Sun Solaris Operating System.

New domain is clustuer with one Admin and one managed server using
shared binary installation for weblogic 9.2 on Linux Operating System .
Weblogic 9.2 binary is shared between multiple domains.

hibernate.cfg.xml is placed in WEB-INF/classes folder in war file under ear file.

hibernate3.jar file is placed in WEB-INF/lib folder in war file under ear file.


Here is the Stack Trace

org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
at com.sp.creditmodel.servicelocator.ServiceLocator.getSessionFactory(ServiceLocator.java:139)
at com.sp.creditmodel.dao.BaseDAO.getSessionFactory(BaseDAO.java:32)
at com.sp.creditmodel.dao.AuthDAO.getSubscriberUsers(AuthDAO.java:53)
at com.sp.creditmodel.auth.modules.AuthQuery.login(AuthQuery.java:66)
at com.sp.creditmodel.auth.modules.UserAuthenticationModule.login(UserAuthenticationModule.java:229)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at com.sp.creditmodel.bo.LoginManager.login(LoginManager.java:42)
at com.sp.creditmodel.session.ScoringSessionBean.authenticate(ScoringSessionBean.java:241)
at com.sp.creditmodel.session.singleScoringSession_zoyu2_EOImpl.authenticate(singleScoringSession_zoyu2_EOImpl.java:1542)
at com.sp.creditmodel.delegate.CMDelegate.authenticate(CMDelegate.java:233)
at com.sp.creditmodel.action.LoginAction.execute(LoginAction.java:114)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
[/code][/quote]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.