[Geoserver-devel] image/gif format not functional in tomcat

Hi all,

Running the wms cite tests for 1.7.1 in tomcat i ran into this issue:

java.lang.NoClassDefFoundError: com/sun/media/imageioimpl/common/LZWCompressor

This seems to occur with any wms getMap request which chooses image/gif as an output format. Example:

http://localhost:8080/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

Do the imageio experts have an idea? Can anyone reproduce?

-Justin

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

Hi Justin,
i have an installation of geoserver 1.7.1 running on tomcat 6.

I try this and i not have this exception.

this is a url of my geoserver:

http://geoserver.nsdi.it/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

2008/12/5 Justin Deoliveira <jdeolive@anonymised.com>

Hi all,

Running the wms cite tests for 1.7.1 in tomcat i ran into this issue:

java.lang.NoClassDefFoundError:
com/sun/media/imageioimpl/common/LZWCompressor

This seems to occur with any wms getMap request which chooses image/gif
as an output format. Example:

http://localhost:8080/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

Do the imageio experts have an idea? Can anyone reproduce?

-Justin


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


SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can’t happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/


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


Francesco Izzi
geoSDI - NSDI
Responsabile Sviluppo Software

C.da Loja
85050 Tito Scalo - POTENZA (PZ)
Italia

phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3402640314

http://geosdi.nsdi.it

Justin Deoliveira ha scritto:

Hi all,

Running the wms cite tests for 1.7.1 in tomcat i ran into this issue:

java.lang.NoClassDefFoundError: com/sun/media/imageioimpl/common/LZWCompressor

This seems to occur with any wms getMap request which chooses image/gif as an output format. Example:

http://localhost:8080/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

Do the imageio experts have an idea? Can anyone reproduce?

Tested it on my windows box using the Eclipse starter, works fine...
but afaik someone else reported a similar problem already.
It seems to occur on Mac only, and only with Tomcat 6.
Try downgrading to Tomcat 5 maybe?

Cheers
Andrea

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

It may be a classloader issue ... where are the imageio jars located
on your configuration? Have you more than one version of imageio
deployed somewhere?

-------------------------------------------------------
Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it

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

On Fri, Dec 5, 2008 at 7:08 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,

Running the wms cite tests for 1.7.1 in tomcat i ran into this issue:

java.lang.NoClassDefFoundError:
com/sun/media/imageioimpl/common/LZWCompressor

This seems to occur with any wms getMap request which chooses image/gif
as an output format. Example:

http://localhost:8080/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

Do the imageio experts have an idea? Can anyone reproduce?

-Justin

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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Tested it on my mac with Eclipse and Tomcat 6 and work fine.

2008/12/6 Alessio Fabiani <alessio.fabiani@anonymised.com>

It may be a classloader issue … where are the imageio jars located
on your configuration? Have you more than one version of imageio
deployed somewhere?


Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it


On Fri, Dec 5, 2008 at 7:08 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi all,

Running the wms cite tests for 1.7.1 in tomcat i ran into this issue:

java.lang.NoClassDefFoundError:
com/sun/media/imageioimpl/common/LZWCompressor

This seems to occur with any wms getMap request which chooses image/gif
as an output format. Example:

http://localhost:8080/geoserver/wms?request=getmap&layers=topp:states&format=image/gif&width=500&height=500&bbox=-180,-90,180,90&srs=epsg:4326&service=wms&version=1.1.1&styles=population

Do the imageio experts have an idea? Can anyone reproduce?

-Justin


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


SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can’t happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/


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


SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can’t happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/


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


Francesco Izzi
geoSDI - NSDI
Responsabile Sviluppo Software

C.da Loja
85050 Tito Scalo - POTENZA (PZ)
Italia

phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3402640314

http://geosdi.nsdi.it