rick rineholt wrote:
Hello,
I kept failing running the tomcat test with the JMS
transport not being
present. Typical of Axis2.xml not found, I did notice
the copy
statement in the build.xml, but because for some
reason, I believe it to
be I played with vanilla Axis2 beforehand, I already
had an axis2.xml
and the copy only works if destination is older and
in my particular
case it was not. One solution is to add the overwrite
attribute and set
it to true. However in a more general perspective I'm
not comfortable
with just over writing some projects global artifact.
Could some Axis2
users having set this deliberately not take kindly
that we silently
write over this?
I wonder if the ServiceClient code may have for
obtaining ServiceClient
String tuskAxisRoot=
System.getProperty("tuscany.axis2root");
tuskAxisRoot= tuskAxisRoot== null ? "." :
tuskAxisRoot;
new ServiceClient(
new
ConfigurationContextFactory().createConfigurationContextFromFileSystem(tuskAxisRoot),
null);
Then we could have had the in test resource of the
client or local dir
an Axis2.xml ( I haven't tested this ... just from
eyeballing the code)
BTW I have asked the Axis2 developers to restructure
createConfigurationContextFromFileSystem to accept a
stream and I think
they were ok with it. So hopefully this will all go
away.
BTW2 to error is human ( I just posted this on the
axis2 dev first :-)
Cheers.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yes I agree with you, the Axis2 home could be used for other Axis 2
services independent of Tuscany, so I think that what you propose is a
good idea. To go even further do you think we could derive a location
for our Axis2 repository automatically instead of requiring the user to
configure a system property?
Also what about constructing the Axis2 ConfigurationContext
programmatically instead of reading it from an axis2.xml file? Would
that work? Do you know the pros and cons of that approach compared to
reading an axis2.xml file?
--
Jean-Sebastien