Milena,
better logging and docs is now added around Plugins,
https://github.com/neo4j/community/commit/325f49a5d458bd124ffdb6516c9c7d6d06903617

The problem is, your @PluginTarget is Node, your @Source is
GraphDatabaseService. They need to be the same, so you should change
to

@Description( "A custom plugin" )
public class CustomQuery extends ServerPlugin{
    @Description( "Make a custom query and limit the results" )
    @PluginTarget( GraphDatabaseService.class )
    public Iterable<Node> makeQuery(
            @Source GraphDatabaseService graphDb,

The log now provided is

6/16/11 11:59:11 AM org.neo4j.server.plugins.PluginManager WARNING:
Failed to load plugin [ServerPlugin[CustomQuery]]: Source parameter
type (interface org.neo4j.graphdb.GraphDatabaseService) must equal the
discovery type (org.neo4j.graphdb.Node).


HTH

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Jun 16, 2011 at 10:56 AM, Peter Neubauer
<[email protected]> wrote:
> Milena,
> I can see here that the plugin is not loaded. Fixing more verbose
> logging around Plugin loading to see more details in the logs.
>
> Stay tuned ...
>
> Cheers,
>
> /peter neubauer
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org               - Your high performance graph database.
> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Thu, Jun 16, 2011 at 9:12 AM, Milena Araujo <[email protected]> wrote:
>> The source for the plugin: http://pastebin.com/hWs7NSqd
>> And the log message: http://pastebin.com/JrSpxgpp
>> It only says that failed to mount the plugin, but do not say why.
>>
>> Thanks.
>>
>> Milena.
>>
>>
>> On Wed, Jun 15, 2011 at 7:08 PM, Michael Hunger <
>> [email protected]> wrote:
>>
>>> I agree with Peter on the jar-file.
>>>
>>> And are there any messages in the data/log/* logfiles or in
>>> data/messages.log.
>>>
>>> Thanks
>>>
>>> Michael
>>>
>>> Am 15.06.2011 um 18:27 schrieb Peter Neubauer:
>>>
>>> > Milena,
>>> > the jar file looks right. Do you have the source code for your Plugin
>>> > somewhere and can send it over?
>>> >
>>> > Cheers,
>>> >
>>> > /peter neubauer
>>> >
>>> > GTalk:      neubauer.peter
>>> > Skype       peter.neubauer
>>> > Phone       +46 704 106975
>>> > LinkedIn   http://www.linkedin.com/in/neubauer
>>> > Twitter      http://twitter.com/peterneubauer
>>> >
>>> > http://www.neo4j.org               - Your high performance graph
>>> database.
>>> > http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>>> > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>>> >
>>> >
>>> >
>>> > On Wed, Jun 15, 2011 at 4:36 PM, Milena Araujo <[email protected]>
>>> wrote:
>>> >> Hi people !
>>> >>
>>> >> So, I build a plugin just to ease a certain query that's really constant
>>> on
>>> >> my system, but it doesn't seams to work. I built it with maven, the .jar
>>> >> that it generates is this:
>>> >>
>>> http://www.4shared.com/file/W8_s4LSu/neo4j-customquery-plugin-14M03.html
>>> >> I put it in the plugins folder in the neo4j folder, restart the server,
>>> but
>>> >> the extensions parameter is still empty.
>>> >> Any ideas what am I doing wrong ?
>>> >>
>>> >> Thanks !
>>> >>
>>> >> Milena Araujo
>>> >> _______________________________________________
>>> >> Neo4j mailing list
>>> >> [email protected]
>>> >> https://lists.neo4j.org/mailman/listinfo/user
>>> >>
>>> > _______________________________________________
>>> > Neo4j mailing list
>>> > [email protected]
>>> > https://lists.neo4j.org/mailman/listinfo/user
>>>
>>> _______________________________________________
>>> Neo4j mailing list
>>> [email protected]
>>> https://lists.neo4j.org/mailman/listinfo/user
>>>
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to