Allright thanks for the digging, I've tried with Ubuntu Hardy and java
1.5 just like you and I can't reproduce it... However!

Now it hits me that it just must be the fact that it's run inside a
webapp. 'man' searches for available commands (classes extending
org.neo4j.util.shell.App) by looking at the classpath (directories and
.jar-files). The class loader hierarchy is a little different for
webapps. I'll add a ticket about this problem, to myself!

2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
> First, these are the jars maven give me (complete listing in the
>  unlikely case there is actually some strange interaction with one of
>  these and the neo shell).
>
>  commons-codec-1.2.jar
>  commons-el-1.0.jar
>  commons-httpclient-3.0.1.jar
>  commons-logging-1.0.3.jar
>  htmlparser-1.6.jar
>
> index-util-0.4-20080430.070359-1.jar
>  jbrainz-1.0-SNAPSHOT.jar
>  json-taglib-0.5-SNAPSHOT.jar
>  jstl-1.1.2.jar
>
> jta-1.0.1.jar
>  jug-1.1.jar
>  log4j-1.2.14.jar
>
> lucene-core-2.3.1.jar
>
> neo-1.0-rc1-SNAPSHOT.jar
>  openid4java-0.9.3.jar
>  openxri-client-1.0.1.jar
>  openxri-syntax-1.0.1.jar
>  shell-1.0-rc1-SNAPSHOT.jar
>  standard-1.1.2.jar
>  xercesImpl-2.8.1.jar
>  xmlsec-1.3.0.jar
>
>  1) Can't be very precise, it's a Java webapp running on tomcat (don't
>  know what these are called, a "Servlet" is just one part). Neo is
>  hooked in through a ServletContextListener:
>
>  public final class ContextListener implements ServletContextListener {
>
>     private final Log log = LogFactory.getLog(this.getClass());
>
>     public void contextInitialized(ServletContextEvent event) {
>
>         log.debug("Starting neo service");
>         NeoService neo = new EmbeddedNeo("/tmp/neostore");
>         neo.enableRemoteShell();
>         event.getServletContext().setAttribute("neoService", neo);
>
>         log.debug("Starting index service");
>         IndexService indexService = new NeoIndexService(neo);
>         event.getServletContext().setAttribute("indexService", indexService);
>     }
>
>     public void contextDestroyed(ServletContextEvent event) {
>
>         log.debug("Shutting down index service");
>         IndexService indexService =
>             
> (IndexService)event.getServletContext().getAttribute("indexService");
>         if (indexService != null)
>             indexService.shutdown();
>
>         log.debug("Shutting down neo service");
>         NeoService neo =
>  (NeoService)event.getServletContext().getAttribute("neoService");
>         if (neo != null)
>             neo.shutdown();
>     }
>  }
>
>  These only run once, verified by my logs.
>
>  Installed to tomcat with "mvn install", but that's hardly helpful to know.
>
>  2)
>
>  (in the project directory where I just built and installed the webapp)
>
>  $ java -jar target/mushup/WEB-INF/lib/shell-1.0-rc1-SNAPSHOT.jar
>
> NOTE: No port or RMI name specified, using default port 1337 and name 'shell'.
>  Welcome to NeoShell
>  Available commands: quit
>  Use man <command> for info about each command.
>  neo-sh (0)$ man
>
> Available commands: quit
>  Use man <command> for info about each command.
>  neo-sh (0)$ ls
>  (me) --[MUSICBRAINZ]--> (4)
>  (me) --[INDEX_SERVICE]--> (1)
>
>  As you can see, the shell is working, it's just that the command
>  listing seems wrong. Are you saying that you get a different (correct)
>  listing on some other platform? That sounds very odd to me.
>
>
>
>  Philip
>
>  On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> wrote:
>  > Great, actually you could start by sending my the exact commands you
>  >  use to start neo/shell (simplified jar-filenames in my examples):
>  >
>  >  o Are you starting neo separately with neo.enableRemoteShell() and
>  >  connecting with it remotely, with something like:
>  >     1) $> java -cp target/classes:neo.jar:jta.jar:shell.jar
>  >  my.class.which.starts.MyNeoService
>  >     2) $> java -jar shell.jar
>  >  o Are you using only one jvm instance to run the neo service AND the
>  >  shell, something like:
>  >     1) $> java -cp neo.jar:jta.jar:shell.jar
>  >  org.neo4j.util.shell.StartRemoteClient path/to/neo/
>  >
>  >  Send the commands as precisely as possible.
>  >
>  >
>  >  2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
>  >  > Strange, I thought it was an oversight and not a bug as such. Anyway,
>  >  >  Ubuntu Hardy with Java 1.5 (sun-java5-jre 1.5.0-15-0ubuntu1). I can
>  >  >  send you debug printouts or whatever you need if you give me
>  >  >  instructions.
>  >  >
>  >  >
>  >  >
>  >  >  Philip
>  >  >
>  >  >  On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> wrote:
>  >  >  > I'll try to reproduce it, what version of Ubuntu/Java are you using?
>  >  >  >
>  >  >  >
>  >  >  >  2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
>  >  >  >  > Nope, I haven't explicitly included the shell, but doing so I get
>  >  >  >  >  shell-1.0-rc1-SNAPSHOT.jar instead. However, "quit" is still the 
> only
>  >  >  >  >  command man knows about. This is hardly critical, but I guess 
> you'd
>  >  >  >  >  want to fix it.
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  Philip
>  >  >  >  >
>  >  >  >  >  On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  > Yep, all that's in 1.0-b6 is in 1.0-rc1 as well.
>  >  >  >  >  >
>  >  >  >  >  >  2008/5/5 Mattias Persson <[EMAIL PROTECTED]>:
>  >  >  >  >  >
>  >  >  >  >  > > Allright weird, and you have:
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >      <dependency>
>  >  >  >  >  >  >        <groupId>org.neo4j</groupId>
>  >  >  >  >  >  >        <artifactId>shell</artifactId>
>  >  >  >  >  >  >
>  >  >  >  >  >  >        <version>1.0-rc1-SNAPSHOT</version>
>  >  >  >  >  >  >      </dependency>
>  >  >  >  >  >  >
>  >  >  >  >  >  >  as well right? I just tried it, and it worked... using Mac 
> OS X Leopard.
>  >  >  >  >  >  >  (make sure you have the -SNAPSHOT)
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
>  >  >  >  >  >  >  > So... which versions should I use together? Currently I 
> have
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >     <dependency>
>  >  >  >  >  >  >  >       <groupId>org.neo4j</groupId>
>  >  >  >  >  >  >  >       <artifactId>neo</artifactId>
>  >  >  >  >  >  >  >       <version>1.0-rc1-SNAPSHOT</version>
>  >  >  >  >  >  >  >     </dependency>
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >     <dependency>
>  >  >  >  >  >  >  >       <groupId>org.neo4j</groupId>
>  >  >  >  >  >  >  >       <artifactId>index-util</artifactId>
>  >  >  >  >  >  >  >       <version>0.4-SNAPSHOT</version>
>  >  >  >  >  >  >  >     </dependency>
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  Shouldn't rc1 include everything that b6 does? I moved 
> to rc1 because
>  >  >  >  >  >  >  >  I got some ClassNotFoundException with neo-b6 and
>  >  >  >  >  >  >  >  index-utils-0.3-SNAPSHOT (I think).
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  Philip
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  >  >  >  > Oh, good (no windows) :)
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  It really should work with the latest 1.0-b6 version 
> now, try getting it from:
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  
> http://m2.neo4j.org/org/neo4j/shell/1.0-b6/shell-1.0-b6.jar
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > Yep there's a b0rked dependency on lucene in 
> index-utils, that is on a
>  >  >  >  >  >  >  >  >  todo-list somewhere.
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
>  >  >  >  >  >  >  >  >  > No Windows for me, thanks. I'm running Ubuntu and 
> the jars that maven
>  >  >  >  >  >  >  >  >  >  has collected for me are:
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  neo-1.0-rc1-SNAPSHOT.jar
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  > jta-1.0.1.jar
>  >  >  >  >  >  >  >  >  >  shell-1.0-rc1-20080319.221229-7.jar
>  >  >  >  >  >  >  >  >  >  index-util-0.4-20080430.070359-1.jar
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  and lucene-core-2.3.1.jar, I suppose I should 
> exclude it if I don't want it.
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  Philip
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> 
> wrote:
>  >  >  >  >  >  >  >  >  >  > Oh, you're using Windows right? I guess that 
> fix came in after shell
>  >  >  >  >  >  >  >  >  >  >  1.0-b6. Should work just fine in neo/shell 
> 1.0-rc1.
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  I figure I could patch the b6 version with 
> that fix as well...
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>:
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  > > Thanks, I can now connect to my neo running 
> in a tomcat webapp. One
>  >  >  >  >  >  >  >  >  >  >  >  annoyance is that "man" says that the only 
> available command is
>  >  >  >  >  >  >  >  >  >  >  >  "quit", which is obviously untrue.
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  Philip
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  On 4/30/08, Mattias Persson <[EMAIL 
> PROTECTED]> wrote:
>  >  >  >  >  >  >  >  >  >  >  >  > Oh.... btw, sorry I meant that that it's 
> the neo jar file which isn't
>  >  >  >  >  >  >  >  >  >  >  >  >  the latest.
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  You can download it here:
>  >  >  >  >  >  >  >  >  >  >  >  >  
> http://m2.neo4j.org/org/neo4j/neo/1.0-b6/neo-1.0-b6.jar
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  You could probably download the latest 
> shell as well :) :
>  >  >  >  >  >  >  >  >  >  >  >  >  
> http://m2.neo4j.org/org/neo4j/shell/1.0-b6/shell-1.0-b6.jar
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  2008/4/30 Philip Jägenstedt <[EMAIL 
> PROTECTED]>:
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  > > Looks like the mailing list doesn't 
> like attachments.
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  On 4/30/08, Mattias Persson <[EMAIL 
> PROTECTED]> wrote:
>  >  >  >  >  >  >  >  >  >  >  >  >  >  > Hi, now I'm back (the brain behind 
> the neo shell :) ).
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  For starters, the "Not in 
> transaction" bug was only found in the
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  1.0-b6 release. It's fixed though, 
> only the shell download link
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  doesn't refer to the latest jar 
> file! Could someone please fix that!
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  (I'll attach the right 
> shell-1.0-b6.jar as well). There's also no
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  assumption of an empty (or 
> non-empty) database so you don't have to do
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  that reference node thingies.
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  As for the shell being started 
> without a neo instance already started
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  (just passing in the path to the 
> neo store), that functionality got
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  there in the neo/shell -1.0-rc1 
> version.
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Hopefully this new jar will fix 
> the problems.
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  / Mattias
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  2008/4/28 Emil Eifrem <[EMAIL 
> PROTECTED]>:
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  > > On Sun, Apr 27, 2008 at 11:54 PM, 
> Philip Jägenstedt <[EMAIL PROTECTED]> wrote:
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  I don't know why. Again, my 
> nodespace is ∅ so if there are some
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  assumptions made that there 
> will acutally be something there, it is
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  not so.
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Quick comment: Mattias (the 
> brain behind the Neo shell) is super busy
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  right now and will then be on a 
> plane for about 16 hours. But he'll
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  look into this as soon as he's 
> back. There's for certain nothing in
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Neo shell that assumes a 
> non-empty node space though, so that's not
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  it.
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Cheers,
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  --
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Emil Eifrém, CEO [EMAIL 
> PROTECTED]
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Neo Technology, 
> www.neotechnology.com
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Cell: +46 733 462 271 | US: 206 
> 403 8808
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  > > 
> _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >  
> https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  > 
> _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >  
> https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  > 
> _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  >  >  >  
> https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  > 
> _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  >  >  
> https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  > 
> _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  >  
> https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  > _______________________________________________
>  >  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  > _______________________________________________
>  >  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > _______________________________________________
>  >  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > _______________________________________________
>  >  >  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > _______________________________________________
>  >  >  >  >  >  Neo mailing list
>  >  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  > _______________________________________________
>  >  >  >  >  Neo mailing list
>  >  >  >  >  User@lists.neo4j.org
>  >  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  > _______________________________________________
>  >  >  >  Neo mailing list
>  >  >  >  User@lists.neo4j.org
>  >  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >  >
>  >  >  >
>  >  >
>  >  > _______________________________________________
>  >  >  Neo mailing list
>  >  >  User@lists.neo4j.org
>  >  >  https://lists.neo4j.org/mailman/listinfo/user
>  >  >
>  >  >
>  >
>  > _______________________________________________
>  >  Neo mailing list
>  >  User@lists.neo4j.org
>  >  https://lists.neo4j.org/mailman/listinfo/user
>  >
>  >
>
> _______________________________________________
>  Neo mailing list
>  User@lists.neo4j.org
>  https://lists.neo4j.org/mailman/listinfo/user
>
>
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to