"Operands are not of the same type: comparison is supported for Number types only."means not the same type.Make sure that properties.maxItems is of type of number
the error indicates that the class can't found. Either the code is not deployed, or the bundle is not active.can you check at /system/console/services whether the service is available?
Also you are mixing annotations (osgi and felix)import org.osgi.service.component.annotations.Component;import org.apache.felix.scr.annotations.Properties;import org.apache.felix.scr.annotations.Property;