[Geoserver-users] trouble starting GeoServer

Hi,

I having trouble starting GeoServer. I had 1.6.* installed and it worked fine, unistalled it, and installed 1.7.5, and now I can’t start Geoserver. I looked at the wrapper.log file in the logs folder, and found what is pasted below. After seeing that Java couldn’t’ be executed, I looked at my environment variables and saw that there was no JAVA_HOME variable. I created one, and as the value entered: C:\Program Files\Java\jdk1.6.0_13 GeoServer still fails to start, and the log file repeats the same as below.

I am running Windows XP Professional SP 3

The only other detail I can think of sharing is that I moved my data_dir from “internal” configuration to “external”, and pointed GeoServer to the external directory when I ran the Windows Installer. This part seems to be working ok though.

Thanks for your help,

Sebastian Roberts

STATUS | wrapper | 2009/06/19 11:14:03 | GeoServer 1.7.5 installed.

STATUS | wrapper | 2009/06/19 11:14:12 | Starting the GeoServer 1.7.5 service…

STATUS | wrapper | 2009/06/19 11:14:12 | → Wrapper Started as Service

STATUS | wrapper | 2009/06/19 11:14:12 | Java Service Wrapper Community Edition 3.3.3

STATUS | wrapper | 2009/06/19 11:14:12 | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved.

STATUS | wrapper | 2009/06/19 11:14:12 | http://wrapper.tanukisoftware.org

STATUS | wrapper | 2009/06/19 11:14:12 |

STATUS | wrapper | 2009/06/19 11:14:12 | Launching a JVM…

FATAL | wrapper | 2009/06/19 11:14:12 | Unable to execute Java command. The system cannot find the file specified. (0x2)

FATAL | wrapper | 2009/06/19 11:14:12 | “%JAVA_HOME%\bin\java” -Djetty.home=. -DGEOSERVER_DATA_DIR=“C:\GIS\GIS_Library\Forest\Jackson\KML&geoserver\data_dir” -Xms16m -Xmx128m -Djava.library.path=“bin/wrapper/lib” -classpath “bin/wrapper/lib/wrapper.jar;start.jar;lib/ant-1.6.4.jar;lib/ant-optional-1.5.1.jar;lib/commons-el-1.0.jar;lib/commons-logging-1.0.jar;lib/jasper-compiler-5.5.15.jar;lib/jasper-compiler-jdt-5.5.15.jar;lib/jasper-runtime-5.5.15.jar;lib/jetty-6.1.8.jar;lib/jetty-util-6.1.8.jar;lib/jsp-api-2.0.jar;lib/log4j-1.2.14.jar;lib/servlet-api-2.5-6.1.8.jar;lib/slf4j-simple-1.0.1.jar;lib/xercesImpl-2.6.2.jar;lib/xmlParserAPIs-2.6.2.jar” -Dwrapper.key=“3tCZbas6w7v9e8EQ” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=3384 -Dwrapper.version=“3.3.3” -Dwrapper.native_library=“wrapper” -Dwrapper.service=“TRUE” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.mortbay.start.Main etc/jetty.xml

Hi Sebastian,

Are you restarting your command line prompt after setting JAVA_HOME? You could also try explicitly adding %JAVA_HOME%/bin to your PATH environment variable.

-Justin

Roberts, Sebastian wrote:

Hi,

  I having trouble starting GeoServer. I had 1.6.* installed and it worked fine, unistalled it, and installed 1.7.5, and now I can’t start Geoserver. I looked at the wrapper.log file in the logs folder, and found what is pasted below. After seeing that Java couldn’t’ be executed, I looked at my environment variables and saw that there was no JAVA_HOME variable. I created one, and as the value entered: *C:\Program Files\Java\jdk1.6.0_13* GeoServer still fails to start, and the log file repeats the same as below.

I am running Windows XP Professional SP 3

The only other detail I can think of sharing is that I moved my data_dir from “internal” configuration to “external”, and pointed GeoServer to the external directory when I ran the Windows Installer. This part seems to be working ok though.

Thanks for your help,

Sebastian Roberts

STATUS | wrapper | 2009/06/19 11:14:03 | GeoServer 1.7.5 installed.

STATUS | wrapper | 2009/06/19 11:14:12 | Starting the GeoServer 1.7.5 service...

STATUS | wrapper | 2009/06/19 11:14:12 | --> Wrapper Started as Service

STATUS | wrapper | 2009/06/19 11:14:12 | Java Service Wrapper Community Edition 3.3.3

STATUS | wrapper | 2009/06/19 11:14:12 | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved.

STATUS | wrapper | 2009/06/19 11:14:12 | http://wrapper.tanukisoftware.org

STATUS | wrapper | 2009/06/19 11:14:12 |

STATUS | wrapper | 2009/06/19 11:14:12 | Launching a JVM...

FATAL | wrapper | 2009/06/19 11:14:12 | Unable to execute Java command. The system cannot find the file specified. (0x2)

FATAL | wrapper | 2009/06/19 11:14:12 | "%JAVA_HOME%\bin\java" -Djetty.home=. -DGEOSERVER_DATA_DIR="C:\GIS\GIS_Library\Forest\Jackson\KML&geoserver\data_dir" -Xms16m -Xmx128m -Djava.library.path="bin/wrapper/lib" -classpath "bin/wrapper/lib/wrapper.jar;start.jar;lib/ant-1.6.4.jar;lib/ant-optional-1.5.1.jar;lib/commons-el-1.0.jar;lib/commons-logging-1.0.jar;lib/jasper-compiler-5.5.15.jar;lib/jasper-compiler-jdt-5.5.15.jar;lib/jasper-runtime-5.5.15.jar;lib/jetty-6.1.8.jar;lib/jetty-util-6.1.8.jar;lib/jsp-api-2.0.jar;lib/log4j-1.2.14.jar;lib/servlet-api-2.5-6.1.8.jar;lib/slf4j-simple-1.0.1.jar;lib/xercesImpl-2.6.2.jar;lib/xmlParserAPIs-2.6.2.jar" -Dwrapper.key="3tCZbas6w7v9e8EQ" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=3384 -Dwrapper.version="3.3.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.mortbay.start.Main etc/jetty.xml

------------------------------------------------------------------------

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Justin,

I edited my Path Environment variable, but got the same result (the log
file has the same text).

I'm not certain what you mean by "restarting your command line prompt".

Thanks for your help, Sebastian

Roberts, Sebastian wrote:

Justin,

I edited my Path Environment variable, but got the same result (the log
file has the same text).

I'm not certain what you mean by "restarting your command line prompt".

Just shutting down the command line prompt window, and starting a new one. I know on windows when you make changes to the environment they do not affect existing running prompts. There might be some other way to do this in windows but I just start a new prompt.

Thanks for your help, Sebastian

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Ah, I see. When I attempt to start GeoServer, the command window only
remains open for a split second and then closes, so that isn't the issue
either.

Sebastian

To change an environment variable and have it stick, I set it through the GUI.

Right Click My Computer -> Properties (or go to System Control Panel)
Click Advanced
Click Environment Variables

Then find the appropriate variable (in this case JAVA_HOME) in this case and click Edit. Click OK twice.

Subsequent windows will have the variable persist.

Let us know how you fare...

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Justin Deoliveira wrote:

Roberts, Sebastian wrote:

Justin,

I edited my Path Environment variable, but got the same result (the log
file has the same text).

I'm not certain what you mean by "restarting your command line prompt".

Just shutting down the command line prompt window, and starting a new one. I know on windows when you make changes to the environment they do not affect existing running prompts. There might be some other way to do this in windows but I just start a new prompt.

Thanks for your help, Sebastian

Yes,
I have been using the manual method all along without any luck. The
JAVA_HOME user environment variable is set to;
C:\Program Files\Java\jdk1.6.0_13
With no quotes.
Sebastian

-----Original Message-----
From: Mike Pumphrey [mailto:mike@anonymised.com]
Sent: Tuesday, June 23, 2009 11:22 AM
To: Justin Deoliveira
Cc: Roberts, Sebastian; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] trouble starting GeoServer

To change an environment variable and have it stick, I set it through
the GUI.

Right Click My Computer -> Properties (or go to System Control Panel)
Click Advanced
Click Environment Variables

Then find the appropriate variable (in this case JAVA_HOME) in this case
and click Edit. Click OK twice.

Subsequent windows will have the variable persist.

Let us know how you fare...

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Justin Deoliveira wrote:

Roberts, Sebastian wrote:

Justin,

I edited my Path Environment variable, but got the same result (the

log

file has the same text).

I'm not certain what you mean by "restarting your command line

prompt".

Just shutting down the command line prompt window, and starting a new
one. I know on windows when you make changes to the environment they

do

not affect existing running prompts. There might be some other way to

do

this in windows but I just start a new prompt.

Thanks for your help, Sebastian

Hrm. What happens when you try to run the startup.bat file in the bin directory...or, failing that, this command manually (cd to your GeoServer instance first):

"%JAVA_HOME%\bin\java" -DGEOSERVER_DATA_DIR="%GEOSERVER_DATA_DIR%" -Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Roberts, Sebastian wrote:

Yes, I have been using the manual method all along without any luck. The
JAVA_HOME user environment variable is set to;
C:\Program Files\Java\jdk1.6.0_13
With no quotes. Sebastian

-----Original Message-----
From: Mike Pumphrey [mailto:mike@anonymised.com] Sent: Tuesday, June 23, 2009 11:22 AM
To: Justin Deoliveira
Cc: Roberts, Sebastian; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] trouble starting GeoServer

To change an environment variable and have it stick, I set it through
the GUI.

Right Click My Computer -> Properties (or go to System Control Panel)
Click Advanced
Click Environment Variables

Then find the appropriate variable (in this case JAVA_HOME) in this case
and click Edit. Click OK twice.

Subsequent windows will have the variable persist.

Let us know how you fare...

Thanks,
Mike Pumphrey
OpenGeo - http://opengeo.org

Justin Deoliveira wrote:

Roberts, Sebastian wrote:

Justin,

I edited my Path Environment variable, but got the same result (the

log

file has the same text).

I'm not certain what you mean by "restarting your command line

prompt".

Just shutting down the command line prompt window, and starting a new one. I know on windows when you make changes to the environment they

do

not affect existing running prompts. There might be some other way to

do

this in windows but I just start a new prompt.

Thanks for your help, Sebastian

I have the same problem....

I can't make the geoserver running.

I've installed it (first the jdk-6u14-windows-i586.exe from sun.com). Then,
I've created the JAVA_HOME environmental... C:\Program
Files\Java\jdk1.6.0_14. I'm starting geoserver and in browser I'm getting
this error:

HTTP Status 404 -

type Status report

message

descriptionThe requested resource () is not available.
Sun GlassFish Enterprise Server v2.1

WHY?

Here is the log report from geoserver....

STATUS | wrapper | 2009/08/01 16:42:24 | Starting the GeoServer 1.7.5
service...
STATUS | wrapper | 2009/08/01 16:42:24 | --> Wrapper Started as Service
STATUS | wrapper | 2009/08/01 16:42:24 | Java Service Wrapper Community
Edition 3.3.3
STATUS | wrapper | 2009/08/01 16:42:24 | Copyright (C) 1999-2009 Tanuki
Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2009/08/01 16:42:24 |
http://wrapper.tanukisoftware.org
STATUS | wrapper | 2009/08/01 16:42:24 |
STATUS | wrapper | 2009/08/01 16:42:25 | Launching a JVM...
FATAL | wrapper | 2009/08/01 16:42:25 | Unable to execute Java command.
The system cannot find the file specified. (0x2)
FATAL | wrapper | 2009/08/01 16:42:25 | "%JAVA_HOME%\bin\java"
-Djetty.home=. -DGEOSERVER_DATA_DIR="C:\Program Files\GeoServer
1.7.5\data_dir" -Xms16m -Xmx128m -Djava.library.path="bin/wrapper/lib"
-classpath
"bin/wrapper/lib/wrapper.jar;start.jar;lib/ant-1.6.4.jar;lib/ant-optional-1.5.1.jar;lib/commons-el-1.0.jar;lib/commons-logging-1.0.jar;lib/jasper-compiler-5.5.15.jar;lib/jasper-compiler-jdt-5.5.15.jar;lib/jasper-runtime-5.5.15.jar;lib/jetty-6.1.8.jar;lib/jetty-util-6.1.8.jar;lib/jsp-api-2.0.jar;lib/log4j-1.2.14.jar;lib/servlet-api-2.5-6.1.8.jar;lib/slf4j-simple-1.0.1.jar;lib/xercesImpl-2.6.2.jar;lib/xmlParserAPIs-2.6.2.jar"
-Dwrapper.key="H4K3inQEzwGbkcPj" -Dwrapper.port=32000
-Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=5176
-Dwrapper.version="3.3.3" -Dwrapper.native_library="wrapper"
-Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1
org.tanukisoftware.wrapper.WrapperSimpleApp org.mortbay.start.Main
etc/jetty.xml
FATAL | wrapper | 2009/08/01 16:42:25 | Critical error: wait for JVM
process failed
ERROR | wrapper | 2009/08/01 16:42:26 | The GeoServer 1.7.5 service was
launched, but failed to start.

please help !

Sincerely,

Adrian

--
View this message in context: http://www.nabble.com/trouble-starting-GeoServer-tp24127987p24769235.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

cove_adrian ha scritto:

I have the same problem....

I can't make the geoserver running.

I've installed it (first the jdk-6u14-windows-i586.exe from sun.com). Then,
I've created the JAVA_HOME environmental... C:\Program
Files\Java\jdk1.6.0_14. I'm starting geoserver and in browser I'm getting
this error:

HTTP Status 404 -

type Status report

message

descriptionThe requested resource () is not available.
Sun GlassFish Enterprise Server v2.1

WHY?

You have another application using port 8080.
GeoServer installer uses Jetty as the web container, but the 404
is returned by Glassfish instead, meaning you have that running
and using port 8080.

So either uninstall Glassfish, or uninstall the GeoServer installer,
then download the .war version of GeoServer and deploy it in
Glassfish, or move Glassfish to another port.

Cheers
Andrea

You need to replace the %JAVA_HOME% in the wrapper.conf file with your
actual java home path.

Interestingly wrapper runs with out the -t option (i.e. as a console
app) but fails as a service with out the change. So I don't know what
is the "proper" solution, may be some one with some wrapper knowledge
can figure it out.

Ian

I am wondering if the issue could be fixed by ensuring you have "JAVA_HOME=(Your path here)" in the SYSTEM variables. If it gets put in the user variables instead, that would explain why the logged in user can manually run but the service cannot.

________________________________________
From: Ian Turton [ijturton@anonymised.com]
Sent: Tuesday, August 04, 2009 10:52 AM
To: cove_adrian
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] trouble starting GeoServer

You need to replace the %JAVA_HOME% in the wrapper.conf file with your
actual java home path.

Interestingly wrapper runs with out the -t option (i.e. as a console
app) but fails as a service with out the change. So I don't know what
is the "proper" solution, may be some one with some wrapper knowledge
can figure it out.

Ian

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

How to do that?

You mean to insert between these %% C:\Program Files\Java\jdk1.6.0_14 this?

To show like this?

%C:\Program Files\Java\jdk1.6.0_14%

A good day,
Adrian!

--
View this message in context: http://www.nabble.com/trouble-starting-GeoServer-tp24127987p24823906.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Wed, Aug 5, 2009 at 5:52 AM, cove_adrian<cove_adrian@anonymised.com> wrote:

How to do that?

You mean to insert between these %% C:\Program Files\Java\jdk1.6.0_14 this?

To show like this?

%C:\Program Files\Java\jdk1.6.0_14%

No %'s - just replace %JAVA_HOME% with C:\Program
Files\Java\jdk1.6.0_14 and all should be fine (you will still need to
set %JAVA_HOME% and have it on your path.

Ian