I have it successfully running within jetty and I just tried deploying to
Tomcat. The web admin loads up sometimes in tomcat, but if I keep
refreshing I get the following errors about half of the time:
SEVERE: /webadmin/css/style.css
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415)
at java.util.zip.ZipFile.access$100(ZipFile.java:31)
at java.util.zip.ZipFile$2.hasMoreElements(ZipFile.java:315)
at java.util.jar.JarFile$1.hasMoreElements(JarFile.java:222)
at org.mortbay.resource.JarFileResource.exists(JarFileResource.java:157)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:400)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
I see the same with Tomcat 6.0.35 on both JDK6 and JDK7. I was wondering if
anyone else has experienced the same and found a fix?
_______________________________________________
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
Us...@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
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>
<groupId>org.neo4j.app</groupId>
<artifactId>neo4j-server</artifactId>
<version>1.5</version>
<classifier>static-web</classifier>
<scope>provided</scope>
</dependency>
Then used the maven unpack dependencies plugin to unpack the JAR into the
WAR:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
<configuration>
<includeGroupIds>org.neo4j.app</includeGroupIds>
<includeArtifactIds>neo4j-server</includeArtifactIds>
<includeClassifiers>static-web</includeClassifiers>
<includes>webadmin-html/**</includes>
<outputDirectory>target/graphdemo-1.0/WEB-INF/classes</outputDirectory>
</configuration>
</plugin>
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
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
_______________________________________________
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.