4 Replies Latest reply on Feb 29, 2012 4:55 PM by Naeem Ally

    AS 7.0.2 - ClassNotFoundException: javax.xml.parsers.SAXParserFactory

    grrd Newbie

      Hi,

       

      I´m trying to port an application to AS 7. The app has a dependency on Commons Digester, which I have added as a module. The following exception results at deploy time:

       

       

      10:56:36,855 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! javax.xml.parsers.SAXParserFactory from [Module "org.apache.commons.digester:main" from local module loader @b0ce8f (roots: /opt/jboss-as-web-7.0.2.Final/modules)]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213) [jsf-impl.jar:1.2_12-b01-FCS]

              at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196) [jsf-impl.jar:1.2_12-b01-FCS]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory from [Module "org.apache.commons.digester:main" from local module loader @b0ce8f (roots: /opt/jboss-as-web-7.0.2.Final/modules)]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)

              at org.apache.commons.digester.Digester.getFactory(Digester.java:500) [commons-digester-1.8.jar:1.8]

              at org.apache.commons.digester.Digester.getParser(Digester.java:714) [commons-digester-1.8.jar:1.8]

              at org.apache.commons.digester.Digester.getXMLReader(Digester.java:944) [commons-digester-1.8.jar:1.8]

              at org.apache.commons.digester.Digester.parse(Digester.java:1765) [commons-digester-1.8.jar:1.8]

              at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:200) [richfaces-impl-3.2.2.SR1.jar:]

              at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:144) [richfaces-impl-3.2.2.SR1.jar:]

              at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:215) [richfaces-impl-3.2.2.SR1.jar:]

              at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.<init>(ChameleonRenderKitFactory.java:62) [richfaces-impl-3.2.2.SR1.jar:]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_26]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_26]

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_26]

              at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:596) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

              at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:482) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

              at javax.faces.FactoryFinder.access$400(FactoryFinder.java:138) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

              at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:949) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:316) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

              at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186) [jsf-impl.jar:1.2_12-b01-FCS]

              at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131) [jsf-impl.jar:1.2_12-b01-FCS]

              at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203) [jsf-impl.jar:1.2_12-b01-FCS]

       

       

      Shouldn´t this class be available by default (in rt.jar)?