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=5572>.
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=5572

Beta 4 Jar Files Need Re-compiling

           Summary: Beta 4 Jar Files Need Re-compiling
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There are a couple of problems with the jar files and source code provided with
Xerces 2.0 beta 4.

1) It is not possible to run the sax.DocumenTracer sample program using the jar
files provided in the binary distribution of beta 4. The error message returned
by the Java runtime environment is:

error: Unable to instantiate parser (org.apache.xerces.parsers.SAXParser) 

I had to download and recompile the beta 4 src distribution to get around the
problem.

I was running the sample program as follows:

java -cp
/usr/local/src/xerces-2_0_0_beta4/xerces.jar:/usr/local/src/xerces-2_0_0_beta4/xmlParserAPIs.jar:/usr/local/src/xerces-2_0_0_beta4/xercesSamples.jar
sax.DocumentTracer $*

2) The samples/dom/DOMADDlines.java program will not compile in beta4.  The
following errors are detected:

symbol  : method startElement 
(org.apache.xerces.xni.QName,org.apache.xerces.xni.XMLAttributes)
location: class org.apache.xerces.parsers.DOMParser
      super.startElement(elementQName, attrList);
           ^
dom/DOMAddLines.java:250: cannot resolve symbol
symbol  : variable fEntityManager
location: class dom.DOMAddLines
          node.setUserData(  String.valueOf(
fEntityManager.getEntityScanner().getLineNumber() ) ); // Save location String
into node
                                             ^
dom/DOMAddLines.java:258: cannot resolve symbol
symbol  : method startDocument  ()
location: class org.apache.xerces.parsers.DOMParser
     super.startDocument();
          ^
dom/DOMAddLines.java:271: cannot resolve symbol
symbol  : variable fEntityManager
location: class dom.DOMAddLines
          node.setUserData(  String.valueOf(
fEntityManager.getEntityScanner().getLineNumber() ) ); // Save location String
into node
                                             ^
dom/DOMAddLines.java:278: cannot resolve symbol
symbol  : method ignorableWhitespace  (org.apache.xerces.xni.XMLString)
location: class org.apache.xerces.parsers.DOMParser
       super.ignorableWhitespace( text);
            ^

Thank you for your assistance with this matter.

Geoff Mottram
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to