On 2/22/07, Pete Robbins <[EMAIL PROTECTED]> wrote:
On 21/02/07, Pete Robbins <[EMAIL PROTECTED]> wrote:
>
>
> The Rest binding builds on Mac but is crashing when the SCARuntime loads
> the extension which tries to register the reference binding extension. I'll
> investigate that next.
>
>
The Rest binding is crashing because of the way TuscanyRuntime loads the
extensions. We load every library we find under the extensions folder.
Unfortunately one of these is tuscany_sca_mod_rest which is not an extension
but does link with one. So we load this library and discover it isn't an
extension, then unload it. Next up we load the tuscany_sca_rest_service
extension but for some reason the load is not calling the static
initializers, maybe because this library has already been loaded as a
separate instance when loading mod_rest. Removing the tuscany_sca_mod_rest
library from the extension path resolves the problem.
This goes back to a problem discussed on an earlier thread where we agreed
to change the extension loading so that only libraries in a "modules" folder
would be loaded. The layout of an extension will look like:
$TUSCANY_SCACPP/extensions
myExtension/
lib/
mylibs_that_arent_extensions.so
bin/
...
xsd/
....
any_other_folder/
...
modules/
libmyExtensionLibrary.so
Only the libraries under modules will be loaded. Most likely these would be
symbolic links to the library in the lib/ folder.
I propose to make this change sometime today as it resolves a few problems.
+1 for this.
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]