Scheduled Maintenance: over the next few days, we will update Jira to a newer version.

If you don't know Jira 4.x yet, you might be a little surprised by the UI changes ... :)

Issue Details (XML | Word | Printable)

Key: MAGNOLIA-1958
Type: Bug Bug
Status: Reopened Reopened
Priority: Blocker Blocker
Assignee: Vivian Steller
Reporter: Vivian Steller
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Magnolia

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

Created: 13/Dec/07 04:53 PM   Updated: 08/Jun/10 11:15 PM
Component/s: build
Affects Version/s: None
Fix Version/s: 4.2.x

Time Tracking:
Not Specified

Issue Links:
duplicate
 
relation
 

Labels: troubleshooting
Date of First Response: 08/Jun/10 11:15 PM


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Hermann Kurz added a comment - 08/Jun/10 11:15 PM
Hi. I encountered this error on a stock CentOS release 5.5 (Final) install. Additionally installed:

java-1.6.0-openjdk
tomcat5
tomcat5-native

output of your commands (i have no magnolia_control.sh, because magnolia was deployes as .war (magnolia-bundled-webapp-4.3.2.war)

[root@magnolia tomcat5]# su - tomcat
-sh-3.2$ echo $JAVA_HOME

-sh-3.2$ which java
/usr/bin/java
-sh-3.2$ java -version
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

yum list installed|grep tomcat
tomcat-native.x86_64 1.1.18-1.el5 installed
tomcat5.x86_64 5.5.23-0jpp.7.el5_3.2 installed
tomcat5-common-lib.x86_64 5.5.23-0jpp.7.el5_3.2 installed
tomcat5-jasper.x86_64 5.5.23-0jpp.7.el5_3.2 installed
tomcat5-jsp-2.0-api.x86_64 5.5.23-0jpp.7.el5_3.2 installed
tomcat5-server-lib.x86_64 5.5.23-0jpp.7.el5_3.2 installed
tomcat5-servlet-2.4-api.x86_64 5.5.23-0jpp.7.el5_3.2 installed

[root@magnolia tomcat5]# find /var/lib/tomcat5/common
/var/lib/tomcat5/common
/var/lib/tomcat5/common/classes
/var/lib/tomcat5/common/i18n
/var/lib/tomcat5/common/i18n/tomcat-i18n-en.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-fr.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-ja.jar
/var/lib/tomcat5/common/i18n/tomcat-i18n-es.jar
/var/lib/tomcat5/common/lib
/var/lib/tomcat5/common/lib/[commons-logging-api].jar
/var/lib/tomcat5/common/lib/[jsp].jar
/var/lib/tomcat5/common/lib/[jasper5-compiler].jar
/var/lib/tomcat5/common/lib/[commons-el].jar
/var/lib/tomcat5/common/lib/[jasper5-runtime].jar
/var/lib/tomcat5/common/lib/[jdbc-stdext].jar
/var/lib/tomcat5/common/lib/naming-factory.jar
/var/lib/tomcat5/common/lib/[commons-collections].jar
/var/lib/tomcat5/common/lib/[jndi].jar
/var/lib/tomcat5/common/lib/[jta].jar
/var/lib/tomcat5/common/lib/[commons-pool].jar
/var/lib/tomcat5/common/lib/naming-resources.jar
/var/lib/tomcat5/common/lib/[jaf].jar
/var/lib/tomcat5/common/lib/[javamail].jar
/var/lib/tomcat5/common/lib/[servlet].jar
/var/lib/tomcat5/common/lib/[mx4j][mx4j].jar
/var/lib/tomcat5/common/lib/[commons-dbcp].jar
/var/lib/tomcat5/common/lib/jdtcore.jar
/var/lib/tomcat5/common/lib/[ant].jar
/var/lib/tomcat5/common/endorsed
/var/lib/tomcat5/common/endorsed/[xml-commons-apis].jar
/var/lib/tomcat5/common/endorsed/[jaxp_parser_impl].jar

find /var/lib/tomcat5/server/
/var/lib/tomcat5/server/
/var/lib/tomcat5/server/classes
/var/lib/tomcat5/server/lib
/var/lib/tomcat5/server/lib/servlets-default.jar
/var/lib/tomcat5/server/lib/catalina-cluster.jar
/var/lib/tomcat5/server/lib/tomcat-ajp.jar
/var/lib/tomcat5/server/lib/tomcat-util.jar
/var/lib/tomcat5/server/lib/[commons-digester].jar
/var/lib/tomcat5/server/lib/[jaas].jar
/var/lib/tomcat5/server/lib/[commons-el].jar
/var/lib/tomcat5/server/lib/catalina-ant-jmx.jar
/var/lib/tomcat5/server/lib/tomcat-jkstatus-ant.jar
/var/lib/tomcat5/server/lib/catalina-storeconfig.jar
/var/lib/tomcat5/server/lib/catalina-optional.jar
/var/lib/tomcat5/server/lib/tomcat-http.jar
/var/lib/tomcat5/server/lib/tomcat-apr.jar
/var/lib/tomcat5/server/lib/[catalina-ant5].jar
/var/lib/tomcat5/server/lib/[commons-fileupload].jar
/var/lib/tomcat5/server/lib/servlets-invoker.jar
/var/lib/tomcat5/server/lib/servlets-ssi.renametojar
/var/lib/tomcat5/server/lib/servlets-webdav.jar
/var/lib/tomcat5/server/lib/[commons-logging].jar
/var/lib/tomcat5/server/lib/catalina.jar
/var/lib/tomcat5/server/lib/tomcat-coyote.jar
/var/lib/tomcat5/server/lib/[commons-modeler].jar
/var/lib/tomcat5/server/lib/[mx4j][mx4j].jar
/var/lib/tomcat5/server/lib/[commons-beanutils].jar
/var/lib/tomcat5/server/lib/[regexp].jar
/var/lib/tomcat5/server/lib/jdtcore.jar
/var/lib/tomcat5/server/lib/servlets-cgi.renametojar

there is no directory /var/lib/tomcat5/lib/