<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
Hi Sylvain,<br>
<br>
Thanks for your feedback. To illustrate this, my own project name is
"sigale" - In the caroclient.log I well have:<br>
<br>
...<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/client/ClientQuery.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/common/Query.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/statictools/client/ClientStatictools.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/statictools/common/Statictools.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/client/ClientTables.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/common/Tables.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/projects/sigale/coreplugins/sigaleQuery/client/ClientSigaleQuery.php
<--OK<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/projects/sigale/coreplugins/sigaleQuery/common/SigaleQuery.php
<--OK<br>
DEBUG ClientSigaleQuery - my trace from replacePlugin() - Replace
ClientQuery <---OK my own debuging trace here<br>
...<br>
<br>
In cartoserver I just have :<br>
<br>
...<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/layers/common/Layers.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/server/ServerQuery.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/query/common/Query.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/mapquery/server/ServerMapquery.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/mapquery/common/Mapquery.php<br>
DEBUG PluginManager - trying to load class
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/server/ServerTables.php<br>
DEBUG PluginManager -
/export/users/portanfr/Workspace/Packages/CartoWeb/coreplugins/tables/common/Tables.php<br>
...<br>
<br>
And no trace of trying to load
projects/sigale/coreplugins/sigaleQuery/server/ServerSigaleQuery.php <br>
<br>
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)<br>
while I immediatelly have a CartocommonException : Couldn't load plugin
ClientToto on the client.ini side.<br>
<br>
Hope it helps<br>
Franck<br>
<br>
Sylvain Pasche wrote:<br>
<blockquote type="cite"
cite="mid1119879020.6832.47.camel@localhost.localdomain">
<pre wrap="">Hello,
Le vendredi 24 juin 2005 à 10:00 +0200, PORTANERI Franck a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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]
<a class="moz-txt-link-freetext" href="http://www.cartoweb.org/doc_head/docbook/xhtml/dev.debug.html#dev.debug.log.config">http://www.cartoweb.org/doc_head/docbook/xhtml/dev.debug.html#dev.debug.log.config</a>
_______________________________________________
Cartoweb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-dev@lists.maptools.org">Cartoweb-dev@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-dev">http://lists.maptools.org/mailman/listinfo/cartoweb-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Franck Portaneri
tel: 04 92 94 52 41</pre>
</body>
</html>