I have installed per the instructions for the binary. Apache is up and running. JAVA_HOME, GEOSERVER_HOME and GEOSERVER_DATA_DIR are set. When I run $GEOSERVER_HOME/bin/startup.sh i get the following:
32603 [btpool0-9 - Acceptor0 SelectChannelConnector@anonymised.com:8080] ERROR org.mortbay.log - EXCEPTION
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:532)
at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:166)
at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:537)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
This error repeats itself until I kill the process. Would anyone have any ideas that could point me to a solution? This is beyond me.
Thanks
Bill Ten Broeck ha scritto:
I have installed per the instructions for the binary. Apache is up and running.
Unless you want Apache to proxy Jetty/Tomcat, that's not needed.
JAVA_HOME, GEOSERVER_HOME and GEOSERVER_DATA_DIR are set. When I run $GEOSERVER_HOME/bin/startup.sh i get the following:
32603 [btpool0-9 - Acceptor0 SelectChannelConnector@anonymised.com:8080] ERROR org.mortbay.log - EXCEPTION
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:532)
at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:166)
at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:537)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
This error repeats itself until I kill the process. Would anyone have any ideas that could point me to a solution? This is beyond me.
My guess is that you're using OpenJDK instead of a Sun JDK. Install sun-java6 package (not sure about the exact package name, but it should
be close), remove OpenJDK, and you should be good.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
I re-installed Ubuntu, and installed JAVA Sun 1.5.
I am now getting the error:
java.io.FileNotFoundException:Could not find services.xml under:/usr/local/geoserver-1.7.0/webapps/geoserver/data... which makes sense since the sub-directory "data" does not exist there.
Andrea, I wanted to acknowledge your willingness to help, but I will need to pause on this for a while, as I have already spent too much time trying to get it to work in Linux, AND I DO have it working in Windows.
Thanks,
Bill
Andrea Aime wrote:
Bill Ten Broeck ha scritto:
I have installed per the instructions for the binary. Apache is up and running.
Unless you want Apache to proxy Jetty/Tomcat, that's not needed.
JAVA_HOME, GEOSERVER_HOME and GEOSERVER_DATA_DIR are set. When I run $GEOSERVER_HOME/bin/startup.sh i get the following:
32603 [btpool0-9 - Acceptor0 SelectChannelConnector@anonymised.com:8080] ERROR org.mortbay.log - EXCEPTION
java.lang.ClassCastException: gnu.java.nio.ServerSocketChannelImpl cannot be cast to java.nio.channels.SocketChannel
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:532)
at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:166)
at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:537)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
This error repeats itself until I kill the process. Would anyone have any ideas that could point me to a solution? This is beyond me.
My guess is that you're using OpenJDK instead of a Sun JDK. Install sun-java6 package (not sure about the exact package name, but it should
be close), remove OpenJDK, and you should be good.
Cheers
Andrea
Bill Ten Broeck ha scritto:
I re-installed Ubuntu, and installed JAVA Sun 1.5.
I am now getting the error:
java.io.FileNotFoundException:Could not find services.xml under:/usr/local/geoserver-1.7.0/webapps/geoserver/data... which makes sense since the sub-directory "data" does not exist there.
Andrea, I wanted to acknowledge your willingness to help, but I will need to pause on this for a while, as I have already spent too much time trying to get it to work in Linux, AND I DO have it working in Windows.
Hum, why is it not there? Assuming you've installed the -bin distribution, either you miss the data dir inside of it (strange) or
you still have an enviroment variable telling GeoServer that the data
dir is in some other location. Unfortunately I work mostly on XP, I
don't believe anyone actually tested a GS install in Ubuntu before
releasing 1.7.0.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.