Michael,

Michael Laccetti wrote:
I've been banging my head against the wall all day, so I figured I'd go to the source.  I 
am trying to port an old WebLogic specific web service to Tuscany.  When I try to run the 
composite I keep getting the following: "WARNING: Service not found for component 
service: Component = OdfImplementation Service = ODF".  Perhaps somebody can see 
what I am missing?  I've paste-binned the implementation stuff here: 
http://papernapkin.org/pastebin/view/6053/

Nothing too crazy, I thought, and yet I cannot run it.  I've created a test 
composite using a very similar setup, and it worked without any problems, so 
I'm pretty baffled.

Michael

I've taken a look at your artifacts, and I think that the problem is the name of the service in your component.

The <component/> in your composite file calls the service "ODF".

Your implementation class implements the OdfWebService interface, which in turn is marked @Remotable. There is no @Service annotation on the implementation class. With this configuration, the implementation class is introspected as providing a single service with the interface defined by the OdfWebService interface and the NAME of the service is made the same as the name of the interface - i.e. OdfWebService.

The error message you are getting is saying that the component <service/> does not have a matching service in the implementation - they don't match because the names are different.

The simplest change is to use <service name="OdfWebService"> in the component 
declaration.


Hope this gets things working.


Yours,  Mike.

Reply via email to