No static content available for Neo Server at port [7474], management console

285 views
Skip to first unread message

aldrinm

unread,
Mar 28, 2012, 4:53:10 AM3/28/12
to ne...@googlegroups.com
"ERROR web.Jetty6WebServer  - No static content available for Neo Server at port [7474], management console"

What does this error mean? 

I'm trying to run an embedded server from within a Grails 2.0.1 app with the Neo4j plugin. 


    dependencies {
        // uncomment next three lines if you're using embedded/ha *and* you want the webadmin available
        compile(group:"org.neo4j.app", name:"neo4j-server", version:"1.6.1")
        runtime(group:"org.neo4j.app", name:"neo4j-server", version:"1.6.1", branch:"static-web")
        runtime('com.sun.jersey:jersey-bundle:1.9-SNAPSHOT')
   }


any insight would be helpful.


 

Peter Neubauer

unread,
Mar 28, 2012, 11:37:13 AM3/28/12
to ne...@googlegroups.com
Aldrin,
do you have the project somewhere to try out?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

aldrinm

unread,
Mar 28, 2012, 1:38:47 PM3/28/12
to ne...@googlegroups.com
A sample project is here  https://github.com/aldrinm/neo4j-embedded 

The error is thrown when starting the app. The app itself works fine but the management console is not accessible.  


Thanks,
Aldrin

Peter Neubauer

unread,
Mar 30, 2012, 10:17:24 AM3/30/12
to ne...@googlegroups.com
How do I run it?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

aldrinm

unread,
Mar 30, 2012, 1:11:25 PM3/30/12
to ne...@googlegroups.com
After setting up Grails 2.0.1, and fetching the repo code, just go into the console and 'grails run-app' 

Peter Neubauer

unread,
Apr 2, 2012, 3:28:19 PM4/2/12
to ne...@googlegroups.com
Hi Aldrin,
to start with, I had to add a repo in the BuildConfig.groovy like

repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()

// uncomment these to enable remote dependency resolution from
public Maven repositories
//mavenCentral()
//mavenLocal()
mavenRepo "http://m2.neo4j.org/content/repositories/everything/"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}

Building now ...

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Peter Neubauer

unread,
Apr 3, 2012, 10:48:25 AM4/3/12
to ne...@googlegroups.com, Stefan Armbruster
Mmh yeah,
I am seeing the same behavior, and I am no Grails expert. I am
guessing that the setup needs to be tweaked somehow. Maybe Stefan, you
have an idea here?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Stefan Armbruster

unread,
Apr 3, 2012, 3:52:16 PM4/3/12
to ne...@googlegroups.com
Hi,

it's a dependency issue. Jersey refuses to start up with "No
WebApplication provider is present". I've played around and found a
working config. Try to replace the quoted section in your
BuildConfig.groovy with

dependencies {


compile(group:"org.neo4j.app", name:"neo4j-server", version:"1.6.1")
runtime(group:"org.neo4j.app", name:"neo4j-server", version:"1.6.1",
branch:"static-web")

runtime('com.sun.jersey:jersey-server:1.9')
runtime('com.sun.jersey:jersey-core:1.9')
}

Regards,
Stefan

aldrinm

unread,
Apr 4, 2012, 10:02:22 AM4/4/12
to ne...@googlegroups.com
Hi Stefan,

This didn't work for me. I get same error. However, I can access the REST endpoint http://localhost:7474/db/data/ and http://localhost:7474/webadmin gives me a 404. So i guess only the web admin console is not being set up correctly.

Thanks,
Aldrin

Stefan Armbruster

unread,
Apr 4, 2012, 10:04:57 AM4/4/12
to ne...@googlegroups.com
Hi Aldrin,

is your code available somewhere?

Regards,
Stefan

aldrinm

unread,
Apr 4, 2012, 11:45:10 AM4/4/12
to ne...@googlegroups.com
Hi Stefan,



-Aldrin

Stefan Armbruster

unread,
Apr 4, 2012, 3:01:46 PM4/4/12
to ne...@googlegroups.com
Hi Aldrin,

not a solution, but at least a workaround: copy
http://m2.neo4j.org/content/repositories/releases/org/neo4j/app/neo4j-server/1.6.1/neo4j-server-1.6.1-static-web.jar
to <projectdir>/lib. According to
http://jira.grails.org/browse/GRAILS-6147, dependencies with an
classifier do not work.

Regards,
Stefan

aldrinm

unread,
Apr 5, 2012, 2:50:27 AM4/5/12
to ne...@googlegroups.com
Hi Stefan, 

Thanks. That got rid of the error. and I can access the webadmin. Only the neo4j console shell doesn't seem to work. Stacktrace is below. Though I can live with this for now....

Regards,
Aldrin

ERROR container.ContainerResponse  - The RuntimeException could not be mapped to a response, re-throwing to t
he HTTP container
Message: Shell server null
    Line | Method
->>   50 | <init>                  in org.neo4j.server.webadmin.rest.ShellSession
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     86 | newSession              in org.neo4j.server.webadmin.rest.SessionFactoryImpl$SessionCreator$3
|     57 | getOrInstantiateSession in org.neo4j.server.webadmin.rest.SessionFactoryImpl
|     44 | createSession           in     ''
|    124 | getSession . . . . . .  in org.neo4j.server.webadmin.rest.ConsoleService
|    113 | exec                    in     ''
|     60 | invoke . . . . . . . .  in com.sun.jersey.spi.container.JavaMethodInvokerFactory$1
|    205 | _dispatch               in com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker
|     75 | dispatch . . . . . . .  in com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher
|    288 | accept                  in com.sun.jersey.server.impl.uri.rules.HttpMethodRule
|    108 | accept . . . . . . . .  in com.sun.jersey.server.impl.uri.rules.ResourceClassRule
|    147 | accept                  in com.sun.jersey.server.impl.uri.rules.RightHandPathRule
|     84 | accept . . . . . . . .  in com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule
|   1469 | _handleRequest          in com.sun.jersey.server.impl.application.WebApplicationImpl
|   1400 | _handleRequest . . . .  in     ''
|   1349 | handleRequest           in     ''
|   1339 | handleRequest . . . . . in     ''
|    416 | service                 in com.sun.jersey.spi.container.servlet.WebComponent
|    537 | service . . . . . . . . in com.sun.jersey.spi.container.servlet.ServletContainer
^    699 | service                 in     ''

2012-04-05 12:12:44,811 [4691406@qtp-1884826901-2] ERROR mortbay.log  - /db/manage/server/console/
Message: Shell server null
    Line | Method
->>   50 | <init>                  in org.neo4j.server.webadmin.rest.ShellSession
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     86 | newSession              in org.neo4j.server.webadmin.rest.SessionFactoryImpl$SessionCreator$3
|     57 | getOrInstantiateSession in org.neo4j.server.webadmin.rest.SessionFactoryImpl
|     44 | createSession           in     ''
|    124 | getSession . . . . . .  in org.neo4j.server.webadmin.rest.ConsoleService
|    113 | exec                    in     ''
|     60 | invoke . . . . . . . .  in com.sun.jersey.spi.container.JavaMethodInvokerFactory$1
|    205 | _dispatch               in com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker
|     75 | dispatch . . . . . . .  in com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher
|    288 | accept                  in com.sun.jersey.server.impl.uri.rules.HttpMethodRule
|    108 | accept . . . . . . . .  in com.sun.jersey.server.impl.uri.rules.ResourceClassRule
|    147 | accept                  in com.sun.jersey.server.impl.uri.rules.RightHandPathRule
|     84 | accept . . . . . . . .  in com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule
|   1469 | _handleRequest          in com.sun.jersey.server.impl.application.WebApplicationImpl
|   1400 | _handleRequest . . . .  in     ''
|   1349 | handleRequest           in     ''
|   1339 | handleRequest . . . . . in     ''
|    416 | service                 in com.sun.jersey.spi.container.servlet.WebComponent
|    537 | service . . . . . . . . in com.sun.jersey.spi.container.servlet.ServletContainer
^    699 | service                 in     ''

Michael Hunger

unread,
Apr 5, 2012, 2:59:34 AM4/5/12
to ne...@googlegroups.com
You'll probably have to add the neo4j-shell dependency if it is not yet there.

Michael

aldrinm

unread,
Apr 7, 2012, 6:54:12 AM4/7/12
to ne...@googlegroups.com
Adding neo4j-shell didn't help,
...
runtime (group:"org.neo4j", name:"neo4j-shell", version:"1.6.1")
....


Regards,
Aldrin

Peter Neubauer

unread,
Apr 10, 2012, 4:10:28 PM4/10/12
to ne...@googlegroups.com
Aldrin,
is this still not solved?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

aldrinm

unread,
Apr 11, 2012, 4:15:57 AM4/11/12
to ne...@googlegroups.com
Hi Peter,

Just the web admin console shell doesn't work at the moment. I tried adding the neo4j-shell dependency, but it didn't help.  

Cheers,
Aldrin


On Wednesday, 11 April 2012 01:40:28 UTC+5:30, Peter Neubauer wrote:
Aldrin,
is this still not solved?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Stefan Armbruster

unread,
Apr 13, 2012, 5:09:30 AM4/13/12
to ne...@googlegroups.com
Hi Aldrin,

sorry for the delay... Did some debugging on that. You need to enable
the remote shell when starting up the embedded graph db. So your
grails-app/conf/Datasource.groovy should look like:

grails {
neo4j {
type = "embedded"
params = [ enable_remote_shell : true]
}
}

The dependencies section in grails-app/conf/BuildConfig.groovy is:

dependencies {
runtime(group:"org.neo4j.app", name:"neo4j-server", version:"1.6.1")


runtime('com.sun.jersey:jersey-server:1.9')
runtime('com.sun.jersey:jersey-core:1.9')
}

Because of http://jira.grails.org/browse/GRAILS-6147, Grails currently
does not handle 'classifier' dependencies correctly. As a workaround,
download the neo4j-server-1.6.1-static-web.jar manually and place it in
your lib directory.
Also, add
mavenRepo 'http://m2.neo4j.org/releases'
to the list of repositories.

See https://github.com/sarmbruster/neo4jgrailstest for a demo with
webadmin + shell running.

Regards,
Stefan


--
Systemberatung & Softwareentwicklung | Mail: ste...@armbruster-it.de
Dipl.-Phys. univ. Stefan Armbruster | Twitter: darthvader42
Kornblumenweg 5 | Tel.: +49 (8121) 428666
85586 Poing | Fax.: +49 (8121) 429241
WWW: http://blog.armbruster-it.de | Mobil: +49 (163) 4711712
PGP Fingerprint: F330 A4FC 6286 EB83 E7E1 6654 6075 769B 4491 04D6

"Es genügt nicht, keine Gedanken zu haben,
man muss auch unfähig sein, sie auszudrücken."
(Karl Krauss)

Peter Neubauer

unread,
Apr 13, 2012, 7:36:36 AM4/13/12
to ne...@googlegroups.com
Cool,
good catch! I actually think that this has been fixed in 1.7.M02, so
the shell is running in-VM if to support the webadmin if you don't
enable it remotely, see https://github.com/neo4j/community/pull/236

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer

T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Aldrin M

unread,
Apr 16, 2012, 12:41:18 PM4/16/12
to ne...@googlegroups.com
Great! Thanks Stefan and Peter.

Cheers,
Aldrin
Reply all
Reply to author
Forward
0 new messages