Hi,

I just moved my code to the new index API but I cannot deploy my server.
I've already tried with glassfishv3 and jetty and neither of them works.
The exception I get is:

java.lang.Exception: java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
java.lang.IllegalArgumentException: No index provider 'lucene' found

I've already tried directly adding the apache bundle lucene jar to with no
luck.
any ideas of what could be happening?

Cheers,

Pablo

On Thu, Feb 17, 2011 at 11:31 AM, Peter Neubauer <
[email protected]> wrote:

> Mmmh,
> the main issue here I suspect is that the Java Service Loader is not
> finding the META-INF/services .... files. It might be that it is not
> triggered when you add files dynamically to the classloader. That is,
> the JARs are only scanned at startup time for any non-class files.
> Could that be an issue?
>
> 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://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Thu, Feb 17, 2011 at 11:28 AM, Andreas Ronge <[email protected]>
> wrote:
> > Hi
> >
> > I have found a work around - I added all the jar files needed in the
> > classpath before I start Tomcat/Trinidad (put them in the lib folder)
> > This is awkward since I don't know which jar files should be added
> > (it's in a configuration file).
> > Also, I have not managed to get the online backup working in Tomcat
> > even when I add all the jar files to the classpath.
> > It works when I run it standalone by just adding the online jar file
> > at runtime, but not from Tomcat because of some classloading issue ?
> >
> > So, why can't I load the JAR files dynamically like this in Tomcat ?
> > (which is the same as in ruby: require 'myjar.jar')
> >
> >  URL url = getURL(jarFile);
> >  getRuntime().getJRubyClassLoader().addURL(url);
> >
> > Is there an alternative of loading the jar files dynamically at runtime ?
> > (from
> http://thinkincode.net/2011/02/09/jruby-class-loader-by-example.html)
> >
> > /Andreas
> >
> > On Thu, Feb 17, 2011 at 9:33 AM, Anders Nawroth
> > <[email protected]> wrote:
> >> Hi!
> >>
> >> This is included as a dependency:
> >>
> org.apache.servicemix.bundles:org.apache.servicemix.bundles.lucene:jar:3.0.1_2:compile
> >>
> >> That's an OSGi-friendly packaging of Lucene.
> >>
> >> /anders
> >>
> >> On 02/17/2011 09:11 AM, Michael Hunger wrote:
> >>>
> >>> Sorry, didn't see your mail (had Andreas' still open for replying).
> >>>
> >>> It worked, thanks very much. But funnily the lucene jar is not
> recognized
> >>> as dependency by maven for the server (mvn
> dependency:copy-dependencies). I
> >>> assume it is added by the server-build project?
> >>>
> >>> Cheers
> >>>
> >>> Michael
> >>>
> >>> Am 17.02.2011 um 08:49 schrieb Mattias Persson:
> >>>
> >>>> It's probably a classpath issue as you say. You added the
> >>>> neo4j-lucene-index-XXX.jar file manually to the classpath, but also
> make
> >>>> sure the lucene-core-3.0.1.jar is on the classpath. You can also look
> in
> >>>> the
> >>>> <neo4j-db-directory>/messages.log and see which extensions are loaded
> >>>> tigether with the graph database and which of those failed to load
> a.s.o.
> >>>>
> >>>> 2011/2/16 Andreas Ronge<[email protected]>
> >>>>
> >>>>> Hi
> >>>>>
> >>>>> When I run my Rails application using Tomcat/Trinidad I get "No index
> >>>>> provider 'lucene' found", see stack trace below
> >>>>> I think I have seen a similar problem on the gremlin email list.
> >>>>> I guess it's because of a class loading issue, or maybe the
> >>>>> META-INF/services files,
> >>>>> or because in JRuby the neo4j jar files are loaded at runtime.
> >>>>> I need some hints where I should start looking.
> >>>>>
> >>>>> I have tried to manually add the neo4j-lucene-index-1.3.M02.jar file
> >>>>> to the classpath without any luck (jruby -J-cp /home/... -S trinidad)
> >>>>>
> >>>>> The problem occurs in neo4j.rb version>= 1.0.0.beta.17 when the new
> >>>>> lucene index framework was introduced.
> >>>>> It works in WEBrick/rails s
> >>>>>
> >>>>> at org.jruby.rack.RackServlet.service(RackServlet.java:56)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
> >>>>>       at
> >>>>>
> >>>>>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
> >>>>>       at
> >>>>>
> >>>>>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >>>>>       at
> >>>>>
> >>>>>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >>>>>       at java.lang.Thread.run(Thread.java:662)
> >>>>> Caused by: org.jruby.exceptions.RaiseException: Native Exception:
> >>>>> 'class java.lang.IllegalArgumentException'; Message: No index
> provider
> >>>>> 'lucene' found; StackTrace: java.lang.IllegalArgumentException: No
> >>>>> index provider 'lucene' found
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.getIndexProvider(IndexManagerImpl.java:71)
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:111)
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:173)
> >>>>>       at
> >>>>> org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:250)
> >>>>>
> >>>>> Caused by: java.lang.IllegalArgumentException: No index provider
> >>>>> 'lucene'
> >>>>> found
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.getIndexProvider(IndexManagerImpl.java:71)
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:111)
> >>>>>       at
> >>>>>
> >>>>>
> org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:173)
> >>>>>       at
> >>>>> org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:250)
> >>>>>
> >>>>> /Andreas
> >>>>> _______________________________________________
> >>>>> Neo4j mailing list
> >>>>> [email protected]
> >>>>> https://lists.neo4j.org/mailman/listinfo/user
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Mattias Persson, [[email protected]]
> >>>> Hacker, Neo Technology
> >>>> www.neotechnology.com
> >>>> _______________________________________________
> >>>> Neo4j mailing list
> >>>> [email protected]
> >>>> https://lists.neo4j.org/mailman/listinfo/user
> >>>
> >>> _______________________________________________
> >>> Neo4j mailing list
> >>> [email protected]
> >>> https://lists.neo4j.org/mailman/listinfo/user
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "neo4jrb" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >> http://groups.google.com/group/neo4jrb?hl=en.
> >>
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected].
> > For more options, visit this group at
> http://groups.google.com/group/neo4jrb?hl=en.
> >
> >
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Pablo Pareja Tobes
LinkedIn    http://www.linkedin.com/in/pabloparejatobes
Twitter       http://www.twitter.com/pablopareja

http://about.me/pablopareja
http://www.ohnosequences.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to