ERROR
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
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>
Get help from ArcGIS experts
Download the Esri Support App