-->
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.  [ 2 posts ] 
Author Message
 Post subject: jboss with hibernate problem: please help
PostPosted: Fri Nov 05, 2010 12:36 pm 
Newbie

Joined: Thu Nov 04, 2010 8:40 pm
Posts: 1
Hi Everyone,
i was using jboss and hibernate, but when i call save function, it is unable to locate hibernate.cfg.xml.
the structure of my app is: B2BView depend on B2BController, B2BController depends on B2BModel,
hibernate.cfg.xml file is in B2BModel

i got the following exception:

javax.faces.FacesException: Exception while calling broadcast on component : {Component-Path : [Class: com.icesoft.faces.application.SettableLocaleViewRoot,ViewId: /WEB-INF/web/user-register.xhtml][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id1][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id12][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id13][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id28][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id29][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: j_id37][Class: com.icesoft.faces.component.ext.HtmlForm,Id: j_id38][Class: com.icesoft.faces.component.panelcollapsible.PanelCollapsible,Id: formPanel][Class: com.icesoft.faces.component.ext.HtmlPanelGroup,Id: j_id41][Class: com.icesoft.faces.component.ext.HtmlPanelGrid,Id: j_id42][Class: com.icesoft.faces.component.ext.HtmlCommandButton,Id: j_id58]}
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:564)
at javax.faces.component.UICommand.broadcast(UICommand.java:110)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:369)
at javax.faces.component.UIViewRoot.process(UIViewRoot.java:264)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:153)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.el.ELException: /WEB-INF/web/user-register_body.xhtml @92,116 actionListener="#{userRegBean.registerUser}": java.lang.ExceptionInInitializerError
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:74)
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:51)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:51)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:556)
... 40 more
Caused by: java.lang.ExceptionInInitializerError
at com.itzone.model.processimpl.PocessManageImpl.persistEntity(PocessManageImpl.java:34)
at com.itzone.view.bkbean.basebean.BaseBean.persistEntity(BaseBean.java:23)
at com.itzone.view.bkbean.UserRegBean.registerUser(UserRegBean.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.el.parser.AstValue.invoke(AstValue.java:170)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
... 43 more
Caused by: org.hibernate.HibernateException: could not find file: \META-INF\hibernate.cfg.xml
at org.hibernate.cfg.Configuration.configure(Configuration.java:1557)
at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1206)
at com.itzone.model.persistence.util.EUtil.<clinit>(EUtil.java:43)
... 53 more


Top
 Profile  
 
 Post subject: Re: jboss with hibernate problem: please help
PostPosted: Sat Nov 06, 2010 12:23 pm 
Senior
Senior

Joined: Fri Oct 08, 2010 8:44 am
Posts: 130
Try to express your thoughts in more organized manner.

What is "B2BModel"? Is it your JAR file or what?


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

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.