Re: [Neo4j] [neo4j] Running the web admin inside Tomcat
Thanks Ian for putting this together, good to know for future reference! Now we need to find a place in the manual to put this in :) Cheers, /peter neubauer Google:neubauer.peter Skype:peter.neubauer Phone: +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter @peterneubauer brew install neo4j neo4j start heroku addons:add neo4j On Fri, Dec 9, 2011 at 12:27 PM, Ian Forsey for...@gmail.com wrote: Hi Peter, I wasn't sure what you meant by test case, since I don't think this something that fits in a unit test, but I've created the following repo with an example. The readme.MD explains how to build a war with the issue and one without. I'm using spring data neo4j, so have included this along with spring in the project, but other than that it is pretty bare-bones. https://github.com/theon/neo4j-war-with-webadmin ___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [neo4j] Running the web admin inside Tomcat
Hi Peter, I wasn't sure what you meant by test case, since I don't think this something that fits in a unit test, but I've created the following repo with an example. The readme.MD explains how to build a war with the issue and one without. I'm using spring data neo4j, so have included this along with spring in the project, but other than that it is pretty bare-bones. https://github.com/theon/neo4j-war-with-webadmin ___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [neo4j] Running the web admin inside Tomcat
It's ok, I figured a work around for this. Maven was creating a WAR with the web admin JARs in WEB-INF/lib. If I instead extracted the web admin static JAR so the contents were directly in the WAR, it worked. I had to first tell maven not to package the JAR by specifying provided as the scope. dependency groupIdorg.neo4j.app/groupId artifactIdneo4j-server/artifactId version1.5/version classifierstatic-web/classifier scopeprovided/scope /dependency Then used the maven unpack dependencies plugin to unpack the JAR into the WAR: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.4/version executions execution goals goalunpack-dependencies/goal /goals phaseprocess-resources/phase /execution /executions configuration includeGroupIdsorg.neo4j.app/includeGroupIds includeArtifactIdsneo4j-server/includeArtifactIds includeClassifiersstatic-web/includeClassifiers includeswebadmin-html/**/includes outputDirectorytarget/graphdemo-1.0/WEB-INF/classes/outputDirectory /configuration /plugin ___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] [neo4j] Running the web admin inside Tomcat
Mmh, thanks for the feedback! This sounds like a note in the docs, or some example project setup to make sure this is documented somewhere. Care to set up a maven project with a testcase that we could pull into the main build system to avoid further problems? I would like to have a WAR based project anyway in order to demonstrate servlet-based use of Neo4j wich I could add in there ... 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 brew install neo4j neo4j start heroku addons:add neo4j On Thu, Dec 8, 2011 at 6:57 PM, Ian Forsey for...@gmail.com wrote: It's ok, I figured a work around for this. Maven was creating a WAR with the web admin JARs in WEB-INF/lib. If I instead extracted the web admin static JAR so the contents were directly in the WAR, it worked. I had to first tell maven not to package the JAR by specifying provided as the scope. dependency groupIdorg.neo4j.app/groupId artifactIdneo4j-server/artifactId version1.5/version classifierstatic-web/classifier scopeprovided/scope /dependency Then used the maven unpack dependencies plugin to unpack the JAR into the WAR: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.4/version executions execution goals goalunpack-dependencies/goal /goals phaseprocess-resources/phase /execution /executions configuration includeGroupIdsorg.neo4j.app/includeGroupIds includeArtifactIdsneo4j-server/includeArtifactIds includeClassifiersstatic-web/includeClassifiers includeswebadmin-html/**/includes outputDirectorytarget/graphdemo-1.0/WEB-INF/classes/outputDirectory /configuration /plugin ___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user