Error Message
Upon launching the Map Viewer, instead of a map display, the following error occurs:
"java.lang.NoSuchMethodException: Property 'metadataProfile' has no setter method".
Cause
The cause of this is an improperly defined bean property reference in the fc-jitk-metadata-context.xml.
Solution or Workaround
Modify the fc-jitk-metadata-context.xml file.
- Navigate to the <Tomcat Installation Directory>\webapps\mvs_viewer\WEB-INF\jitk-faces-config folder in Windows Explorer.
- Open the fc-jitk-metadata-context.xml file in a text editor such as Notepad.
- Do a search for
Code:
<property-name>metadataProfile
. - There should be two (2) instances of this property-name in the file. The first instance reads 'metadataProfile' and the second reads 'metadataProfile2'. Both instances should read 'metadataProfile2'. Change the property-name of metadataProfile to be metadataProfile2.
- Save the file and exit.
- Reload the Map Viewer application in Tomcat Manager.