[
https://issues.apache.org/jira/browse/AXIS2-4690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Veithen resolved AXIS2-4690.
------------------------------------
Assignee: Andreas Veithen
Fix Version/s: 1.6
Resolution: Fixed
What happens here is that ant sets a system property to specify the DOM
implementation (Xerces). However, that JAR is no longer included in the
distribution because with Java 1.5, the DOM implementation in the JRE works
fine with Axis2. The proper solution is to change the <java> invocation to use
fork mode, so that the code is executed in a new JVM with a clean set of system
properties.
> Exception occurs when client for pojoguidespring is run
> -------------------------------------------------------
>
> Key: AXIS2-4690
> URL: https://issues.apache.org/jira/browse/AXIS2-4690
> Project: Axis2
> Issue Type: Bug
> Components: samples
> Reporter: Tharindu Mathew
> Assignee: Andreas Veithen
> Fix For: 1.6
>
>
> [java] javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
> [java] at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:592)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
> [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
> [java] at org.apache.tools.ant.Main.runBuild(Main.java:758)
> [java] at org.apache.tools.ant.Main.startAnt(Main.java:217)
> [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> [java] Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
> [java] at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
> [java] at
> org.apache.axis2.util.XMLUtils.getDOMFactory(XMLUtils.java:132)
> [java] at org.apache.axis2.util.XMLUtils.<clinit>(XMLUtils.java:76)
> [java] at
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
> [java] at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:89)
> [java] at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:853)
> [java] at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> [java] at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> [java] at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> [java] at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
> [java] at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
> [java] at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
> [java] at
> org.apache.axis2.rpc.client.RPCServiceClient.<init>(RPCServiceClient.java:48)
> [java] at
> client.WeatherSpringRPCClient.main(WeatherSpringRPCClient.java:34)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:592)
> [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] ... 20 more
> [java] --- Nested Exception ---
> [java] javax.xml.parsers.FactoryConfigurationError: Provider
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
> [java] at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
> [java] at
> org.apache.axis2.util.XMLUtils.getDOMFactory(XMLUtils.java:132)
> [java] at org.apache.axis2.util.XMLUtils.<clinit>(XMLUtils.java:76)
> [java] at
> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
> [java] at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:89)
> [java] at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:853)
> [java] at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
> [java] at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
> [java] at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
> [java] at
> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
> [java] at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)
> [java] at
> org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:251)
> [java] at
> org.apache.axis2.rpc.client.RPCServiceClient.<init>(RPCServiceClient.java:48)
> [java] at
> client.WeatherSpringRPCClient.main(WeatherSpringRPCClient.java:34)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:592)
> [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] at org.apache.tools.ant.taskdefs.Java.run(Java.java:764)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:218)
> [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
> [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
> [java] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> [java] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> [java] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at java.lang.reflect.Method.invoke(Method.java:592)
> [java] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> [java] at org.apache.tools.ant.Task.perform(Task.java:348)
> [java] at org.apache.tools.ant.Target.execute(Target.java:357)
> [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
> [java] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
> [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> [java] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> [java] at
> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
> [java] at org.apache.tools.ant.Main.runBuild(Main.java:758)
> [java] at org.apache.tools.ant.Main.startAnt(Main.java:217)
> [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> [java] Java Result: -1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]