i2group / analyze

Develop and deploy custom Java extensions and REST API client code for i2 Analyze. View the Java API documentation.
https://i2group.github.io/analyze/
MIT License
37 stars 30 forks source link

Missing mandatory properties in Developer Essentials for IAP 3.0.11 #15

Closed scomcgill closed 9 years ago

scomcgill commented 9 years ago

When following the developer_essentials_example_daod.md instructions, the "build -t deploy" step fails with the following:

======================= WARNINGS (1) =======================

======================== ERRORS (1) ========================

Validation failed. Correct errors, and review any warnings. :da-subset-rest-example:deploy FAILED

I checked the configuration/fragments/da-subset-filesystem-example/WEB-INF/classes/ApolloServerSettingsDaodMandatory.properties and the MainSearchIndex and IExternalDataItemRetriever properties are not there, not even commented out.

Could you please provide the missing properties.

boalesth commented 9 years ago

Hi Scomcgill, Sorry for the delay.

The warning message can be safely ignored. It will not cause issues with the deployment.

Regarding the Error message that you have received, if you are indeed setting up one of the examples, you will find that you have not correctly set the data source flags in topology.xml after running addDaodDataSource:

    <iap-data-source id="daod1" ar="false">
       <DataSource EdrsGetContextSupported="false" ScsBrowseSupported="true"
                   ScsSearchSupported="true" ScsPresent="true"
                   ScsFilteredSearchSupported="false" EdrsPresent="false"
                   ScsNetworkSearchSupported="false" Id="" SesPresent="true"
                   Version="0" EdrsGetLatestItemsSupported="false"
                   ScsDumbbellSearchSupported="false">
          <Shape>DAOD</Shape>
          <Name>da-subset-filesystem-example</Name>
       </DataSource>
    </iap-data-source>

If you update your topology file to match the instructions, and then redeploy the example the error should be resolved.

Thanks

Esther