文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>转载:ArcGis 9.3 部署地图,出现javax.faces.FacesException异常

转载:ArcGis 9.3 部署地图,出现javax.faces.FacesException异常

时间:2010-09-02  来源:attar

问题:

javax.faces.FacesException: The scope of the referenced object: '#{}' is shorter than the referring object

解决:

Error Message
Adding a map service that contains raster layers to a WebADF project in Eclipse, using the ArcGIS Server plug-in wizards, causes the application to encounter the following fatal exception:


javax.faces.FacesException: The scope of the referenced object: '#{}' is shorter than the referring object



Cause
The faces-config.xml file generated by the ArcGIS Server plug-in generates a managed-bean representing the LayerDefinition for each raster layer in the map service. These managed-beans contain empty references, '${}', for the 'renderer' and 'highlightRenderer' properties, which prevents the application from starting up.


<managed-bean>
     <managed-bean-name>rasterLayer</managed-bean-name>
     <managed-bean-class>com.esri.adf.web.data.query.LayerDefinition</managed-bean-class>
     . . .
     <managed-property>
           <property-name>renderer</property-name>
           <value>#{}</value>
     </managed-property>
     <managed-property>
           <property-name>highlightRenderer</property-name>
           <value>#{}</value>
     </managed-property>
     . . .
</managed-bean>

Solution or Workaround
Delete the managed-bean definitions for raster layers from faces-config.xml.
Delete references to these managed-beans from the WebQuery managed-bean.

相关阅读 更多 +
排行榜 更多 +
谷歌卫星地图免费版下载

谷歌卫星地图免费版下载

生活实用 下载
谷歌卫星地图免费版下载

谷歌卫星地图免费版下载

生活实用 下载
kingsofpool官方正版下载

kingsofpool官方正版下载

赛车竞速 下载