Hello.
Where did you put the .class files associated to FieldCollapsing? It´s usual to include them into a .jar contained in /lib server folder, for example. Another option is that the packet path "solr.CollapseComponent" it´s not the same as the applied in your patch, if it was modified.