eclipse symfony debugger errors in appdevdebugprojectcontainer.xml

698 views Asked by At

Using Eclipse Luna with Symfony2. Installed the PDT extensions and was able to get a symfony project up and running. However, the file appdevdebugprojectcontainer.xml shows me some errors. This has not interfered with the running of the project but I am still curious to know what this is about.

The first error is in the configurator.

cvc-complex-type.2.1: Element 'configurator' must have no character or element information item [children], because the type's content type is empty.

The other error:

<factory class="Symfony\Component\Validator\Validation" method="createValidatorBuilder"/>

Error Message

cvc-complex-type.2.4.a: Invalid content was found starting with element 'factory'. One of '{"http://symfony.com/schema/dic/services":file, "http://symfony.com/schema/dic/services":argument, "http://symfony.com/schema/dic/services":configurator, "http://symfony.com/schema/dic/services":call, "http://symfony.com/schema/dic/services":tag, "http://symfony.com/schema/dic/services":property}' is expected.

Any pointers will be greatly appreciated

1

There are 1 answers

2
zulus On BEST ANSWER

This is problem from WTP XML validator. How to ignore:

  1. Open project properties (right click on project, properties)
  2. On tab Validation, enable project specific settings
  3. In XML Schema and XML DTD validator click settings
  4. Add Exclude group
  5. Select new group and add rule
  6. Ignore all *.xml files
  7. Save and be happy ;)

I plan to auto create rules these rules in future Symfony Plugin version