You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Simon Laws <si...@googlemail.com> on 2007/01/09 15:41:33 UTC
[C++] Load library error messages
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
Re: [C++] Load library error messages
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Andrew Borley wrote:
> On 1/9/07, Simon Laws <si...@googlemail.com> 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:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
> 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
>
>
+1
On Linux we already have detailed error messages from dlerror(), on
Windows I just committed a small change to add a call to
Utils::printLastError() (this is a util method that I had added a while
ago to help provide more error info), but even that is giving Windows
system messages like "the module cannot be found" ... not very useful :)
so I think it's a good idea to add the message you proposed.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [C++] Load library error messages
Posted by Andrew Borley <aj...@gmail.com>.
On 1/9/07, Simon Laws <si...@googlemail.com> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org