On 1/9/07, Simon Laws <[EMAIL PROTECTED]> wrote:
I just spent a little time trying to get C++ SCA to load my PHP extension
dll. The error I was getting was.

820:5044   SystemConfigurationException raised: Unable to load library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll

I had forgotten from the last time that I did this that SCA goes looking for
dlls to load based on the TUSCANY_SCACPP (I believe) and then tries to load
the dlls that it finds. So I spent a little time looking at this error
message wondering why it couldn;t load a dll that clearly it knew exactly
the right path for.

Of course I had missed the dll location from my path. Once I fixed this I
got the same message and eventually realized that the path needed to be
extended to include the dependencies of tuscany_sca_php.dll.

Now this is basic getting a program working stuff but I was thrown by the
message which suggests that SCA knows exactly where the dll is.

How about changing the message to either

SystemConfigurationException raised: Unable to load library:
tuscany_sca_php.dll

Or

SystemConfigurationException raised: Unable to load library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
check PATH or LD_LIBRARY_PATH.

Or

SystemConfigurationException raised: SCA has detected the library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
but is unable to load it because the SCA executable can't find it in PATH or
LD_LIBRARY_PATH

Simon


+1 for better error messages.

How's about:

SystemConfigurationException raised: SCA has detected the library:
C:\simon\Projects\Eclipse3.2\cpp\sca\deploy\extensions\php\bin/tuscany_sca_php.dll
but is unable to load it because the SCA executable can't find it or
it's dependencies in PATH or LD_LIBRARY_PATH

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to