[Geoserver-users] Installing latest jar on Mac

I wrote up some install instructions for Mac a while back, but recently trying to update them I found I couldn't get through it all. Basically couldn't get GeoServer to start, but before I jump into my logs, I'd be curious to know if anyone else can have success with a recent 1.7 or 2alpha version of the geoserver.jar install method I outline.

http://spatialguru.com/install/geoserver

Best thing to do is probably to convince Justin to release his Mac OS/X installer. He showed me a demo, it seemed to work pretty well. Hopefully it’s close to being release quality.

I’ve got a mac now, so I can also give it a go.

On Sat, Nov 1, 2008 at 12:51 PM, OSGeo Tyler Mitchell <tmitchell@anonymised.com> wrote:

I wrote up some install instructions for Mac a while back, but
recently trying to update them I found I couldn’t get through it
all. Basically couldn’t get GeoServer to start, but before I jump
into my logs, I’d be curious to know if anyone else can have success
with a recent 1.7 or 2alpha version of the geoserver.jar install
method I outline.

http://spatialguru.com/install/geoserver


This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


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

On 1-Nov-08, at 9:53 PM, Chris Holmes wrote:

Best thing to do is probably to convince Justin to release his Mac OS/X installer. He showed me a demo, it seemed to work pretty well. Hopefully it's close to being release quality.

Hi Chris,
Thanks - great to hear there is an installer out there. I was just starting to love dropping the war file into tomcat... I'd love to also get that approach going again too.

Just tried out gs 1.7.0a-war.zip and I had a 2.0-alpha one on the same tomcat, and both worked fine on Mac OS/X.

My install was a bit different, I just download tomcat directly instead of using darwin ports, as I don’t have that set up. But I don’t think that should make much of a difference.

Make sure your java version is at least 1.5, though that’s what comes with Mac OS/X, so I don’t see how it couldn’t be. Try ‘java -version’ from the command line. But that is one difference in 1.6 to 1.7 and 2.0, the new ones both require java 5.

If that’s not in, then yeah, dig in to the logs and let us know what you find.

Chris

On Sat, Nov 1, 2008 at 10:08 PM, Tyler Mitchell (OSGeo) <tmitchell@anonymised.com> wrote:

On 1-Nov-08, at 9:53 PM, Chris Holmes wrote:

Best thing to do is probably to convince Justin to release his Mac
OS/X installer. He showed me a demo, it seemed to work pretty
well. Hopefully it’s close to being release quality.

Hi Chris,
Thanks - great to hear there is an installer out there. I was just
starting to love dropping the war file into tomcat… I’d love to
also get that approach going again too.


This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


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

On 2-Nov-08, at 8:46 AM, Chris Holmes wrote:

Just tried out gs 1.7.0a-war.zip and I had a 2.0-alpha one on the same tomcat, and both worked fine on Mac OS/X.

Great to know, thanks!

Make sure your java version is at least 1.5, though that's what comes with Mac OS/X, so I don't see how it couldn't be. Try 'java -version' from the command line. But that is one difference in 1.6 to 1.7 and 2.0, the new ones both require java 5.

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)

Look good? I assume 1.5 = Java 5?

If that's not in, then yeah, dig in to the logs and let us know what you find.

I found a few errors in catalina.out, snipped up here... mean anything to you guys? :slight_smile:

----------
02 Nov 13:16:20 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.geoserver.GeoserverInitStartupListener
com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: : java.util.zip.ZipException: error in opening zip file
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.parse(Service.java:206)
...

02 Nov 13:16:22 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: /opt/local/share/java/tomcat5/webapps/geoserver/data
----------------------------------
...

02 Nov 13:16:24 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/opt/local/share/java/tomcat5/webapps/geoserver/WEB-INF/lib/main-1.6.5.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: null
java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
...

02 Nov 13:16:24 ERROR [[localhost].[/geoserver]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/opt/local/share/java/tomcat5/webapps/geoserver/WEB-INF/lib/main-1.6.5.jar!/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: null
java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
...

Hi Tyler,

<snip>

02 Nov 13:16:22 ERROR [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: /opt/local/share/java/tomcat5/webapps/geoserver/ data
----------------------------------
...

02 Nov 13:16:24 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/opt/local/ share/java/tomcat5/webapps/geoserver/WEB-INF/lib/main-1.6.5.jar!/ applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: null
java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)

Is there any more of the stack trace in the log? A few more lines or so of it should enlighten us. Feel free to attach the entire log.

-Justin

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

On 2-Nov-08, at 1:33 PM, Justin Deoliveira wrote:

Is there any more of the stack trace in the log? A few more lines or so of it should enlighten us. Feel free to attach the entire log.

Great...attached.

Tyler

catalina.out (14.3 KB)

catalina.err (4.26 KB)

Question Tyler. Do you have JAI extension installed? Which version? And do you have both JAI, and the ImageIO extensions installed?

The errors I am seeing seem to point to that.

Tyler Mitchell (OSGeo) wrote:

On 2-Nov-08, at 1:33 PM, Justin Deoliveira wrote:

Is there any more of the stack trace in the log? A few more lines or so of it should enlighten us. Feel free to attach the entire log.

Great...attached.

Tyler

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

Justin Deoliveira ha scritto:

Question Tyler. Do you have JAI extension installed? Which version? And do you have both JAI, and the ImageIO extensions installed?

The errors I am seeing seem to point to that.

I had a chat on IRC with Tyler a few days ago and basically
went down the same path, make him do "which java" and then
search for "jai*.jar" inside his jdk but there was nothing there.

Justin, is there any magic location in which OSX would put
such an extension (I mean, outside the JDK folders)?
Tyler, the full list of "JAI" and "JAI Image I/O" related
jars installed on my PC (Windows, so the path in which
they are located is C:\Programmi\Java\jdk1.6.0_07\jre\lib\ext)
is:
clibwrapper_jiio.jar
jai_codec.jar
jai_core.jar
jai_imageio.jar
mlibwrapper_jai.jar

Do you have any of these files around (besides the GeoServer
install dir itself?).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.