2 Replies Latest reply on Aug 18, 2009 6:51 AM by Shashwat Gaur

    Process Deployment Issue

    Jim Jackson Newbie

      I get a stack trace trying to deploy. I am not using the All_in_One Jboss Jbpm server, just a normal 4.20 JBoss server. The main error is:
      org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
      at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)

      with a nested exception of:
      Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)

      Does anybody have any ideas ? Any and all ideas are appreciated.

      Thanks,
      Jim

        • 1. Re: Process Deployment Issue
          Ronald van Kuijk Master

          Yes, a classcast exception is othen caused by multiple versions of jar files. Look in that direction (it is not specifically jbpm related)

          • 2. Re: Process Deployment Issue
            Shashwat Gaur Newbie

            Hi! all
            I'm developing a test application using hibernate to store data into my database (mysql) and I'm facing the following problem:

            6:11:21,067 FATAL [application] java.lang.ExceptionInInitializerError
            javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:278)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            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:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.ExceptionInInitializerError
            at jsfHello.HibernateUtil.(HibernateUtil.java:18)
            at jsfHello.hibernatetest.createTable(hibernatetest.java:16)
            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:131)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 31 more
            Caused by: org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
            at jsfHello.HibernateUtil.(HibernateUtil.java:14)
            ... 40 more
            Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
            at org.dom4j.io.SAXReader.read(SAXReader.java:484)
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
            ... 43 more
            16:11:21,067 WARN [lifecycle] #{hibernatetest.createTable}: java.lang.ExceptionInInitializerError
            javax.faces.FacesException: #{hibernatetest.createTable}: java.lang.ExceptionInInitializerError
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:278)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            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:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Unknown Source)
            Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            ... 30 more
            Caused by: java.lang.ExceptionInInitializerError
            at jsfHello.HibernateUtil.(HibernateUtil.java:18)
            at jsfHello.hibernatetest.createTable(hibernatetest.java:16)
            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:131)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 31 more
            Caused by: org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
            at jsfHello.HibernateUtil.(HibernateUtil.java:14)
            ... 40 more
            Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
            at org.dom4j.io.SAXReader.read(SAXReader.java:484)
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
            ... 43 more
            16:11:21,067 WARN [lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@199de59) threw exception
            javax.faces.FacesException: #{hibernatetest.createTable}: java.lang.ExceptionInInitializerError
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            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:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Unknown Source)
            Caused by: javax.faces.FacesException: #{hibernatetest.createTable}: java.lang.ExceptionInInitializerError
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:278)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
            ... 25 more
            Caused by: javax.faces.el.EvaluationException: java.lang.ExceptionInInitializerError
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            ... 30 more
            Caused by: java.lang.ExceptionInInitializerError
            at jsfHello.HibernateUtil.(HibernateUtil.java:18)
            at jsfHello.hibernatetest.createTable(hibernatetest.java:16)
            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:131)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 31 more
            Caused by: org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
            at jsfHello.HibernateUtil.(HibernateUtil.java:14)
            ... 40 more
            Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
            at org.dom4j.io.SAXReader.read(SAXReader.java:484)
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
            ... 43 more
            16:11:21,098 INFO [STDOUT] 16:11:21,098 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
            org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
            at org.dom4j.io.SAXReader.read(SAXReader.java:484)
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
            at jsfHello.HibernateUtil.(HibernateUtil.java:14)
            at jsfHello.hibernatetest.createTable(hibernatetest.java:16)
            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:131)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:278)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            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:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Unknown Source)
            Nested exception:
            java.lang.ClassCastException: org.dom4j.DocumentFactory
            at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97)
            at org.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
            at org.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
            at org.dom4j.io.SAXReader.read(SAXReader.java:449)
            at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
            at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
            at jsfHello.HibernateUtil.(HibernateUtil.java:14)
            at jsfHello.hibernatetest.createTable(hibernatetest.java:16)
            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:131)
            at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
            at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
            at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:278)
            at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            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:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Unknown Source)

            My hibernate.cfg.xml is:
            <?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>
            com.mysql.jdbc.Driver
            admin
            jdbc:mysql://localhost:3306/testschema
            root
            org.hibernate.dialect.MySQL5InnoDBDialect
            create

            </session-factory>
            </hibernate-configuration>


            Please help.