After getting to the point reported above with the sample store webapp, I switched attention back to my own app [1], based on that sample. I have now reached the same point in my app as I had with the store webapp sample, in this case, instead of reporting catalog.get() is not a function I see the analagous planView.getLite() is not a function.
My suspicions are aroused by hovering over the catalog or planView objects in firebug, and I see the declared class of these objects to be "dojo.rpc.JsonService"; I'm not sure if this is right. Can anyone throw any light on this please? Kelvin. [1] http://svn.apache.org/viewvc/tuscany/sandbox/kgoodson/jagg-webapp/ and http://svn.apache.org/viewvc/tuscany/sandbox/kgoodson/jagg-logic/ On Fri, Feb 26, 2010 at 11:23 AM, kelvin goodson <[email protected]> wrote: > Luciano, > > I've certainly been able to progress after your changes. However, > currently I'm seeing "catalog.get" is not a function from Firebug on > line 127 of the store.html script. > > Kelvin. > > > > On Fri, Feb 26, 2010 at 12:59 AM, Luciano Resende <[email protected]> > wrote: >> On Thu, Feb 25, 2010 at 9:29 AM, kelvin goodson <[email protected]> >> wrote: >>> I'm trying to run the store webapp sample, and made a few fixups >>> which I committed. but I'm currently seeing a message "dojo" is not >>> defined" in firebug when I navigate to >>> http://localhost:8080/sample-store-webapp . I fixed a similar problem >>> with "tuscany is not defined" by changing the script inclusion for >>> store.js to "/sample-webapp-store/store.js" in store.html, and the >>> current committed store.html has dojo.js included in a similar path >>> (attempting to fix this by symmetry with the previous fix), but alas I >>> don't seem to be able to include the dojo.js script. >>> >>> I've been blundering around in a browser trying to guess where dojo.js >>> might be found, but as yet no joy. >>> >>> Can anyone help me pin this down please? >>> >> >> In your scenario, where the application does not provide the dojo >> resources we are going to use the ones from within the >> web-javascript-dojo module and there was an issue on how we were >> trying to serve dojo resources from DojoResourceServlet (basically not >> considering contextRoot when in a web application server). >> >> Having said that, I would like to remove your changes from revision >> #916355, and fix the runtime to allow this to work in both embedded >> and hosted environment more transparently. >> >> Note that after my changes, there is still one issue, which seems to >> be related to host-webapp changing the contextPath and that seems to >> make the tuscany widget miss behave as it was trying to reach the >> initial registered endpoint based on the binding-uri... hope this gets >> you going... and I can check this further tomorrow... >> >> >> -- >> Luciano Resende >> http://people.apache.org/~lresende >> http://twitter.com/lresende1975 >> http://lresende.blogspot.com/ >> >
