0 Replies Latest reply on Jul 30, 2015 7:42 AM by Bhaskar Diwakar

    Does wildfly 9 support Hibernate 2 ?

    Bhaskar Diwakar Newbie

      Hi,

       

      I am trying to deploy ear with hibernate 2 on wildfly 9.but we are getting hibernate xml parsing error. Please have a look this error logs.

       

      17:02:22,616 INFO  [com.uniteller.switchcore.hb.impl.HBTimerBean] (ServerService Thread Pool -- 68) Timers set in Heartbeat

      17:02:22,633 ERROR [stderr] (ServerService Thread Pool -- 68) log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).

       

      17:02:22,633 ERROR [stderr] (ServerService Thread Pool -- 68) log4j:WARN Please initialize the log4j system properly.

       

      17:02:22,643 INFO  [stdout] (ServerService Thread Pool -- 68) Warning: Caught exception attempting to use SAX to load a SAX XMLReader

       

      17:02:22,644 INFO  [stdout] (ServerService Thread Pool -- 68) Warning: Exception was: java.lang.ClassCastException: __redirected.__XMLReaderFactory cannot be cast to org.xml.sax.XMLReader

       

      17:02:22,644 INFO  [stdout] (ServerService Thread Pool -- 68) Warning: I will print the stack trace then carry on using the default SAX parser

       

      17:02:22,644 ERROR [stderr] (ServerService Thread Pool -- 68) java.lang.ClassCastException: __redirected.__XMLReaderFactory cannot be cast to org.xml.sax.XMLReader

       

      17:02:22,644 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:131)

       

      17:02:22,644 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:74)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:647)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:530)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.dom4j.io.SAXReader.read(SAXReader.java:309)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:967)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:945)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.txcore.TxCoreSessionFactory.init(TxCoreSessionFactory.java:50)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.txcore.TxCoreSessionFactory.getInstance(TxCoreSessionFactory.java:61)

       

      17:02:22,645 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initDBConnections(SystemController.java:182)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initSwitch(SystemController.java:50)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.InitServlet.init(InitServlet.java:36)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131)

       

      17:02:22,646 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.lang.Thread.run(Thread.java:745)

       

      17:02:22,647 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      17:02:22,649 ERROR [stderr] (ServerService Thread Pool -- 68) net.sf.hibernate.HibernateException: problem parsing configurationC:\wildfly\wildfly-9.0.0.Final\UFSwitch\conf\txcore.cfg.xml

       

      17:02:22,649 ERROR [stderr] (ServerService Thread Pool -- 68)     at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:972)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:945)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.txcore.TxCoreSessionFactory.init(TxCoreSessionFactory.java:50)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.txcore.TxCoreSessionFactory.getInstance(TxCoreSessionFactory.java:61)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initDBConnections(SystemController.java:182)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initSwitch(SystemController.java:50)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.InitServlet.init(InitServlet.java:36)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511)

       

      17:02:22,650 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.lang.Thread.run(Thread.java:745)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68) Caused by: org.dom4j.DocumentException: Could not initialize a SAX Parser. Please add a SAX parser to your classpath along with preferably jaxp.jar Nested exception: Could not initialize a SAX Parser. Please add a SAX parser to your classpath along with preferably jaxp.jar

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.dom4j.io.SAXReader.read(SAXReader.java:358)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:967)

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     ... 20 more

       

      17:02:22,651 INFO  [stdout] (ServerService Thread Pool -- 68) Exception encountered while initializing SWITCH

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68) java.lang.Exception: DB Connections Initialization failed

       

      17:02:22,651 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initDBConnections(SystemController.java:200)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.SystemController.initSwitch(SystemController.java:50)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at com.uniteller.switchcore.system.InitServlet.init(InitServlet.java:36)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:230)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:131)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:511)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

       

      17:02:22,652 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)

       

      17:02:22,653 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

      17:02:22,653 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

      17:02:22,653 ERROR [stderr] (ServerService Thread Pool -- 68)     at java.lang.Thread.run(Thread.java:745)

       

      17:02:22,653 ERROR [stderr] (ServerService Thread Pool -- 68)     at org.jboss.threads.JBossThread.run(JBossThread.java:320)