[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[swordfish-dev] Registry problems?
|
I've just gotten started with Swordfish. Plenty exciting, and great work.
I seem to be having a problem getting a consumer to work with dynamic
endpoint, and it looks it may like a problem with the registry. Static
endpoint works just fine.
I have my registry (in both the target definition and the launch
configurations) as
-Dorg.eclipse.swordfish.registry.fileLocation="C:\users\terry\swordfish\repo
sitory"
When I upload the WSDL to the registry via the context menu, the WSDL file
gets put into that folder as expected. The console output looks like this:
----------
Jan 9, 2010 7:19:39 PM org.eclipse.swordfish.registry.WSDLServlet doPut
INFO: Received PUT request:
http://localhost:9001/registry/wsdl/TestThis.wsdl
----------
Fine so far. Then I go to http://localhost:9091/registry/wsdl and see the
PortType and Service as expected. But if I click on those links, they go to
http://localhost:9001/registry/wsdl/wsdl/TestThis.wsdl (note, wsdl twice)
and of course there's nothing there.
So that's one problem, but there's more. When I start the provider, I see a
stack trace that begins with:
--------------
Jan 9, 2010 7:11:09 PM org.eclipse.swordfish.registry.FileBasedWSDLManager
fill
WARNING: Unable to load file C:\users\terry\swordfish\repository\wsdl
java.io.FileNotFoundException: C:\users\terry\swordfish\repository\wsdl
(Access is denied)
--------------
So I'm not sure what the actual root cause is, but when I run the consumer
in its own launch config (registry bundle turned off on this one) I see
this:
----
WARNING: Couldn't get an endpoint for the service:
{http://www.example.org/TestThis/}TestThis
Jan 9, 2010 7:27:05 PM
org.eclipse.swordfish.internal.core.interceptor.EndpointResolverInterceptor
process
SEVERE: An exception occured while trying to resolve service name via
supplied wsdls
org.eclipse.swordfish.core.SwordfishException: Error resolving endpoint for
the interface + [{http://www.example.org/TestThis/}TestThis] - no suitable
endpoints have been found
----
and this
--------
Jan 9, 2010 7:27:05 PM org.apache.servicemix.nmr.core.ChannelImpl
handleFailure
WARNING: Error processing exchange [
id: 4d1a12e2-f94d-4339-8f12-1b0e58c5a080
mep: InOut
status: Active
role: Consumer
target:
PropertyMatchingReference[{INTERFACE_NAME={http://www.example.org/TestThis/}
TestThis, SERVICE_NAME={http://www.example.org/TestThis/}TestThis_Service}]
operation: {http://www.example.org/TestThis/}NewOperation
In: [
content: javax.xml.transform.stream.StreamSource@35adc6
]
]
--------
I'm not sure if the WSDL file is supposed to be in the repository or the
repository\wsdl folder. I copied it manually so it'd be in both; the links
worked in the repository web interface then but it didn't affect anything
else.
Is any of this ringing a bell for anybody? I'm doing this stuff on Vista and
using java 1.6. I can attach full traces and source if it would be helpful.
Thanks much,
Terry