Hey Adam,
Thanks for ur reply.
I managed to change the java location which ant was using to 1.5 but
still the same error....
Posted below is the output of ant-diagnostics command and then the
same build.xml command which gives the same error as previously..

*********************************************************************************************************************************************

E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant -diagnostics
------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on December 13 2006

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
ant.java.version: 1.5
ant.core.lib: C:\Program Files\WinAnt\lib\ant.jar
ant.home: C:\Program Files\WinAnt

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\Program Files\WinAnt
ant-antlr.jar (5769 bytes)
ant-apache-bcel.jar (8627 bytes)
ant-apache-bsf.jar (3980 bytes)
ant-apache-log4j.jar (3074 bytes)
ant-apache-oro.jar (39591 bytes)
ant-apache-regexp.jar (3737 bytes)
ant-apache-resolver.jar (4080 bytes)
ant-commons-logging.jar (3943 bytes)
ant-commons-net.jar (47163 bytes)
ant-contrib-1.0b3.jar (224277 bytes)
ant-jai.jar (21368 bytes)
ant-javamail.jar (7011 bytes)
ant-jdepend.jar (8152 bytes)
ant-jmf.jar (6609 bytes)
ant-jsch.jar (30122 bytes)
ant-junit.jar (92792 bytes)
ant-launcher.jar (11734 bytes)
ant-netrexx.jar (9895 bytes)
ant-nodeps.jar (430311 bytes)
ant-starteam.jar (35404 bytes)
ant-stylebook.jar (2334 bytes)
ant-swing.jar (6713 bytes)
ant-testutil.jar (14919 bytes)
ant-trax.jar (6897 bytes)
ant-weblogic.jar (14254 bytes)
ant.jar (1289806 bytes)
xercesImpl.jar (1212965 bytes)
xml-apis.jar (195119 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Documents and Settings\Administrator
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying
to use it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: C:\Program Files\Java\jdk1.5.0_10\jre\lib\ext
\xerces.jar
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant build.xml
Buildfile: build.xml

BUILD FAILED
java.lang.AbstractMethodError:
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:
172)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
185)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
138)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
96)
        at org.apache.tools.ant.Main.runBuild(Main.java:683)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:
104)

Total time: 0 seconds
java.lang.AbstractMethodError:
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
        at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:
172)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
185)
        at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
138)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
96)
        at org.apache.tools.ant.Main.runBuild(Main.java:683)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:
104)
javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>

*********************************************************************************************************************************************

Let me know what shall i do next...

On Jan 4, 2:13 pm, adam_j_bradley <[EMAIL PROTECTED]>
wrote:
> Given its an XML parsing related issue, try resolving this
>
> ---snip---
> XML Parser Location: C:\j2sdk1.4.2_10\jre\lib\ext\xerces.jar
> javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
> ---snip---
>
> Don't quite know why Ant is trying to use 1.4.2 but you really should
> be using 1.5 for everything!
> Adam
>
> On Jan 4, 5:51 pm, Kunal <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Megha,
> > I reinstalled Ant using winantinstaller.exe.
> > Also checked that my Java_Home variable is pointing to the correct jdk
> > 1.5
> > Still it is showing the same error.
>
> > On Jan 4, 3:29 am, "Megha (Google)" <[EMAIL PROTECTED]> wrote:
>
> > > Hi Kunal,
>
> > > You do not need to clear the PATH variable. Ant location needs to be
> > > set in the PATH variable for running the Ant command.
> > > Please make sure that your JAVA_HOME environment variable is set
> > > correctly.
>
> > > We discovered by running the small build.xml file before that the
> > > issue lies with the Ant installation on your system.
> > > You can try re-installing Ant 1.7. You can also consult one of the
> > > Apache Ant forums to get further help in troubleshooting Ant
> > > installation.
>
> > > Once Ant 7.0 is up and running, try running the Google Apps Sample
> > > application.
>
> > > Thanks,
> > > Megha
>
> > > On Jan 3, 4:50 am, Kunal <[EMAIL PROTECTED]> wrote:
>
> > > > I do not have a CLASSPATH variable. I am working in windows
> > > > environment. I have tried to clear the Path variable but it says
> > > > cannot find ant command.
>
> > > > On Jan 3, 5:35 pm, Kunal <[EMAIL PROTECTED]> wrote:
>
> > > > > Thanks for your reply Megha.
> > > > > I have run the diagnostics option on ant and got the following
> > > > > output :
>
> > > > > ***************************************************************************­­­**************************************************************
>
> > > > > C:\Documents and Settings\Administrator>ant -diagnostics
> > > > > ------- Ant diagnostics report -------
> > > > > Apache Ant version 1.7.0 compiled on December 13 2006
>
> > > > > -------------------------------------------
> > > > >  Implementation Version
> > > > > -------------------------------------------
> > > > > core tasks     : 1.7.0
> > > > > optional tasks : not available
>
> > > > > -------------------------------------------
> > > > >  ANT PROPERTIES
> > > > > -------------------------------------------
> > > > > ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
> > > > > ant.java.version: 1.4
> > > > > ant.core.lib: E:\Kunal\Google Apps\apache-ant-1.7.0-bin\apache-
> > > > > ant-1.7.0\lib\ant.jar
> > > > > ant.home: E:\Kunal\Google Apps\apache-ant-1.7.0-bin\apache-ant-1.7.0
>
> > > > > -------------------------------------------
> > > > >  ANT_HOME/lib jar listing
> > > > > -------------------------------------------
> > > > > ant.home: E:\Kunal\Google Apps\apache-ant-1.7.0-bin\apache-ant-1.7.0
> > > > > ant-antlr.jar (5769 bytes)
> > > > > ant-apache-bcel.jar (8627 bytes)
> > > > > ant-apache-bsf.jar (3980 bytes)
> > > > > ant-apache-log4j.jar (3074 bytes)
> > > > > ant-apache-oro.jar (39591 bytes)
> > > > > ant-apache-regexp.jar (3737 bytes)
> > > > > ant-apache-resolver.jar (4080 bytes)
> > > > > ant-commons-logging.jar (3943 bytes)
> > > > > ant-commons-net.jar (47163 bytes)
> > > > > ant-jai.jar (21368 bytes)
> > > > > ant-javamail.jar (7011 bytes)
> > > > > ant-jdepend.jar (8152 bytes)
> > > > > ant-jmf.jar (6609 bytes)
> > > > > ant-jsch.jar (30122 bytes)
> > > > > ant-junit.jar (92792 bytes)
> > > > > ant-launcher.jar (11734 bytes)
> > > > > ant-netrexx.jar (9895 bytes)
> > > > > ant-nodeps.jar (430311 bytes)
> > > > > ant-starteam.jar (35404 bytes)
> > > > > ant-stylebook.jar (2334 bytes)
> > > > > ant-swing.jar (6713 bytes)
> > > > > ant-testutil.jar (14919 bytes)
> > > > > ant-trax.jar (6897 bytes)
> > > > > ant-weblogic.jar (14254 bytes)
> > > > > ant.jar (1289806 bytes)
> > > > > xercesImpl.jar (1212965 bytes)
> > > > > xml-apis.jar (195119 bytes)
>
> > > > > -------------------------------------------
> > > > >  USER_HOME/.ant/lib jar listing
> > > > > -------------------------------------------
> > > > > user.home: C:\Documents and Settings\Administrator
> > > > > No such directory.
>
> > > > > -------------------------------------------
> > > > >  Tasks availability
> > > > > -------------------------------------------
> > > > > image : Missing dependency javax.media.jai.PlanarImage
> > > > > sshexec : Missing dependency com.jcraft.jsch.UserInfo
> > > > > scp : Missing dependency com.jcraft.jsch.UserInfo
> > > > > jdepend : Missing dependency jdepend.xmlui.JDepend
> > > > > A task being missing/unavailable should only matter if you are trying
> > > > > to use it
>
> > > > > -------------------------------------------
> > > > >  org.apache.env.Which diagnostics
> > > > > -------------------------------------------
> > > > > Not available.
> > > > > Download it athttp://xml.apache.org/commons/
>
> > > > > -------------------------------------------
> > > > >  XML Parser information
> > > > > -------------------------------------------
> > > > > XML Parser : org.apache.xerces.jaxp.SAXParserImpl
> > > > > XML Parser Location: C:\j2sdk1.4.2_10\jre\lib\ext\xerces.jar
> > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
> > > > > C:\Documents and Settings\Administrator>
>
> > > > > ***************************************************************************­­­************************************************************
>
> > > > > Please let me know if things are ok?
>
> > > > > On Dec 20 2007, 5:30 am, "Megha (Google)" <[EMAIL PROTECTED]>
> > > > > wrote:
>
> > > > > > HiKunal,
>
> > > > > > The command is correct and the error that you are getting shows that
> > > > > > Ant installation on your system is having some issues.
>
> > > > > > Please try troubleshooting the Ant installation issues and run the
> > > > > > sample build file again.
> > > > > > As I mentioned earlier, you could try clearing the CLASSPATH .
> > > > > > You can also try running Ant with -diagnostics option and check the
> > > > > > configuration.
>
> > > > > > Thanks,
> > > > > > Megha
>
> > > > > > On Dec 19, 1:17 am,Kunal<[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi Megha,
> > > > > > > Thanks for ur reply.
> > > > > > > I made a build.xml with the following text that you have 
> > > > > > > mentioned.
> > > > > > > Then i tried to run it, it gave me the following error.
>
> > > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>dir
> > > > > > >  Volume in drive E is New Volume
> > > > > > >  Volume Serial Number is B053-950B
>
> > > > > > >  Directory of E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java
>
> > > > > > > 12/19/2007  02:48 PM    <DIR>          .
> > > > > > > 12/19/2007  02:48 PM    <DIR>          ..
> > > > > > > 11/26/2007  02:23 PM    <DIR>          build
> > > > > > > 12/19/2007  02:49 PM               122 build.xml
> > > > > > > 11/15/2007  12:09 PM             3,818 build1.xml
> > > > > > > 11/26/2007  02:23 PM    <DIR>          classes
> > > > > > > 11/26/2007  02:23 PM    <DIR>          doc
> > > > > > > 11/26/2007  02:23 PM    <DIR>          genfiles
> > > > > > > 11/26/2007  02:23 PM    <DIR>          lib
> > > > > > > 11/26/2007  02:23 PM    <DIR>          manifest
> > > > > > > 11/26/2007  02:23 PM    <DIR>          mashups
> > > > > > > 11/26/2007  03:34 PM    <DIR>          mysample
> > > > > > > 11/26/2007  02:23 PM    <DIR>          sample
> > > > > > > 11/26/2007  02:23 PM    <DIR>          src
> > > > > > >                2 File(s)          3,940 bytes
> > > > > > >               12 Dir(s)  10,158,620,672 bytes free
>
> > > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>ant build.xml
> > > > > > > Buildfile: build.xml
>
> > > > > > > BUILD FAILED
> > > > > > > java.lang.AbstractMethodError:
> > > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
> > > > > > >         at
> > > > > > > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:
> > > > > > > 172)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> > > > > > > 185)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> > > > > > > 138)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
> > > > > > > 96)
> > > > > > >         at org.apache.tools.ant.Main.runBuild(Main.java:683)
> > > > > > >         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > > > > >         at 
> > > > > > > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > > > > >         at 
> > > > > > > org.apache.tools.ant.launch.Launcher.main(Launcher.java:
> > > > > > > 104)
>
> > > > > > > Total time: 0 seconds
> > > > > > > java.lang.AbstractMethodError:
> > > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
> > > > > > >         at
> > > > > > > org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:
> > > > > > > 172)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> > > > > > > 185)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> > > > > > > 138)
> > > > > > >         at
> > > > > > > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
> > > > > > > 96)
> > > > > > >         at org.apache.tools.ant.Main.runBuild(Main.java:683)
> > > > > > >         at org.apache.tools.ant.Main.startAnt(Main.java:199)
> > > > > > >         at 
> > > > > > > org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> > > > > > >         at 
> > > > > > > org.apache.tools.ant.launch.Launcher.main(Launcher.java:
> > > > > > > 104)
> > > > > > > javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
> > > > > > > E:\Kunal\Google Apps\gdata.java-1.15.0\gdata\java>
>
> > > > > > > Let me know if I am running the ant command properly.
>
> > > > > > > On Dec 18, 4:39 am, "Megha (Google)" <[EMAIL PROTECTED]> wrote:
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to