# The wms published in geoserver can't be displaying

**URL:** <https://community.cesium.com/t/the-wms-published-in-geoserver-cant-be-displaying/25563>\
**Category:** CesiumJS\
**Created:** [July 24, 2023, 2:51am UTC](https://community.cesium.com/t/the-wms-published-in-geoserver-cant-be-displaying/25563 "2023-07-24T02:51:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iz626](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/iz626/32/14037_2.png) [@iz626](https://community.cesium.com/u/iz626)\
**Post date:** [July 24, 2023, 2:51am UTC](https://community.cesium.com/t/the-wms-published-in-geoserver-cant-be-displaying/25563/1 "2023-07-24T02:51:20Z")

</div>

Hello, I would like to ask you about the problem that the wms layer published by geoserver cannot be displayed. I started cesium on nginx, and the geoserver deployed under Tomcat and the corresponding CORS problem have also been deployed, but the tif data and shp data published cannot be displayed on global. I would like to ask where there is something missing. The following is my code. thank you!

```auto
function init() {
            viewer = new Cesium.Viewer("cesiumContainer", {
                // 添加WMS图层
                imageryProvider: new Cesium.WebMapServiceImageryProvider({
                    // WMS 服务地址
                    url: 'http://127.0.0.1/geoserver/demo/wms',
                    // 定义wms图层
                    layers: 'demo:china_tif',
                })
            });
        }

```
