[Geoserver-users] Error running Geoserver 1.7 on Ubuntu 8.0.4

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?

Thanks

--
View this message in context: http://www.nabble.com/Error-running-Geoserver-1.7-on-Ubuntu-8.0.4-tp20366314p20366314.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Sorry, GeoServer only works with Sun Java. You are apparently using GCJ (the gnu.java... bit gives it away) so installing a Sun JDK and ensuring that the JAVA_HOME variable points to it should fix this problem.

Hope this helps,
David Winslow

btenbroeck wrote:

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?

Thanks