From user-return-69381-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Nov 17 12:50:01 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 19130 invoked from network); 17 Nov 2009 12:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 12:50:01 -0000 Received: (qmail 53376 invoked by uid 500); 17 Nov 2009 12:49:59 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 53304 invoked by uid 500); 17 Nov 2009 12:49:58 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 53294 invoked by uid 99); 17 Nov 2009 12:49:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 12:49:58 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.154.176.138] (HELO icon040.icongmbh.de) (62.154.176.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 12:49:55 +0000 Received: from icsrv02.icongmbh.de (unknown [192.168.195.2]) by icon040.icongmbh.de (Postfix) with ESMTP id B492113C85 for ; Tue, 17 Nov 2009 13:49:31 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Classpath and taskdef Date: Tue, 17 Nov 2009 13:49:31 +0100 Message-ID: <06080D44730F41428BAF2168FA8BDD800406DB03@icsrv02.icongmbh.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Classpath and taskdef Thread-Index: AcpnhGfvKQPuLD4uQBuviotIdX3mwA== From: "Knuplesch, Juergen" To: "Ant Users List" Hello, I created a task called dope-task. This task gets the following = exception, but only when I use Ant. I have the same functionality without Ant and everything works fine. I fear that this is a classptah issue. It happen s when parsing XML. I want to use the xmlparser of Java = 1.6.0_17, but it seems, Zhat the Ant xml parser is used. Is Ant adding his own classpath to the classptah of the task? Or any other idea? [dope-task] 398.) Font: C0N400Z0 -1 (durch Datei-Version -1 ersetzt.) [dope-task] 399.) JavaScript: DJSF9236 -1 (durch Datei-Version -1 = ersetzt.) [dope-task] 400.) Font: C0N20090 -1 (durch Datei-Version -1 ersetzt.) [dope-task] 2009-11-16 21:45:55.579 [E] = de.icongmbh.dope.util.reload.ReloadManager $Revision: 1.315 $ execute() = main=20 [dope-task] java.lang.ArrayIndexOutOfBoundsException: -1 [dope-task] at = com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.addAttribute(XM= LAttributesImpl.java:310) [dope-task] at = com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.addAttribute(XM= LAttributesImpl.java:216) [dope-task] at = com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.addDefaultA= ttributes(XMLSchemaValidator.java:2868) [dope-task] at = com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStart= Element(XMLSchemaValidator.java:2041) [dope-task] at = com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElemen= t(XMLSchemaValidator.java:685) [dope-task] at = com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.s= tartElement(ValidatorHandlerImpl.java:549) [dope-task] at = org.apache.xerces.jaxp.JAXPValidatorComponent$XNI2SAX.startElement(Unknow= n Source) [dope-task] at = org.apache.xerces.jaxp.JAXPValidatorComponent.startElement(Unknown = Source) [dope-task] at = org.apache.xerces.jaxp.JAXPValidatorComponent.emptyElement(Unknown = Source) [dope-task] at = org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown = Source) [dope-task] at = org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp= atcher.dispatch(Unknown Source) [dope-task] at = org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknow= n Source) [dope-task] at = org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [dope-task] at = org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [dope-task] at org.apache.xerces.parsers.XMLParser.parse(Unknown = Source) [dope-task] at = org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [dope-task] at = org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [dope-task] at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown = Source) [dope-task] at = de.icongmbh.dope.util.reload.ReloadManager.createRepositoryObjects(Reload= Manager.java:1475) [dope-task] at = de.icongmbh.dope.util.reload.ReloadManager.execute(ReloadManager.java:323= ) [dope-task] at = de.icongmbh.dope.util.ant.ReloadTask$1.execute(ReloadTask.java:47) [dope-task] at = de.icongmbh.dope.util.ant.SaveFormatTask.execute(SaveFormatTask.java:106)= [dope-task] at = org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [dope-task] at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown = Source) [dope-task] at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) [dope-task] at java.lang.reflect.Method.invoke(Method.java:597) [dope-task] at = org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10= 6) [dope-task] at org.apache.tools.ant.Task.perform(Task.java:348) [dope-task] at org.apache.tools.ant.Target.execute(Target.java:357) [dope-task] at = org.apache.tools.ant.Target.performTasks(Target.java:385) [dope-task] at = org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [dope-task] at = org.apache.tools.ant.Project.executeTarget(Project.java:1306) [dope-task] at = net.sf.antcontrib.logic.RunTargetTask.execute(RunTargetTask.java:48) [dope-task] at = org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [dope-task] at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown = Source) [dope-task] at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) [dope-task] at java.lang.reflect.Method.invoke(Method.java:597) [dope-task] at = org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10= 6) [dope-task] at org.apache.tools.ant.Task.perform(Task.java:348) [dope-task] at = org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62) [dope-task] at = org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [dope-task] at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown = Source) [dope-task] at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) [dope-task] at java.lang.reflect.Method.invoke(Method.java:597) [dope-task] at = org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10= 6) [dope-task] at org.apache.tools.ant.Task.perform(Task.java:348) [dope-task] at = org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:39= 4) [dope-task] at = net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259) [dope-task] at = net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268) [dope-task] at = net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299) [dope-task] at = net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244) [dope-task] at = org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [dope-task] at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown = Source) Greetings Juergen --=20 J=FCrgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstra=DFe 40 =20 D-70178 Stuttgart Fax. +49 711 806098-299 Gesch=E4ftsf=FChrer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org