Dec 19, 2010

Element 'filters' cannot have character [children], because the type's content type is element-only. maven

Go this error while adding filter to web.xml.
My mistake was that i forgot creating the <filter> tag inside the <filters>.
I did this:
 <filters>src/main/filters/filter.properties</filters> instead of doing this:
 <filters><filter>src/main/filters/filter.properties</filter></filters>

Minor mistake that can happen in one minute out of focus.

Hoped it helped,
Dor

No comments:

Post a Comment