Element 'prerequisites' is not legal as a child of element '
4 answers
I have this warning in my Plug-in Descriptor. Where should it go? All
examples I have found add 'prerequisites' as a child of
'extensionService' element.
Thanks in advance,
Chemi.
Sounds like what you're doing is correct. You might just be seeing an
error in the schema of the extension-point you're extending.
--
Jared Burns
Jazz Process Team
Jared
Iam getting the same issue. The error iam getting over "<requiredService interface="com.ibm.team.process.internal.common.service.IProcessService"/>"
Can you suggest the Schema ? Below is my plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="TestWorldAdvisor.prohibitSave"
name="Prohibit Save (Test World Advisor)"
point="com.ibm.team.process.service.operationAdvisors">
<operationAdvisor
class="testworldadvisor.TestWorldProhibitSave"
id="TestWorldAdvisor.prohibitSave"
name="Prohibit Save (Test World Advisor)"
operationId="com.ibm.team.workitem.operation.workItemSave">
</operationAdvisor>
<prerequisites>
<requiredService interface="com.ibm.team.process.internal.common.service.IProcessService"/>
</prerequisites>
</extension>
</plugin>
"Element 'prerequisites' is not legal as a child of element..."
And these are the 3 lines I'm trying to add:
You can ignore the warning. If you add the prerequisites as described in https://jazz.net/library/article/1000 for example there should be no issue. You might however run into problems if you add prerequisites that are not real services. You should see that during server start up.