Hi all,

I can’t get WMS to work with PNG on Ubuntu 14.04 (fresh install). I’m trying 
with one of the demos and Leaflet. I’ve tried Oracle JDK 7 and 8, as well as 
OpenJDK 7. I’ve installed JAI / imageio to the Oracle JDK 7 manually - but no 
success.
I’m not sure if this is a bug I should file, or whether it’s just me as I’m new 
to Geoserver.

I’ve tried Geoserver 2.6 as well as the current Snapshot.

By the way, what is the most supported Linux distribution for Geoserver?

My Leaflet WMS snippet:

var baseLayer = L.tileLayer.wms('http://127.0.0.1:8080/geoserver/wms', {
    format: 'img/png',
    layers: 'topp:states',
    version: '1.1.1'
});

map = new L.Map('map', {
    center: new L.LatLng(-130,24),
    zoom: 16,
    layers: [baseLayer],
    zoomControl: true
});

Java Stacktrace:

Request: getServiceInfo
24 Oct 18:56:21 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: There is no support for creating maps 
in img/png format
        at org.geoserver.wms.GetMap.getDelegate(GetMap.java:736)
        at org.geoserver.wms.GetMap.run(GetMap.java:188)
        at org.geoserver.wms.GetMap.run(GetMap.java:125)
        at 
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:329)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)


…

Regards

Ben
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to