o.a.c.components.parser.Parser is deprecated, and if you don't include the deprecated block in the build, you won't get the class, as expected.
Unfortunately, the XSP logicsheet (src/java/org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl) still has an import declaration for it, but it is unused! Thus, XSP pages won't compile if you don't build the deprecated block.
How about removing the import from xsp.xsl?
Can you provide patch for capture.xsl? AFAIU, It uses this parser
Vadim
Ugo