Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-257

binary download is missing a library needed for svalidate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Version 2
    • None
    • Validator
    • None

    Description

      I downloaded xmlbeans from http://apache.seekmeup.com/xmlbeans/binaries/xmlbeans-2.0.0.tgz, set my XMLBEANS_HOME and XMLBEANS_LIB directories, and tried to run svalidate - it throws javax.xml.stream.FactoryConfigurationError, complaining that Provider com.bea.xml.stream.MXParserFactory not found. This was happening because jsr173_ri.jar wasn't included in the lib directory of the binary download. I found that lib on the Net and put it in place, and svalidate works.

      (I had the same problem under Linux and Windows.)

      Also, the bin/validate command has an upper/lowercase problem:

      cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/jsr173_api.jar:$XMLBEANS_LIB/jsr173_ri.jar

      case "`uname`" in
      CYGWIN*)
      CP=`cygpath -w -p $CP`
      ;;
      esac

      java -classpath $CP org.apache.xmlbeans.impl.tool.StreamInstanceValidator $*

      I think you want "CP" everywhere that "cp" is set.

      • Mike Schwartz
        Local Matters, Inc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mfschwartz Mike Schwartz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: