Author: veithen
Date: Wed Jun 15 19:44:34 2011
New Revision: 1136159
URL: http://svn.apache.org/viewvc?rev=1136159&view=rev
Log:
Fixed the quickstart samples. If the client code is run inside the same VM as
ant, then it will inherit the system properties but not all classpath entries
from ant. This is a problem for certain ant versions that explicitly set the
JAXP factory classes to Xerces (which is not on the classpath of the client
code). To avoid this, use fork="true".
Modified:
axis/axis2/java/core/trunk/modules/samples/quickstartadb/build.xml
axis/axis2/java/core/trunk/modules/samples/quickstartaxiom/build.xml
Modified: axis/axis2/java/core/trunk/modules/samples/quickstartadb/build.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/samples/quickstartadb/build.xml?rev=1136159&r1=1136158&r2=1136159&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/samples/quickstartadb/build.xml
(original)
+++ axis/axis2/java/core/trunk/modules/samples/quickstartadb/build.xml Wed Jun
15 19:44:34 2011
@@ -109,7 +109,7 @@
<target name="generate.all" depends="generate.service, generate.client"/>
<target name="run.client" depends="generate.client">
- <java classname="samples.quickstart.clients.ADBClient">
+ <java classname="samples.quickstart.clients.ADBClient" fork="true">
<classpath refid="client.class.path" />
</java>
</target>
Modified: axis/axis2/java/core/trunk/modules/samples/quickstartaxiom/build.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/samples/quickstartaxiom/build.xml?rev=1136159&r1=1136158&r2=1136159&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/samples/quickstartaxiom/build.xml
(original)
+++ axis/axis2/java/core/trunk/modules/samples/quickstartaxiom/build.xml Wed
Jun 15 19:44:34 2011
@@ -67,7 +67,7 @@
</target>
<target name="run.client" depends="compile">
- <java classname="samples.quickstart.clients.AXIOMClient">
+ <java classname="samples.quickstart.clients.AXIOMClient" fork="true">
<classpath refid="client.class.path" />
</java>
</target>