0 Replies Latest reply on Jun 10, 2012 5:51 AM by Laxman Singh

    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

    Laxman Singh Newbie

      Hello All,

      I am newvy to seam. I am tring to deploy a iceface application but getting this error. As per my understanding this error is coming because of xercesImpl-2.9.1.jar which i has put in WEB-INF/lib of application. If i remove this jar from WEB-INF/lib then i am getting another error something like this:-

       

      15:13:34,065 INFO  [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/webmail'

      15:13:34,069 WARNING [config] JSF1059: WARNING!  The com.sun.faces.verifyObjects feature is to aid developers not using tools.  It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.

      15:13:34,449 ERROR [[/webmail]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! cvc-complex-type.2.4.a: Invalid content was found starting with element 'ordering'. One of '{"http://java.sun.com/xml/ns/javaee":application, "http://java.sun.com/xml/ns/javaee":factory, "http://java.sun.com/xml/ns/javaee":component, "http://java.sun.com/xml/ns/javaee":converter, "http://java.sun.com/xml/ns/javaee":managed-bean, "http://java.sun.com/xml/ns/javaee":navigation-rule, "http://java.sun.com/xml/ns/javaee":referenced-bean, "http://java.sun.com/xml/ns/javaee":render-kit, "http://java.sun.com/xml/ns/javaee":lifecycle, "http://java.sun.com/xml/ns/javaee":validator, "http://java.sun.com/xml/ns/javaee":faces-config-extension}' is expected.

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)

          at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

          at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

          at $Proxy38.start(Unknown Source)

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

          at org.jboss.system.ServiceController.start(ServiceController.java:460)

          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)

          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          at java.lang.Thread.run(Thread.java:636)

      Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'ordering'. One of '{"http://java.sun.com/xml/ns/javaee":application, "http://java.sun.com/xml/ns/javaee":factory, "http://java.sun.com/xml/ns/javaee":component, "http://java.sun.com/xml/ns/javaee":converter, "http://java.sun.com/xml/ns/javaee":managed-bean, "http://java.sun.com/xml/ns/javaee":navigation-rule, "http://java.sun.com/xml/ns/javaee":referenced-bean, "http://java.sun.com/xml/ns/javaee":render-kit, "http://java.sun.com/xml/ns/javaee":lifecycle, "http://java.sun.com/xml/ns/javaee":validator, "http://java.sun.com/xml/ns/javaee":faces-config-extension}' is expected.

          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

          at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

          at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)

          at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)

          at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)

          at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)

          at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)

          at javax.xml.validation.Validator.validate(Validator.java:124)

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:463)

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416)

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

       

      and after putting this jar(xercesImpl-2.9.1.jar) in applications's WEB-INF/lib I am getting this error:-

      I've enclosed faces-config.xml file for your reference. Please help.

       

      14:59:00,535 INFO  [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/webmail'

      14:59:00,537 WARNING [config] JSF1059: WARNING!  The com.sun.faces.verifyObjects feature is to aid developers not using tools.  It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.

      14:59:00,800 ERROR [[/webmail]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215)

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)

          at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:60)

          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

          at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

          at $Proxy38.start(Unknown Source)

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

          at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

          at org.jboss.system.ServiceController.start(ServiceController.java:460)

          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

          at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)

          at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

          at java.lang.Thread.run(Thread.java:636)

      Caused by: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.

          at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)

          at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)

          at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)

          at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown Source)

          at org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager.<init>(Unknown Source)

          at org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.<init>(Unknown Source)

          at org.apache.xerces.jaxp.validation.AbstractXMLSchema.newValidatorHandler(Unknown Source)

          at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)

          at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)

          at com.sun.faces.config.ConfigManager$ParseTask.getBuilderForSchema(ConfigManager.java:523)

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:455)

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:416)

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:373)

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

          at java.util.concurrent.FutureTask.run(FutureTask.java:166)

          ... 3 more

      14:59:00,837 ERROR [StandardContext] Error listenerStart

      14:59:00,837 ERROR [StandardContext] Context [/webmail] startup failed due to previous errors