Project

Profile

Help

Failed to load org.apache.crimson.parser.XmlR

Added by Anonymous over 19 years ago

Legacy ID: #3035336 Legacy Poster: Greg Mellinger (mellingg)

I have the following command-line specified in a UNIX C shell script: java -cp .:saxon8.jar net.sf.saxon.Transform -x org.apache.crimson.parser.XmlReaderImpl -v -o $1.xyv $1.xml nlm2xyv.xsl cjs-sys-id="$2" xpp-issue="$3" xpp-division="$4" When attempting to run this script I receive the following error message: Transformation failed: net.sf.saxon.xpath.DynamicError: Failed to load org.apache.crimson.parser.XmlReaderImpl Both crimson.jar and saxon8.jar are located in my current directory.


Replies (5)

Please register to reply

RE: Failed to load org.apache.crimson.parser. - Added by Anonymous over 19 years ago

Legacy ID: #3035345 Legacy Poster: Kevin Rodgers (notorious_kev)

Shouldn't that be: java -cp .:saxon8.jar:crimson.jar net.sf.saxon.Transform ...

RE: Failed to load org.apache.crimson.parser. - Added by Anonymous over 19 years ago

Legacy ID: #3035375 Legacy Poster: Michael Kay (mhkay)

Try org.apache.crimson.parser.XMLReaderImpl Michael Kay

RE: Failed to load org.apache.crimson.parser. - Added by Anonymous over 19 years ago

Legacy ID: #3036431 Legacy Poster: Greg Mellinger (mellingg)

Tried java -cp .:saxon8.jar:crimson.jar net.sf.saxon.Transform ... and received the same error message. The reader that I'm trying to load is org.apache.crimson.parser.XMLReaderImpl

RE: Failed to load org.apache.crimson.parser. - Added by Anonymous over 19 years ago

Legacy ID: #3036481 Legacy Poster: Michael Kay (mhkay)

This works fine for me on Windows: set CLASSPATH=c:\JavaLib\crimson-1.1.3\crimson.jar;c:\MyJava\saxon8.jar java net.sf.saxon.Transform -t -x org.apache.crimson.parser.XMLReaderImpl test.xml test.xsl Michael Kay

RE: Failed to load org.apache.crimson.parser. - Added by Anonymous over 19 years ago

Legacy ID: #3036899 Legacy Poster: Greg Mellinger (mellingg)

Thanks Mike. I was able to successfully run the XSLT process on Windows XP using your example above. However, on UNIX (Solaris), I needed to specify the following : -y org.apache.crimson.parser.XMLReaderImpl since I received undeclared element name parsing errors on my XSLT stylesheet. Is there a reason why on Windows it works one way and on UNIX it works another? Anyway, I certainly appreciate all of your help!! Respectfully, Greg

    (1-5/5)

    Please register to reply