If the application is a JEE web application (.war) then I'd use
implementation.web not binding.http as thats more inline with the current
SCA specifications. Doing that the Servlet would then be managed by the JEE
container not Tuscany which could make something like this easier to get
going.

   ...ant

On Tue, Oct 27, 2009 at 3:23 PM, Willis C White <[email protected]> wrote:

>
> First of all let me admit to my own ignorance.
> second let me start for the beginning. I am trying to use
> dojox.form.FileUploader to upload a file (my friend Ab sent out an email
> about this yesterday). This widget has a property called "uploadUrl" - I am
> assuming (maybe wrongly) that the widget does a post to this URL. My team is
> using Tuscany to communicate between the client (web page) and the server. I
> am working on a form that need to upload files. My plan is to get a servlet
> setup through Tuscany and then have the dojo widget post to that servlet.
>
>
>
>  *ant elder <[email protected]>*
>
> 10/27/2009 11:08 AM
>   Please respond to
> [email protected]
>
>   To
> [email protected]
> cc
>   Subject
> Re: error using http binding
>
>
>
>
> Out of interest may I ask why you're trying to use a servlet with the http
> binding like this and not just using a proper webapp that runs the servlet
> in the more usual way?
>
>    ...ant
>
> On Tue, Oct 27, 2009 at 2:52 PM, Willis C White 
> <*[email protected]*<[email protected]>>
> wrote:
>
> I am trying to create a plain servlet
>
> I have this in the web.composite
>     <component name="HTTPBindingComponent">
>      <implementation.java class="*com*.*ibm*.*eed*
> .service.test.BindingHttpImpl"/>
>             <service name="BindingHttpImpl">
>                     <tuscany:binding.*http* *uri*="testBinding"/>
>             </service>
>     </component>
>
>
> this is the implementation file:
> *
> package* com.ibm.eed.service.test; *
> import* java.io.IOException; *
> import* javax.servlet.*; *
> import* org.osoa.sca.annotations.Service;
>
> @Service(Servlet.*class*) *
> public* *class* BindingHttpImpl *implements* Servlet {
>
>         @Override
>         *public* *void* destroy() {
>                 // *TODO* Auto-generated method stub
>
>         }
> ......
>
> }
>
>
> this is the error I get when I start the server
> Oct 27, 2009 10:42:01 AM
> org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
> WARNING: Service not found for component service: Component =
> HTTPBindingComponent Service = BindingHttpImpl
> Oct 27, 2009 10:42:01 AM
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
> WARNING: Service not found for component service: Component =
> HTTPBindingComponent Service = BindingHttpImpl
>
> ....
>
> WARNING: Skipping component service not defined in the component type:
> HTTPBindingComponent#BindingHttpImpl
>
>
>
> not sure what am I missing or what I can do to fix this.
>
>

Reply via email to