Re: Returning complex types from a service

2007-07-16 Thread Robert Young
I don't think the problem is with the jsonrpc now actually. I have been playing around with removing services from the .composite file and the error occurs even when the jsonrpc binding is not mentioned. While making changes I started receiving a memory exception so I restarted Tomcat and now

Tuscany creates target directory where I start tomcat from

2007-07-16 Thread Robert Young
Tuscany seems to use the current working directory from where Tomcat was started as the base directory for where it creates it's target directory. Is there anywhere I can set this base directory as I need to start Tomcat in a directory in which I do not want Tuscany creating directories? Thanks

Re: Tuscany creates target directory where I start tomcat from

2007-07-16 Thread Robert Young
Sorry, I forgot to mention some extra details. The directory is actually created in org.apache.tuscany.sca.contribution.service.util.FileHelper but it is initiated from org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntimeBuilder (line 196) with repository = new

Source code for sdo-api-r2.1-1.0-incubating-beta1.jar

2007-07-16 Thread Robert Young
Hi, Where can I find the source code for sdo-api-r2.1-1.0-incubating-beta1.jar? I'm getting an exception thrown from inside it and I would like to have a poke inside and see what's being done where it's being thrown. I have looked in SDO_201_Java_Source.zip but there seem to have been quite a

Re: Source code for sdo-api-r2.1-1.0-incubating-beta1.jar

2007-07-16 Thread Robert Young
, Robert Young [EMAIL PROTECTED] wrote: Hi, Where can I find the source code for sdo-api-r2.1-1.0-incubating-beta1.jar? I'm getting an exception thrown from inside it and I would like to have a poke inside and see what's being done where it's being thrown. I have looked

BindException when re-deploying webapp

2007-07-16 Thread Robert Young
If I try to re-deploy my webapp in Tomcat (by copying the war into the webapps directory and letting Tomcat do the rest) I get a BindException from Jetty saying that the address is already in use. I have no idea what it's talking about, as I'm concerned Jetty shouldn't be getting involved at all,

Re: Injecting servlet context into component

2007-07-13 Thread Robert Young
On a slightly different tack, if I implement my own servlet which loads the servlet from WebAppServletHost would I be able to inject the servlet context into the service via the generated servlet? On 7/13/07, Robert Young [EMAIL PROTECTED] wrote: Strangely I don't need anything from it, I just

Re: Getting service manually through servlet

2007-07-13 Thread Robert Young
be useful if when neither of those two things were done then any .composite files found got deployed, any one know why we can't do that? ...ant On 7/12/07, Robert Young [EMAIL PROTECTED] wrote: I'm trying to find my way around with Tuscany being run inside Tomcat. I can successfully

Re: Injecting servlet context into component

2007-07-13 Thread Robert Young
it in the service impl? ...ant On 7/12/07, Robert Young [EMAIL PROTECTED] wrote: I am running Tuscany with Tomcat and I need the servlet context to be available to one of my service implementations (used to load a particular configuration). I understand I can inject properties with default values but I

Returning complex types from a service

2007-07-13 Thread Robert Young
Hi, I am running Tuscany within a Tomcat web project and I am getting the following exception Caused by: java.lang.NullPointerException at commonj.sdo.impl.HelperProvider.getDefaultContext(HelperProvider.java:379) ... I am guessing this is to do with trying to return a complex

Providing non-component dependencies

2007-07-11 Thread Robert Young
How can I define dependencies for a service component? I would like to build a service which will expose editing a nutch configuration so obviously I need to be able to get at this inside the service. In order to get the nutch configuration I need to use the servlet context so it's not something