You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/01/26 07:34:37 UTC

DO NOT REPLY [Bug 50658] New: Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

           Summary: Jars information xercesImpl.jar and xml-apis.jar in
                    Apache ANT 1.8.2
           Product: Ant
           Version: 1.8.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Build Process
        AssignedTo: notifications@ant.apache.org
        ReportedBy: ashish.soni@siemens.com


Hello,

I need a imformation of xercesImpl.jar and xml-apis.jar. Why this api jars is
not a part of Apache ANT 1.8.2 binary package. Because of that i am getting the
"Could not load org.apache.xerces.parsers.SAXParser: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found:
org.apache.xerces.parsers.SAXParser" error when custom ant task is trying to
load a org.apache.xerces.parsers.SAXParser using SAXBuilder of JDOM1.1.1. I had
raised a bug with all detail in bugzilla with id: 50652. 
After placing the jars (xercesImpl.jar and xml-apis.jar) of Apache ANT 1.7.1 on
Apache ANT 1.8.2 lib this error is resolve. Even I have given the location of
xercesImpl.jar and xml-apis.jar in classpath when defining the taskdef for
custom ant task its not working. 

Thanks
Ashish Soni

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

--- Comment #1 from ashish.soni@siemens.com <as...@siemens.com> 2011-01-26 09:46:49 EST ---
Hi, 

It's clear from LICENSE file that SAX 2.0 lib no more the part of Apache ANT
1.8.1 and afterward version.

"I hereby abandon any property rights to SAX 2.0 (the Simple API for
XML), and release all of the SAX 2.0 source code, compiled code, and
documentation contained in this distribution into the Public Domain.
SAX comes with NO WARRANTY or guarantee of fitness for any
purpose."

Now question is that "why ANT is not picking the SAX 2.0 from taskdef
classpath".

Thanks
Ashish Soni

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #3 from Stefan Bodewig <bo...@apache.org> 2011-01-26 10:43:15 EST ---
You are reading way too much into the SAX2 license.

Ant's binary distributions used to ship xml-apis and Xerces as a convenience
to make sure there was a namespace aware XML parser around.  Since Ant 1.8.0
Ant requires JDK 1.4 or better so a parser that matches Ant's needs is there.

Starting with Ant 1.8.1 we've removed Xerces and xml-apis jar to reduce the
download size for most users - this is documented in the release notes
of Ant 1.8.1.

If you are using a task that requires Xerces (and can't live with a different
XML parser) than you used to get that for free but will now have to add
Xerces <http://xerces.apache.org/> manually.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

ashish.soni@siemens.com <as...@siemens.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #4 from ashish.soni@siemens.com <as...@siemens.com> 2011-01-26 11:40:57 EST ---
Hello Stefan,

"If you are using a task that requires Xerces (and can't live with a different
XML parser) than you used to get that for free but will now have to add
Xerces <http://xerces.apache.org/> manually."

If i understood properly, then i have to download "xercesImpl.jar and
xml-apis.jar" and put them into the \apache-ant-1.8.1\lib. 

But my question is that if i will use 
<taskdef name="JDOM" classname="TestJDOM">
 <classpath>
  <pathelement location="${basedir}"/>
  <pathelement location="D:/apache-ant-1.8.1/sample/lib/jdom/build/jdom.jar"/>
  <pathelement
location="D:/apache-ant-1.8.1/sample/lib/xerces/xercesImpl.jar"/>
  <pathelement location="D:/apache-ant-1.8.1/sample/lib/xerces/xml-apis.jar"/>
 </classpath>
</taskdef>

Why the above step is not working

Thanks in advance

Ashish Soni

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #5 from Stefan Bodewig <bo...@apache.org> 2011-01-30 02:07:56 EST ---


*** This bug has been marked as a duplicate of bug 50678 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2011-01-26 10:38:24 EST ---
*** Bug 50652 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 50658] Jars information xercesImpl.jar and xml-apis.jar in Apache ANT 1.8.2

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50658

ashish.soni@siemens.com <as...@siemens.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|VERIFIED                    |REOPENED
         Resolution|WONTFIX                     |

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.