You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/04/30 11:00:17 UTC

DO NOT REPLY [Bug 8641] New: - javax.xml.parsers.FactoryConfigurationError: Provider not found

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8641

javax.xml.parsers.FactoryConfigurationError: Provider not found

           Summary: javax.xml.parsers.FactoryConfigurationError: Provider
                    not found
           Product: XalanJ2
           Version: 2.3
          Platform: PC
               URL: http://stephan.mattelaer@friendsprovident.co.uk
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-CmdLine
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: stephan.mattelaer@friendsprovident.co.uk


I have just installed XALANJ2 version 2.3.1 and I have a problem similar to the 
one described in bugzilla bug number 5336.

I ran the simpletrans sample application included with Xalan and with the 
verbose option turned on, I get the following (last few lines of output)

org.xml.sax.SAXException: javax.xml.parsers.FactoryConfigurationError: Provider
for javax.xml.parsers.SAXParserFactory cannot be found
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:958)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
sformerFactoryImpl.java:799)
        at SimpleTransform.main(SimpleTransform.java:90)
[Loaded java.lang.Shutdown$Lock from C:\PROGRAM FILES\JAVASOFT\JRE\1.3.1_02\lib\
rt.jar]

to confirm that my environment is correct I ran the provided application 
ENVCHECK with the following result

#---- BEGIN writeEnvironmentReport($Revision: 1.10 $): Useful stuff found: ----
version.DOM.draftlevel=2.0fd
java.class.path=xalan.jar;xml-apis.jar;xerceslmpl.jar
version.JAXP=1.1
java.ext.dirs=C:\JDK1.3.1_02\JRE\lib\ext
version.xerces2=not-present
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.3.1
version.xalan1=not-present
version.ant=not-present
java.version=1.3.1_02
version.DOM=2.0
version.crimson=not-present
sun.boot.class.path=C:\JDK1.3.1_02\JRE\lib\rt.jar;C:\JDK1.3.1_02
\JRE\lib\i18n.jar;C:\JDK1.3.1_02\JRE\lib\sunrsasign.jar;C:\JDK1.3.1_02
\JRE\classes
#---- BEGIN Listing XML-related jars in: foundclasses.java.class.path ----
xalan.jar-apparent.version=xalan.jar WARNING.present-unknown-version
xalan.jar-path=C:\Stephan\xmlconv\xalan.jar
xml-apis.jar-apparent.version=xml-apis.jar from xalan-j_2_3_0 from xml-commons-
1.0.b2
xml-apis.jar-path=C:\Stephan\xmlconv\xml-apis.jar
#----- END Listing XML-related jars in: foundclasses.java.class.path -----
version.SAX=2.0
version.xalan2x=Xalan Java 2.3.1
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.


the batch file used to produce this contains the following and was run from the 
directory containing all the required files

java -classpath xalan.jar;xml-apis.jar;xerceslmpl.jar -verbose 
org.apache.xalan.xslt.EnvironmentCheck -out outFile

The batch file to run the Simpletrans sample contained the following and was 
run from the same directory as the Envcheck above

java -classpath xalan.jar;xml-apis.jar;xerceslmpl.jar;xalansamples.jar -verbose 
SimpleTransform


I do not have a jaxp.properties file anywhere on my system

I have tried to add the -D option on the JAVA command line to force things but 
this made no difference at all

in the xalan.jar file, there is a javax.xml.transform.TransformerFactory of 
TRANSFORMERFACTORY file type which contains the following
org.apache.xalan.processor.TransformerFactoryImpl

There is no xerces.jar nor crimsom.jar files anywhere on my system.

The Java version I am using is as follows

C:\Stephan\xmlconv>java -version
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

I am currently running on an IBM thinkpad running at Windows 95 

I hope I have provided all the information you need, but please let me know 
what else I can provide you to help in resolving this

Thanks in advance

Stephan Mattelaer