Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1958

Cannot run Magnolia due to ERROR "Unable to initialize repository: Provider org.apache.xalan.processor.TransformerFactoryImpl not found"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Outdated
    • Icon: Major Major
    • None
    • None
    • build

      On certain platforms, users have encountered this error:

      ERROR  info.magnolia.jackrabbit.ProviderImpl ProviderImpl.java(init:213) 13.12.2007 09:26:16  Unable to initialize repository: 
      Provider org.apache.xalan.processor.TransformerFactoryImpl not found
      javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
      

      So far, this occurred only with Tomcat on Java 1.6 on Linux installations.

      Do you encounter this issue ?

      If so, please, leave us a comment below with the output of the following commands from a terminal:

      # operating system info
      uname -a
      
      # figure out which Java version is used
      echo $JAVA_HOME
      which java
      java -version
      grep JAVA_HOME /path/to/your/magnolia/installation/bin/magnolia_control.sh
      
      # Tomcat version
      /path/to/your/magnolia/installation/bin/catalina.sh version
      
      # Tomcat libs
      find /path/to/your/magnolia/installation/common
      find /path/to/your/magnolia/installation/server
      find /path/to/your/magnolia/installation/lib
      

      These should ideally be executed as the same user that you start Magnolia with, with the same environment.

      If you are encountering this issue on Windows and don't know how to get the equivalent output of the above, please leave us a shout too !

      To fix the issue:

      1. Copy the xalan jar to the WEB-INF/lib folder of your Magnolia instance(s)
      2. Delete the repositories folder of your Magnolia instance(s) (because the failed startup generated corrupted xml files in there)
      3. Restart

      In some other instances, it's a xercesImpl.jar that caused issues (in either Magnolia's WEB-INF/lib folder, or Tomcat's endorsed libraries)

      Also see http://www.nabble.com/Jackrabbit-war-on-Tomcat-tc5617208.html

      Hopefully, we'll have a built-in fix soon, but for this, we'll need as much feedback as we can get ! Thanks in advance !

      edited and removed outdated comments on 2009-06-09

        Acceptance criteria

              had Jan Haderka
              vivi Vivian Steller
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD