missing jaxp when running switchyard installer with stock ant 1.8.2 in Fedora 16
--------------------------------------------------------------------------------
Key: SWITCHYARD-608
URL:
https://issues.jboss.org/browse/SWITCHYARD-608
Project: SwitchYard
Issue Type: Bug
Components: deployment
Affects Versions: 0.3
Environment: ant.noarch (version 1.8.2-6-c16) from yum repository of Fedora 16
java-1.6.0-openjdk-1.6.0.0-61.1.10.4.fc16.x86_64 from yum repository of Fedora 16
switchyard-installer-0.3
Reporter: Jeffrey Bride
Priority: Minor
Hi,
I'm running the switchyard-installer for forge and ran into a problem in Fedora 16
using the stock ant 1.8.2 from the yum repository. Looks like a jaxp parser is not
included in the ant classpath. subsequently, when executing 'ant install' from
the switchyard-installer, the following exception is thrown :
[java] Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
[java] at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:127)
[java] at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:104)
[java] at
org.jboss.forge.shell.InstalledPluginRegistry.installPlugin(InstalledPluginRegistry.java:85)
[java] at org.switchyard.forge.installer.Installer.install(Installer.java:39)
[java] at org.switchyard.forge.installer.Installer.main(Installer.java:47)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:616)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] ... 33 more
[java] Caused by: java.lang.ClassNotFoundException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
[java] at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
[java] at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
[java] at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1070)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
couple of short-term resolutions as follows :
1) download apache ant 1.8.2 from the
apache.org and use that distribution rather than
the one provided in the yum repositories
-- appears that when running with downloaded ant 1.8.2 .... the following jaxp
implementation is used from $JAVA_HOME/jre/lib/rt.jar :
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
or
2) hack the switchyard-installer-0.3/build.xml to include the following in the
'forge.installer.classpath' :
<fileset dir="/usr/share/java">
<include name="jaxp_parser_impl.jar"/>
</fileset>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira