i found following error please help me
my hibernate config file: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <!-- Database connection settings --> <property name="connection.driver_class">org.hsqldb.jdbcDriver</property> <property name="connection.url">jdbc:hsqldb:hsql://172.18.1.240/3306/tcsss_epcis051 </property> <property name="connection.username">sa</property> <property name="connection.password"></property>
<!-- JDBC connection pool (use the built-in) --> <property name="connection.pool_size">1</property>
<!-- SQL dialect --> <property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<!-- Enable Hibernate's automatic session context management --> <property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache --> <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider </property>
<!-- Echo all executed SQL to stdout --> <property name="show_sql">true</property>
<!-- Drop and re-create the database schema on startup --> <property name="hbm2ddl.auto">update</property> <mapping resource="com/tcs/ss/service/mandate.hbm.xml" /> <mapping resource="com/tcs/ss/service/BarcodeInfo.hbm.xml" /> <mapping resource="com/tcs/ss/service/BarcodeInfoAttr.hbm.xml" /> <mapping resource="com/tcs/ss/service/MandateBarcode.hbm.xml" /> <mapping resource="com/tcs/ss/service/MandateLineInfo.hbm.xml" /> <mapping resource="com/tcs/ss/service/Profile.hbm.xml" /> <mapping resource="com/tcs/ss/service/Range.hbm.xml" /> <mapping resource="com/tcs/ss/service/Group.hbm.xml" /> <mapping resource="com/tcs/ss/service/Login.hbm.xml" /> </session-factory> </hibernate-configuration>
and my mapping file
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping> <class name="com.tcs.ss.dto.MandateMaster" table="MandateMaster"> <meta attribute="class-description"> This class contains the mandate detail. </meta> <id name="id" type="int" column="mandate_Id"> <generator class="native" /> </id> <property name="mandateName" type="java.lang.String"> <column name= "mandate_name" not-null="false" unique="false" sql-type="VARCHAR(80)" /> </property> <property name="encodingCode" type="java.lang.Integer"> <column name = "Encoding_Code" not-null="false" unique="false" sql-type="int" /> </property> <property name="objectCode" type="java.lang.Integer"> <column name="Object_Code" not-null="false" unique="false" sql-type="int" /> </property> <property name="identityId" type="java.lang.Integer"> <column name ="IdentityId" not-null="false" unique="false" sql-type="int" /> </property> <property name="encodingFamilyId" type="java.lang.Integer"> <column name ="encodingfamily_id" not-null="false" unique="false" sql-type="int" /> </property> <property name="identifierCodeId" type="java.lang.Integer"> <column name ="IdentifierCode_id" not-null="false" unique="false" sql-type="int" /> </property> <property name="filterValue" type="java.lang.Integer"> <column name ="FilterValue" not-null="false" unique="false" sql-type="int" /> </property> <property name="tradingPartnerId" type="java.lang.Integer"> <column name ="TradingPartner_Id" not-null="false" unique="false" sql-type="int" /> </property> <set name="mandateLineInfo" inverse="true" cascade="all" table="mandate_lineinfo"> <cache usage="read-write"/> <key> <column name="mandate_Id" not-null="false" sql-type="NUMBER(19)"/> </key> <one-to-many class="com.tcs.ss.dto.MandateLineInfo" not-found="exception"/> </set> <one-to-one name="barcodeInfo" class="com.tcs.ss.dto.BarcodeInfo" property-ref="mandateId" cascade="save-update"> </one-to-one> </class> </hibernate-mapping>
This the error i fond
[INFO] Hibernate 3.2 cr2 [INFO] hibernate.properties not found [INFO] Bytecode provider name : cglib [INFO] using JDK 1.4 java.sql.Timestamp handling [INFO] configuring from resource: /hibernate.cfg.xml [INFO] Configuration resource: /hibernate.cfg.xml [INFO] Reading mappings from resource: com/tcs/ss/service/mandate.hbm.xml Initial SessionFactory creation failed.org.hibernate.MappingException: Could not read mappings from resource: com/tcs/ss/service/mandate.hbm.xml Feb 21, 2013 5:56:22 PM com.sun.faces.application.ActionListenerImpl processAction SEVERE: java.lang.ExceptionInInitializerError javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ExceptionInInitializerError at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:23) at com.tcs.ss.util.HibernateUtil.<clinit>(HibernateUtil.java:13) at com.tcs.ss.service.AdminLoginService.authenticate(AdminLoginService.java:21) at com.tcs.ss.login.LoginManager.doLogin(LoginManager.java:10) at com.tcs.ss.client.LoginMangement.doLogin(LoginMangement.java:26) at com.tcs.ss.client.LoginMangementBean.doLogin(LoginMangementBean.java:473) 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:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ... 32 more Caused by: org.hibernate.MappingException: Could not read mappings from resource: com/tcs/ss/service/mandate.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:518) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1347) at org.hibernate.cfg.Configuration.configure(Configuration.java:1333) at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:18) ... 45 more Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:464) at org.hibernate.cfg.Configuration.addResource(Configuration.java:515) ... 52 more Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:455) ... 53 more Feb 21, 2013 5:56:22 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute WARNING: #{loginBean.doLogin }: java.lang.ExceptionInInitializerError javax.faces.FacesException: #{loginBean.doLogin }: java.lang.ExceptionInInitializerError at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe[ERROR] Exception in the filter chain javax.servlet.ServletException: #{loginBean.doLogin }: java.lang.ExceptionInInitializerError at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.faces.FacesException: #{loginBean.doLogin }: java.lang.ExceptionInInitializerError at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) ... 22 more Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) ... 31 more Caused by: java.lang.ExceptionInInitializerError at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:23) at com.tcs.ss.util.HibernateUtil.<clinit>(HibernateUtil.java:13) at com.tcs.ss.service.AdminLoginService.authenticate(AdminLoginService.java:21) at com.tcs.ss.login.LoginManager.doLogin(LoginManager.java:10) at com.tcs.ss.client.LoginMangement.doLogin(LoginMangement.java:26) at com.tcs.ss.client.LoginMangementBean.doLogin(LoginMangementBean.java:473) 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:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ... 32 more Caused by: org.hibernate.MappingException: Could not read mappings from resource: com/tcs/ss/service/mandate.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:518) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1347) at org.hibernate.cfg.Configuration.configure(Configuration.java:1333) at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:18) ... 45 more Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:464) at org.hibernate.cfg.Configuration.addResource(Configuration.java:515) ... 52 more Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:455) ... 53 more cutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) ... 31 more Caused by: java.lang.ExceptionInInitializerError at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:23) at com.tcs.ss.util.HibernateUtil.<clinit>(HibernateUtil.java:13) at com.tcs.ss.service.AdminLoginService.authenticate(AdminLoginService.java:21) at com.tcs.ss.login.LoginManager.doLogin(LoginManager.java:10) at com.tcs.ss.client.LoginMangement.doLogin(LoginMangement.java:26) at com.tcs.ss.client.LoginMangementBean.doLogin(LoginMangementBean.java:473) 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:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ... 32 more Caused by: org.hibernate.MappingException: Could not read mappings from resource: com/tcs/ss/service/mandate.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:518) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1347) at org.hibernate.cfg.Configuration.configure(Configuration.java:1333) at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:18) ... 45 more Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:464) at org.hibernate.cfg.Configuration.addResource(Configuration.java:515) ... 52 more Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:455) ... 53 more Feb 21, 2013 5:56:22 PM com.sun.faces.lifecycle.Phase doPhase SEVERE: JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /Pages/Common/login.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@12be51c] Feb 21, 2013 5:56:22 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/STePWeb] threw exception [#{loginBean.doLogin }: java.lang.ExceptionInInitializerError] with root cause org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:455) at org.hibernate.cfg.Configuration.addResource(Configuration.java:515) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1347) at org.hibernate.cfg.Configuration.configure(Configuration.java:1333) at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:18) at com.tcs.ss.util.HibernateUtil.<clinit>(HibernateUtil.java:13) at com.tcs.ss.service.AdminLoginService.authenticate(AdminLoginService.java:21) at com.tcs.ss.login.LoginManager.doLogin(LoginManager.java:10) at com.tcs.ss.client.LoginMangement.doLogin(LoginMangement.java:26) at com.tcs.ss.client.LoginMangementBean.doLogin(LoginMangementBean.java:473) 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:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Nested exception: java.net.UnknownHostException: www.hibernate.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1177) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:455) at org.hibernate.cfg.Configuration.addResource(Configuration.java:515) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1506) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1474) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427) at org.hibernate.cfg.Configuration.configure(Configuration.java:1347) at org.hibernate.cfg.Configuration.configure(Configuration.java:1333) at com.tcs.ss.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:18) at com.tcs.ss.util.HibernateUtil.<clinit>(HibernateUtil.java:13) at com.tcs.ss.service.AdminLoginService.authenticate(AdminLoginService.java:21) at com.tcs.ss.login.LoginManager.doLogin(LoginManager.java:10) at com.tcs.ss.client.LoginMangement.doLogin(LoginMangement.java:26) at com.tcs.ss.client.LoginMangementBean.doLogin(LoginMangementBean.java:473) 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:597) at org.apache.el.parser.AstValue.invoke(AstValue.java:262) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:70) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:329) at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(AjaxViewRoot.java:304) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:261) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:474) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
|