Hi Brent & list,
Thanks for the reply, however I haven't got a
[geoserver_home]/webapps/geoserver/conf directory. Is it created the
first time geoserver starts up?
The contents of [geoserver_home] are:
bin documents lib README.txt server
data_dir GPL.txt license.txt RUNNING.txt
I didn't miss out any steps in the install, (I even re-installed this
morning). I am running Tomcat on port 8080, so modified the default
port in $GEOSERVER_HOME/documents/jetty.xml
Many thanks for your help
Dan
-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of
Brent Owens
Sent: 02 November 2006 17:25
To: Dan Lear
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Unable to start GeoServer - new
install[Virus Scanned by MBA]
It looks like geoserver does not have permission to read or write to its
configuration directory.
This would be your usr/local/geoserver/conf directory
You can tell geoserver to use a different location as its data
directory. It comes with a default one located at
[geoserver_home]/webapps/geoserver/conf
In your webapps/geoserver directory go to the WEB-INF directory and open
up the web.xml file.
In it there is a commented-out xml element that is called
<GEOSERVER_DATA_DIR> You can put a url in that to point to the data
directory of your choice.
In that data directory you need two files: services.xml and config.xml,
you also need some supporting directories. Pretty much everything that
comes in the default webapps/geoserver/conf directory. So you can just
have it point at the default geoserver data directory, make sure that
geoserver/jetty have permissions to read/write from it, and everything
should work.
Brent Owens
(The Open Planning Project)
Dan Lear wrote:
Hi,
I'm trying to install geoserver of FC4, I followed the detailed
instructions for unix installations but get the following output when
trying to start geoserver:Can anyone help?
Thanks
DanGEOSERVER DATA DIR is /usr/local/geoserver/conf
15:47:25.559 EVENT Checking Resource aliases
15:47:26.206 EVENT Starting Jetty/4.2.21
15:47:26.219 EVENT Started ServletHttpContext[/]
15:47:26.222 EVENT Started SocketListener on 127.0.0.1:8081
15:47:26.222 EVENT Started org.mortbay.jetty.Server@anonymised.com
15:47:26.261 EVENT Starting Jetty/4.2.21
15:47:26.398 EVENT Started
WebApplicationContext[/geoserver,GeoServer]
Nov 2, 2006 3:47:28 PM
org.vfny.geoserver.global.xml.XMLConfigWriter$WriterUtils initFile
SEVERE: Attempting to create
file:/usr/local/geoserver/conf/services.xml
15:47:28.359 WARN!! action: null
java.lang.RuntimeException:
org.vfny.geoserver.global.ConfigurationException: ja
va.io.IOException:
No such file or directory
at
org.vfny.geoserver.global.ApplicationState.getXmlTimestamp(Applicatio
nState.java:525)
at
org.vfny.geoserver.global.ApplicationState.init(ApplicationState.java
:96)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:445)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:458)
at org.mortbay.http.HttpServer.start(HttpServer.java:663)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:152)
at org.mortbay.start.Main.start(Main.java:482)
at org.mortbay.start.Main.main(Main.java:90)
Caused by: org.vfny.geoserver.global.ConfigurationException:
java.io.IOException : No such file or directory
at
org.vfny.geoserver.global.xml.XMLConfigWriter$WriterUtils.initFile(XM
LConfigWriter.java:1059)
at
org.vfny.geoserver.global.xml.XMLConfigWriter$WriterUtils.initWriteFi
le(XMLConfigWriter.java:1097)
at
org.vfny.geoserver.global.ApplicationState.getXmlTimestamp(Applicatio
nState.java:522)
... 17 more
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at
org.vfny.geoserver.global.xml.XMLConfigWriter$WriterUtils.initFile(XM
LConfigWriter.java:1053)
... 19 more15:47:28.363 EVENT action: null: java.lang.RuntimeException:
org.vfny.geoserver .global.ConfigurationException:
java.io.IOException:
No such file or directory
15:47:28.364 WARN!! Failed to start: SocketListener@anonymised.com:8080
15:47:28.364 WARN!!
org.mortbay.util.MultiException[javax.servlet.UnavailableException,
java.net.Bin dException: Address already in use]
at org.mortbay.http.HttpServer.start(HttpServer.java:640)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:152)
at org.mortbay.start.Main.start(Main.java:482)
at org.mortbay.start.Main.main(Main.java:90)
[0]=javax.servlet.UnavailableException
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:1169)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:220)
at
org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:445)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:150)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:458)
at org.mortbay.http.HttpServer.start(HttpServer.java:663)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:152)
at org.mortbay.start.Main.start(Main.java:482)
at org.mortbay.start.Main.main(Main.java:90)
[1]=java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at
org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:3
09)
at
org.mortbay.util.ThreadedServer.open(ThreadedServer.java:380)
at
org.mortbay.util.ThreadedServer.start(ThreadedServer.java:406)
at
org.mortbay.http.SocketListener.start(SocketListener.java:154)
at org.mortbay.http.HttpServer.start(HttpServer.java:671)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mortbay.start.Main.invokeMain(Main.java:152)
at org.mortbay.start.Main.start(Main.java:482)
at org.mortbay.start.Main.main(Main.java:90)----------------------------------------------------------------------
--- Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216
42 _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users