Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1287

Provider for javax.xml.parsers.SAXParserFactory cannot be found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.1.3
    • 1.1.6
    • None
    • None

    Description

      While deploy the new snapshot of the Myfaces lib, the startup console shows the following error message.

      [4/17/06 18:08:57:266 CST] 0000000a FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedStandardConfig Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      [4/17/06 18:08:57:625 CST] 0000000a WebApp E Provider for javax.xml.parsers.SAXParserFactory cannot be found
      [4/17/06 18:08:57:672 CST] 0000000a ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
      If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
      A typical config looks like this;
      <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
      </listener>

      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:274)
      at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1398)
      at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:86)
      at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:759)
      at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:502)
      at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:391)
      at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
      at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
      at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:854)
      at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:807)
      at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:167)
      at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:391)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1228)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1067)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:547)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:751)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003)
      at com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
      at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
      at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:402)
      at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
      at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
      at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
      at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
      at java.lang.reflect.Method.invoke(Method.java:391)
      at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:218)
      at java.lang.Thread.run(Thread.java:568)

      The file list is shown as follows:-

      commons-beanutils-1.7.0.jar
      commons-codec-1.3.jar
      commons-collections-3.1.jar
      commons-digester-1.6.jar
      commons-el-1.0.jar
      commons-fileupload-1.0.jar
      commons-lang-2.1.jar
      commons-logging-1.0.4.jar
      commons-validator-1.2.0.jar
      jstl-1.1.0.jar
      myfaces-api-1.1.3-SNAPSHOT.jar
      myfaces-impl-1.1.3-SNAPSHOT.jar
      myfaces-shared-tomahawk-2.0.1-SNAPSHOT.jar
      oro-2.0.8.jar
      tomahawk-1.1.2-SNAPSHOT.jar
      xml-apis-1.0.b2.jar

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaelweb Michael Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: