Hmmm. I’m not sure what is going wrong here. Maybe Weld is trying to read the cid query parameter before Rewrite creates it. That could explain it. But unfortunately I’ve no idea how to work around that. I guess it would require some research in the Weld code to verify this.
Regarding your other question. If you include rewrite-integration-cdi in you project, Rewrite will also automatically pick up CDI beans when looking for your ConfigurationProvider. So you could basically drop the RewriteConfiguration annotation and @EJB should work in this case.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.