You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Adrian Herscu <bm...@fastmail.fm> on 2006/03/07 20:48:36 UTC
[m202] SAX 2.0.2 support missing from ibiblio
Hi all,
Anyone tried to use ANT xmlvalidate task from Maven?
It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
Adrian.
P.S. Here is the stack trace:
java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
oader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
m.java:255)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
Source)
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
rce)
at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
at
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
ce)
at
org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
at
org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
ava:163)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
193)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
140)
at
org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
ScriptInvoker.java:194)
at
org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
a:33)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:531)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m202] SAX 2.0.2 support missing from ibiblio
Posted by Adrian Herscu <bm...@fastmail.fm>.
Meanwhile, it is documented here.
The problem is deeper than that. Why there is no metadata about these
dependencies?
Wayne Fay wrote:
> Excellent. Now let's see about getting that documented somewhere. ;-)
>
> Wayne
>
>
> On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
>> SOLVED
>> -------
>> The dependencies list for the <xmlvalidate> task in ant-1.6.5 is:
>> ant-node-ps-1.6.5 -- supplies the optional task classes
>> xercesImpl-2.7.1 -- provides XML schema validation service
>> xml-apis-1.3.02 -- supplies the SAX 2.0.2 Extensions required by
>> xercesImpl-2.7.1
>>
>> Adrian Herscu wrote:
>>> Yes, you guessed right, I am (still) using the JDK 1.4. I am afraid that
>>> upgrading to the new JDK will cause me other dependencies headaches.
>>>
>>> Found in the ANT forum that the xml-apis.jar, which belong to Xerces
>>> 2.7.1, was uploaded to ibiblio as xml-apis-1.3.02.jar. (spent four hours
>>> to find that -- who said that JAR hell is better than DLL hell?)
>>>
>>> However, the xmlvalidate task of ANT (1.6.5) still does not work -- any
>>> experience with that?
>>>
>>> Wayne Fay wrote:
>>>> Probably no one has missed this because this is included in JDK5. You
>>>> are running jdk1.3 or 1.4, I'm guessing?
>>>>
>>>> You could probably find this in Saxon 6.5.3 (haven't checked!) or a
>>>> similar library. Find a library in ibiblio which implements it, add
>>>> the library as a dependency and see if it works? ;-)
>>>>
>>>> This is why classifiers are sometimes used -- so we can have a JDK4
>>>> "version" of the maven-script-ant that includes Saxon as a dependency,
>>>> and a JDK5 "version" which has no such dep.
>>>>
>>>> Wayne
>>>>
>>>>
>>>> On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
>>>>> Hi all,
>>>>>
>>>>> Anyone tried to use ANT xmlvalidate task from Maven?
>>>>>
>>>>> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
>>>>> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
>>>>> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
>>>>>
>>>>> Adrian.
>>>>>
>>>>> P.S. Here is the stack trace:
>>>>> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
>>>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>>>>> at
>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
>>>>> 3)
>>>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>>>>> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>>>>> at
>>>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>>>>> oader.java:195)
>>>>> at
>>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>>>>> m.java:255)
>>>>> at
>>>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>>>>> java:214)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>>>> at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
>>>>> Source)
>>>>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>>>>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>>>>> at
>>>>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
>>>>> rce)
>>>>> at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>>>>> at
>>>>> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
>>>>> ce)
>>>>> at
>>>>> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
>>>>> at
>>>>> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
>>>>> ava:163)
>>>>> at
>>>>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>>>>> 193)
>>>>> at
>>>>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>>>>> 140)
>>>>> at
>>>>> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
>>>>> ScriptInvoker.java:194)
>>>>> at
>>>>> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
>>>>> a:33)
>>>>> at
>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>>>> nManager.java:415)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>>> ultLifecycleExecutor.java:531)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>>>> fecycle(DefaultLifecycleExecutor.java:472)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>>>> ltLifecycleExecutor.java:451)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>>>> dleFailures(DefaultLifecycleExecutor.java:303)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>>>> ts(DefaultLifecycleExecutor.java:270)
>>>>> at
>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>>>> fecycleExecutor.java:139)
>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>> java:39)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>> sorImpl.java:25)
>>>>> at java.lang.reflect.Method.invoke(Method.java:324)
>>>>> at
>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>> at
>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>
>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m202] SAX 2.0.2 support missing from ibiblio
Posted by Wayne Fay <wa...@gmail.com>.
Excellent. Now let's see about getting that documented somewhere. ;-)
Wayne
On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
> SOLVED
> -------
> The dependencies list for the <xmlvalidate> task in ant-1.6.5 is:
> ant-node-ps-1.6.5 -- supplies the optional task classes
> xercesImpl-2.7.1 -- provides XML schema validation service
> xml-apis-1.3.02 -- supplies the SAX 2.0.2 Extensions required by
> xercesImpl-2.7.1
>
> Adrian Herscu wrote:
> > Yes, you guessed right, I am (still) using the JDK 1.4. I am afraid that
> > upgrading to the new JDK will cause me other dependencies headaches.
> >
> > Found in the ANT forum that the xml-apis.jar, which belong to Xerces
> > 2.7.1, was uploaded to ibiblio as xml-apis-1.3.02.jar. (spent four hours
> > to find that -- who said that JAR hell is better than DLL hell?)
> >
> > However, the xmlvalidate task of ANT (1.6.5) still does not work -- any
> > experience with that?
> >
> > Wayne Fay wrote:
> >> Probably no one has missed this because this is included in JDK5. You
> >> are running jdk1.3 or 1.4, I'm guessing?
> >>
> >> You could probably find this in Saxon 6.5.3 (haven't checked!) or a
> >> similar library. Find a library in ibiblio which implements it, add
> >> the library as a dependency and see if it works? ;-)
> >>
> >> This is why classifiers are sometimes used -- so we can have a JDK4
> >> "version" of the maven-script-ant that includes Saxon as a dependency,
> >> and a JDK5 "version" which has no such dep.
> >>
> >> Wayne
> >>
> >>
> >> On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
> >>> Hi all,
> >>>
> >>> Anyone tried to use ANT xmlvalidate task from Maven?
> >>>
> >>> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
> >>> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
> >>> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
> >>>
> >>> Adrian.
> >>>
> >>> P.S. Here is the stack trace:
> >>> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
> >>> at java.lang.ClassLoader.defineClass0(Native Method)
> >>> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> >>> at
> >>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> >>> 3)
> >>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> >>> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> >>> at
> >>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> >>> oader.java:195)
> >>> at
> >>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> >>> m.java:255)
> >>> at
> >>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> >>> java:214)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> >>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> >>> at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
> >>> Source)
> >>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
> >>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
> >>> at
> >>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
> >>> rce)
> >>> at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
> >>> at
> >>> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
> >>> ce)
> >>> at
> >>> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
> >>> at
> >>> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
> >>> ava:163)
> >>> at
> >>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> >>> 193)
> >>> at
> >>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> >>> 140)
> >>> at
> >>> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> >>> ScriptInvoker.java:194)
> >>> at
> >>> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
> >>> a:33)
> >>> at
> >>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> >>> nManager.java:415)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> >>> ultLifecycleExecutor.java:531)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> >>> fecycle(DefaultLifecycleExecutor.java:472)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> >>> ltLifecycleExecutor.java:451)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> >>> dleFailures(DefaultLifecycleExecutor.java:303)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> >>> ts(DefaultLifecycleExecutor.java:270)
> >>> at
> >>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> >>> fecycleExecutor.java:139)
> >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> at
> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >>> java:39)
> >>> at
> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >>> sorImpl.java:25)
> >>> at java.lang.reflect.Method.invoke(Method.java:324)
> >>> at
> >>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>> at
> >>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>>
> >>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m202] SAX 2.0.2 support missing from ibiblio
Posted by Adrian Herscu <bm...@fastmail.fm>.
SOLVED
-------
The dependencies list for the <xmlvalidate> task in ant-1.6.5 is:
ant-node-ps-1.6.5 -- supplies the optional task classes
xercesImpl-2.7.1 -- provides XML schema validation service
xml-apis-1.3.02 -- supplies the SAX 2.0.2 Extensions required by
xercesImpl-2.7.1
Adrian Herscu wrote:
> Yes, you guessed right, I am (still) using the JDK 1.4. I am afraid that
> upgrading to the new JDK will cause me other dependencies headaches.
>
> Found in the ANT forum that the xml-apis.jar, which belong to Xerces
> 2.7.1, was uploaded to ibiblio as xml-apis-1.3.02.jar. (spent four hours
> to find that -- who said that JAR hell is better than DLL hell?)
>
> However, the xmlvalidate task of ANT (1.6.5) still does not work -- any
> experience with that?
>
> Wayne Fay wrote:
>> Probably no one has missed this because this is included in JDK5. You
>> are running jdk1.3 or 1.4, I'm guessing?
>>
>> You could probably find this in Saxon 6.5.3 (haven't checked!) or a
>> similar library. Find a library in ibiblio which implements it, add
>> the library as a dependency and see if it works? ;-)
>>
>> This is why classifiers are sometimes used -- so we can have a JDK4
>> "version" of the maven-script-ant that includes Saxon as a dependency,
>> and a JDK5 "version" which has no such dep.
>>
>> Wayne
>>
>>
>> On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
>>> Hi all,
>>>
>>> Anyone tried to use ANT xmlvalidate task from Maven?
>>>
>>> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
>>> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
>>> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
>>>
>>> Adrian.
>>>
>>> P.S. Here is the stack trace:
>>> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
>>> at java.lang.ClassLoader.defineClass0(Native Method)
>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>>> at
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
>>> 3)
>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>>> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>>> at
>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>>> oader.java:195)
>>> at
>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>>> m.java:255)
>>> at
>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>>> java:214)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>>> at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
>>> Source)
>>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>>> at
>>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
>>> rce)
>>> at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>>> at
>>> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
>>> ce)
>>> at
>>> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
>>> at
>>> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
>>> ava:163)
>>> at
>>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>>> 193)
>>> at
>>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>>> 140)
>>> at
>>> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
>>> ScriptInvoker.java:194)
>>> at
>>> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
>>> a:33)
>>> at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>> nManager.java:415)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>> ultLifecycleExecutor.java:531)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>> fecycle(DefaultLifecycleExecutor.java:472)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>> ltLifecycleExecutor.java:451)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>> dleFailures(DefaultLifecycleExecutor.java:303)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>> ts(DefaultLifecycleExecutor.java:270)
>>> at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>> fecycleExecutor.java:139)
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>> java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>> sorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:324)
>>> at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>> at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>
>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m202] SAX 2.0.2 support missing from ibiblio
Posted by Adrian Herscu <bm...@fastmail.fm>.
Yes, you guessed right, I am (still) using the JDK 1.4. I am afraid that
upgrading to the new JDK will cause me other dependencies headaches.
Found in the ANT forum that the xml-apis.jar, which belong to Xerces
2.7.1, was uploaded to ibiblio as xml-apis-1.3.02.jar. (spent four hours
to find that -- who said that JAR hell is better than DLL hell?)
However, the xmlvalidate task of ANT (1.6.5) still does not work -- any
experience with that?
Wayne Fay wrote:
> Probably no one has missed this because this is included in JDK5. You
> are running jdk1.3 or 1.4, I'm guessing?
>
> You could probably find this in Saxon 6.5.3 (haven't checked!) or a
> similar library. Find a library in ibiblio which implements it, add
> the library as a dependency and see if it works? ;-)
>
> This is why classifiers are sometimes used -- so we can have a JDK4
> "version" of the maven-script-ant that includes Saxon as a dependency,
> and a JDK5 "version" which has no such dep.
>
> Wayne
>
>
> On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
>> Hi all,
>>
>> Anyone tried to use ANT xmlvalidate task from Maven?
>>
>> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
>> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
>> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
>>
>> Adrian.
>>
>> P.S. Here is the stack trace:
>> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
>> at java.lang.ClassLoader.defineClass0(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>> at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
>> 3)
>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>> at
>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>> oader.java:195)
>> at
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>> m.java:255)
>> at
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>> java:214)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>> at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
>> Source)
>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>> at
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
>> rce)
>> at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>> at
>> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
>> ce)
>> at
>> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
>> at
>> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
>> ava:163)
>> at
>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>> 193)
>> at
>> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
>> 140)
>> at
>> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
>> ScriptInvoker.java:194)
>> at
>> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
>> a:33)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>> nManager.java:415)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:531)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> fecycle(DefaultLifecycleExecutor.java:472)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>> ltLifecycleExecutor.java:451)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> dleFailures(DefaultLifecycleExecutor.java:303)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> ts(DefaultLifecycleExecutor.java:270)
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>> fecycleExecutor.java:139)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>> java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>> sorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m202] SAX 2.0.2 support missing from ibiblio
Posted by Wayne Fay <wa...@gmail.com>.
Probably no one has missed this because this is included in JDK5. You
are running jdk1.3 or 1.4, I'm guessing?
You could probably find this in Saxon 6.5.3 (haven't checked!) or a
similar library. Find a library in ibiblio which implements it, add
the library as a dependency and see if it works? ;-)
This is why classifiers are sometimes used -- so we can have a JDK4
"version" of the maven-script-ant that includes Saxon as a dependency,
and a JDK5 "version" which has no such dep.
Wayne
On 3/7/06, Adrian Herscu <bm...@fastmail.fm> wrote:
> Hi all,
>
> Anyone tried to use ANT xmlvalidate task from Maven?
>
> It seems that maven-script-ant 2.0.2 depends on ant 1.6.5 which depends
> on xercesImpl 2.7.1 (tried the 2.6.2 and does not work) which depends on
> SAX 2.0.2 Extensions (which contains the org/xml/sax/ext/Attributes2 class).
>
> Adrian.
>
> P.S. Here is the stack trace:
> java.lang.NoClassDefFoundError: *org/xml/sax/ext/Attributes2*
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> oader.java:195)
> at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> m.java:255)
> at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> java:214)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown
> Source)
> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
> at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
> at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Sou
> rce)
> at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
> at
> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Sour
> ce)
> at
> org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:205)
> at
> org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.j
> ava:163)
> at
> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> 193)
> at
> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> 140)
> at
> org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(Ant
> ScriptInvoker.java:194)
> at
> org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.jav
> a:33)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:415)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:531)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:472)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:303)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:270)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:139)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org