For some reason, I'm finding a strange behavior on the way webAppHost
is registering service uris.
<component name="Catalog">
<implementation.java class="services.VegetablesCatalogImpl"/>
<property name="currencyCode">USD</property>
<service name="Catalog">
<interface.java interface="services.Catalog"/>
<tuscany:binding.jsonrpc
uri="http://localhost:8080/<APP CONTEXT
ROOT>/Catalog"/>
</service>
<reference name="currencyConverter"
target="CurrencyConverter"/>
</component>
In the scenario above, the service is only being available via the
following uri : http://localhost:8080/context root/context
root/service uri...
This seems to be happening because the context path was not being
set... I'm not sure if this was on purpose or not, but I have added
the code to configure the contextPath back (svn r826364), so please
give it a quick look and let me know if you think this was not the
right approach to fix the issue.
--
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/