[Cartoweb-dev] Cartoweb Coreplugins extending
PORTANERI Franck
fportaneri.ext at rd.francetelecom.com
Mon Jun 27 11:05:27 EDT 2005
Hi Sylvain,
Thanks for your feedback. To illustrate this, my own project name is
"sigale" - In the caroclient.log I well have:
...
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/client/ClientQuery.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/common/Query.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/statictools/client/ClientStatictools.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/statictools/common/Statictools.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/client/ClientTables.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/common/Tables.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/projects/sigale/coreplugins/sigaleQuery/client/ClientSigaleQuery.php
<--OK
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/projects/sigale/coreplugins/sigaleQuery/common/SigaleQuery.php
<--OK
DEBUG ClientSigaleQuery - my trace from replacePlugin() - Replace
ClientQuery <---OK my own debuging trace here
...
In cartoserver I just have :
...
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/layers/common/Layers.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/server/ServerQuery.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/common/Query.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/mapquery/server/ServerMapquery.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/mapquery/common/Mapquery.php
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/server/ServerTables.php
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/common/Tables.php
...
And no trace of trying to load
projects/sigale/coreplugins/sigaleQuery/server/ServerSigaleQuery.php
It looks like if the "loadPlugins = sigaleQuery" has no effect... I also
tryied to put "loadPlugins = toto" and never get an error complain on
the server side (in both server.ini and query.ini)
while I immediatelly have a CartocommonException : Couldn't load plugin
ClientToto on the client.ini side.
Hope it helps
Franck
Sylvain Pasche wrote:
>Hello,
>
>Le vendredi 24 juin 2005 à 10:00 +0200, PORTANERI Franck a écrit :
>
>
>>ynamically loaded and replace the default query coreplugins.
>>
>>2- The Extending method is more complicated.
>>I wrote the new classes ClientProjectQuery, ServerProjectQuery witch
>>extend the ClientQuery and ServerQuery classes, implement my own
>>functions and the required replacePlugin() function witch returns
>>'query'. I add the following in the conf file too:
>>
>>server_conf/project/query.ini:
>> loadPlugins = projectQuery
>>client_conf/client.ini
>> loadPlugins = projectQuery
>>
>>Only the ClientProjectQuery seems to be loaded (replacePlugin() of this
>>class is well called, I put a debug trace in it), while I have NO trace
>>of the replacePlugin() of ServerProjectQuery in my logs. The new
>>plugin is not loaded and the default one seems to run instead.
>>
>>
>
>Please activate the log4php logging [1], and have a look inside
>log/cartoserver.log (or log/cartoclient.log if in direct access).
>
>There should be a line like:
>
>lun 27 jun 2005 15:21:45 CEST,512 [7562] DEBUG PluginManager - trying to
>load class
> /path/to/cartoweb3/projects/testproject/plugins/projectQuery/server/ServerProjectQuery.php
>
>Then, check if the line is there and if the file it specifies is present
>on the file system.
>
>Cheers,
>
>Sylvain Pasche
>
>[1]
>http://www.cartoweb.org/doc_head/docbook/xhtml/dev.debug.html#dev.debug.log.config
>
>_______________________________________________
>Cartoweb-dev mailing list
>Cartoweb-dev at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/cartoweb-dev
>
>
--
Franck Portaneri
tel: 04 92 94 52 41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-dev/attachments/20050627/3a05fded/attachment.html
More information about the Cartoweb-dev
mailing list